How to access the page load event_id in GTM data Layer?

I’m using Snowplow JS tracker via Google Tag Manager.

I need a common unique ID for the page view (request_id?) to be shared by Snowplow and another data service that I need to match with.

I think the way would be to access the event_id of the page load event, and store it for use in a later GTM Tag. Can this be done?

I guess the alternative would be to create the event id externally, and pass it into the snowplow tracker. Is this possible?

If you are using a dataLayer or similar this would be the most straight forward. The page view id can be accessed using a callback - there is an example of that on the docs here.

Marvelous! Thank you.

1 Like