How can I pass a custom context Array with every link click event?


I need to pass a custom context Array with every link click.
Looking at -, it says “enableLinkClickTracking can also be passed an array of custom contexts to attach to every link click event as an additional final parameter. See Contexts for more information.”
But there is no explanation how to do that.
What is the right way to add a custom context?


It looks like that function definition doesn’t include contexts even though the functionality has been there for quite a while.

The last parameter will allow you to pass in an array of contexts e.g.,

window.snowplow('enableLinkClickTracking', null, true, true,
        schema: 'iglu:com.acme/link_click/jsonschema/1-0-0',
        data: {
            'click_id': 1234

Thx a lot Mike!
Will try it out


Thanks a lot