Affiliates

SpiffyJS enables affiliate tracking on your own domain

How Tracking Works

For more information on exactly how Spiffy's affiliate tracking works and ways to improved cross-device and cross-domain reliability take a look here

Access Tracking Data

You can directly access tracking data via the URL or cookies. Currently there is no shortcut methods within SpiffyJS to pull tracking data.

Tracking Data via URL Parameters

Tracking data gets passed to SpiffyJS via url parameters on the redirected page.

  • a - affiliate ID

  • _aff - full affiliate tracking object used internally by SpiffyJS

{
   "_s_aff_1":{ // Affiliate program ID, prepended with "_s_aff_"
      "aff":"40", // Affiliate ID
      "cid":48 // Initial click ID
   }
}

Tracking Data via Cookies

SpiffyJS stores local, first-party cookies on your domain in the same format as the _aff object above. Because affiliates are program-based in Spiffy, visitors can have multiple tracking cookies at any given time; one for each program affiliate link they have clicked. Depending on your implementation you may be able to look for the specific cookie you need or may need to pull all cookies.

Name: _s_aff_{programID}

Contents:

{
    "aff":"40", // Affiliate ID
    "cid":48 // Initial click ID
}

Last updated