You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/connections/destinations/catalog/actions-google-analytics-4-web/index.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,9 +55,9 @@ The GA4 SDK also tracks a native `page_view` event if you have the [following se
55
55
56
56
###Disabling Page Views
57
57
58
-
The**Page Views** setting in the GA4 Web destination settings is toggled on by default. This means that the default**Set Configuration Fields** mappingwill senda`page_view` for you when you enable GA4 Web as a destination. If you don't want to send a`page_view` by default, you can toggle the**Page Views** setting off in your destination settings. However, if you toggle the**Page Views** setting off, you will need to account for the`page_view` to happen after the`config` since session attribution sets on the first event after the config is loaded, which is usally a`page_view`.
58
+
The**Page Views** setting in the GA4 Web destination settings is toggled on by default. This means that the default**Set Configuration Fields** mappingsendsa`page_view` for you when you enable GA4 Web as a destination. If you don't want to send a`page_view` by default, you can toggle the**Page Views** setting off in your destination settings. However, if you toggle the**Page Views** setting off, you need to account for the`page_view` to happen after the`config` since session attribution sets on the first event after the config is loaded, which is usally a`page_view`.
59
59
60
-
This means that`config`should fireat`analytics.page()`, and`page_view`should fire after on a`track` call (i.e.`analytics.track("Viewed Content"`). For proper tracking, the`config` must load prior to any GA4 event. For further troubleshooting, go to your DevTools console and type in “dataLayer” to view the order of events sent to Google Analytics. You can read more about[Manual Pageviews](https://developers.google.com/analytics/devguides/collection/ga4/views?client_type=gtag#manual_pageviews){:target='_blank'} in Google's documentation.
60
+
This means that`config`firesat`analytics.page()`, and`page_view`fires after on a`track` call (i.e.`analytics.track("Viewed Content"`). For proper tracking, the`config` must load prior to any GA4 event. For further troubleshooting, go to your DevTools console and type in “dataLayer” to view the order of events sent to Google Analytics. You can read more about[Manual Pageviews](https://developers.google.com/analytics/devguides/collection/ga4/views?client_type=gtag#manual_pageviews){:target='_blank'} in Google's documentation.
61
61
62
62
63
63
###Custom Event Naming
@@ -102,4 +102,4 @@ Without any further configuration, traffic-source data for `campaign`, `campaign
102
102
103
103
###Differences between Google Analytics 4 Cloud and Google Analytics 4 Web destinations
104
104
105
-
Segment's[Google Analytics 4 Cloud](/docs/connections/destinations/catalog/actions-google-analytics-4/) server-side destination uses Google's Measurement Protocol API to send event data server to server, whereas Segment's[Google Analytics 4 Web](/docs/connections/destinations/catalog/actions-google-analytics-4-web/) device-mode destination loads the gtag.js library client-side and uses Segment's event data to map to gtag.js events directly. Each destination has its own advantages and disadvantages. Your choice between the twowill depend on your specific use case, technical expertise, and the platforms from which you want to track data.
105
+
Segment's[Google Analytics 4 Cloud](/docs/connections/destinations/catalog/actions-google-analytics-4/) server-side destination uses Google's Measurement Protocol API to send event data server to server, whereas Segment's[Google Analytics 4 Web](/docs/connections/destinations/catalog/actions-google-analytics-4-web/) device-mode destination loads the gtag.js library client-side and uses Segment's event data to map to gtag.js events directly. Each destination has its own advantages and disadvantages. Your choice between the twodepends on your specific use case, technical expertise, and the platforms from which you want to track data.