Skip to content

Commit 3255d72

Browse files
Apply suggestions from code review
Co-authored-by: stayseesong <[email protected]>
1 parent e4fc644 commit 3255d72

File tree

1 file changed

+3
-6
lines changed
  • src/connections/destinations/catalog/actions-google-analytics-4-web

1 file changed

+3
-6
lines changed

src/connections/destinations/catalog/actions-google-analytics-4-web/index.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,7 @@ Ensure that at least one mapping has been configured and enabled in the destinat
6464

6565
### Page Views
6666

67-
The 'Page Views' advanced setting prevents the `page_view` included in the gtag.js snippet from being sent, not Segment's `analytics.page()` event available in the Analytics.js snippet by default. If you keep this setting enabled, it is expected that once the page loads, two `page_view` events will still be sent to the GA4 SDK, one from the Segment snippet and one from gtag.js snippet. If you are seeing duplicate `page_view` events in your GA4 dashboard, you need to:
67+
The **Page Views** advanced setting prevents sending the `page_view` included in the gtag.js snippet, not Segment's `analytics.page()` event available in the Analytics.js snippet by default. If you enable this setting, once the page loads, two `page_view` events will still send to the GA4 SDK, one from the Segment snippet and one from the gtag.js snippet. If you see duplicate `page_view` events in your GA4 dashboard, you need to either:
6868

69-
1. Disable the 'Page Views' advanced setting (set to False) so only Segment's `analytics.page()` is sent to the GA4 SDK.
70-
71-
Or
72-
73-
2. Edit or disable the preset 'Set Configuration Fields' mapping so only the `page_view` included in the gtag.js snippet is sent to GA4 SDK.
69+
1. Disable the **Page Views** advanced setting (set it to *False*) so only Segment's `analytics.page()` sends to the GA4 SDK. Or,
70+
2. Edit or disable the preset **Set Configuration Fields** mapping so only the `page_view` included in the gtag.js snippet sends to the GA4 SDK.

0 commit comments

Comments
 (0)