web-widgets icon indicating copy to clipboard operation
web-widgets copied to clipboard

feat(google-tag-web): send (authenticated) user ID

Open rborer opened this issue 1 year ago • 1 comments

Pull request type

New feature (non-breaking change which adds functionality)

Description

This change introduce a new functionality allowing to optionally share the authenticated user ID with Google Analytics.

Sharing this information allow Google Analytics to identify individual users across different sessions and devices.

This is achieved by modifying the config command to add the new user_id parameter.

For more details on the feature, please have a look at https://developers.google.com/analytics/devguides/collection/ga4/user-id?client_type=gtag .

rborer avatar May 01 '24 13:05 rborer

To give more context, here is how it looks like when we use a GA debugger browser extension:

turned off (the default)

image

turned on

image

rborer avatar May 22 '24 13:05 rborer