Add Google Analytics ID to gitlab_standard schema
What does this MR do and why?
Related to #335067
Google Analytics ID is set as a cookie when a user visits the marketing site, as it's a TLD level cookie (*.gitlab.com). This MR appends this string to Snowplow events that have the gitlab_standard
schema attached to them (structured events, page views), using the new google_analytics_id
field.
Screenshots
How to set up and validate locally
Example below:
- Follow the instructions in our docs to enable Snowplow locally, if you haven't done so.
- Set a cookie called
_ga
with the method you prefer and any test value.// In the browser console, for example cookieStore.set('_ga', 'GA1.2.345678901.234567891')
- Trigger any Snowplow event. Like a page view by reloading the page.
- Verify the Snowplow testing tool of your choice and you'll be able to see this value in the
gitlab_standard
context.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Axel García