Skip to content

Commit 26d18be

Browse files
authored
Merge pull request #4413 from segmentio/prigiattiperrut-patch-2
Adding details about the clientId
2 parents 1d34809 + 7f3930c commit 26d18be

File tree

1 file changed

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

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ With Google Analytics 4, you must create custom dimensions and metrics within th
4949

5050
The Google Analytics 4 [debug mode](https://support.google.com/analytics/answer/7201382?hl=en){:target="_blank"} is supported with the Google Analytics 4 Web destination. DebugView displays the events and user properties that Analytics collects from a user in real-time. This can be helpful in troubleshooting your implementation.
5151

52+
### Send events from both the browser and the server
53+
54+
With Google Analytics 4 Web, events are sent from the browser to GA4. If you use Segment’s [Google Analytics 4 Cloud destination](/docs/connections/destinations/catalog/actions-google-analytics-4/#benefits-of-google-analytics-4-cloud) to send events through the API and tie data between client-side and server-side, you need to pass the same Client ID from the browser and the server. To do this, fetch the Gtag-generated **clientId** on the web client and pass it to Segment as a property. For more information, see [Google Analytics 4 destination: User Identification](/docs/connections/destinations/catalog/actions-google-analytics-4/#user-identification) on the next steps.
55+
5256
### Additional (unmapped) events are sent to GA4
5357

5458
Google Analytics 4 collects events triggered by basic interactions with your site. For more information, see [Google Analytics 4 Automatically collected events](https://support.google.com/analytics/answer/9234069?hl=en){:target="_blank"}
@@ -61,4 +65,3 @@ Google may take [24-48 hours](https://support.google.com/analytics/answer/933379
6165
### Data is not sent to Google
6266

6367
Ensure that at least one mapping has been configured and enabled in the destination mappings for an event you want to send to Google Analytics. If no mappings are enabled, the destination does not send events.
64-

0 commit comments

Comments
 (0)