Skip to main content
Tracker Setup - Affiliate

Setting up tracker for affiliate service providers

Ronald Ng avatar
Written by Ronald Ng
Updated over a year ago

The Spider AF tracker can be used with affiliate service providers to help manage and track the invalid activity on affiliates. To better track affiliate specific traffic, please set the following parameters:

  • publisher ID (e.g. typically the affiliate publisher ID)

  • media ID (e.g. typically the affiliate sub-id, when available)

  • xuid (the user id or conversion ID on their system)

  • xsid (the session id, or click ID, on their system)

This looks like (need to replace the <tracker> with the user <tracker-id> and commented sections):
โ€‹

var sptrk=function(){var o="https://sp-trk.com/",t="__spd",e=(new Date).getTime();window[t]||(window[t]={init:!1});var c=window[t];c.d||(c.d=[]);var s=c.d;function v(t){var i=document.createElement("script");i.async=!0,i.src=t,document.head.appendChild(i)}c.init||v(o+"u");var u=/^([a-z0-9]{8})-([a-z0-9]{2})$/;return function(){var t=arguments;if(s.push(t),"config"==t[0]&&!c.init&&!c.a){c.init=!0;var i=t[1],n=i.match(u),a=n[1],r=n[2];if(!a||!r)throw"invalid id: "+i;var d=Math.random().toString(36).substring(2,15);v(o+"t/"+a+"?"+("a="+e+"&o="+d))}}}(); 

sptrk('config', '<tracker>-01', {
pub: '##publisher_id##',
media: '##media_id##',
xuid: '##xuid##',
xsid: '##xsid##' });

In order to track conversions, you will need to trigger the conversion event when it happens, e.g.
โ€‹

sptrk('event', 'conversion');

If some of the parameters are not available, please contact Spider AF customer support via intercom or your support rep via email for assistance

Did this answer your question?