Extracting the event id that is passed by the js tracker with pv event

In this doc: https://github.com/snowplow/snowplow/wiki/snowplow-tracker-protocol#event2
It mentions:

The event ID (eid) is the unique identifier (UUID) for this row. Historically we generated this in the Enrichment process but where possible we are migrating this to being generated in the trackers.

It appears that the event id is in fact being generated by the js tracker but I’m not sure if this is always the case?

We are looking for a way to extract the event id that is generated and passed with the pageview event and pass it with a 3rd party event that we fire later in the same page load. Is this event id saved in the js object or cookies in any way that it would still be available after the pageview event is completed?

Wouldn’t it be easier to use webPageContext (https://github.com/snowplow/snowplow/wiki/1-General-parameters-for-the-Javascript-tracker#22141-webpage-context), as this has been created for this purpose?

1 Like

Could be what we need. So this is probably already being passed with our snowplow event but how do I get the page UID in the front end? Is there a method for extracting that or is it in the cookie similar to this?

There isn’t a method yet, but there will be in the next release: