Exposing the click ID and pass it to a 3rd party tracking tag

i want to track clicks on outbound links. The links point to a tracking link of a 3rd party system. that tracking link has custom parameters where I can insert my own data.
I would like to pass the click ID (or any other unique identifier) to the 3rd party tracking link.
This will allow me to later pull data from the 3rd party system (wither manual or using API) about Sales resulting from the traffic generated from the clicks and match a specific click with a sale.
Is there a way to do that using https://github.com/snowplow/snowplow/wiki/2-Specific-event-tracking-with-the-Javascript-tracker#link-click-tracking ?


Hello Zivb,

The JavaScript Tracker currently does not expose the event ID for link click events. You could potentially implement this yourself by using the trackLinkClick method. You would have to do these things:

  • Whenever a user clicks on a link you care about, generate an ID for that click, then send a Snowplow link click event using trackLinkClick with the ID attached in a custom context.
  • Pass the ID you generated to the 3rd party tracking link.


Thanks @Fred!

See also: https://github.com/snowplow/snowplow-javascript-tracker/issues/408