Referrer Tracking
The simplest tracking method — partners place regular links to your shop, and attribution happens automatically via the browser referrer.
How it works
With referrer tracking, the partner places a regular link to your site — no parameters, no redirect:
https://www.your-shop.com/subcategory/product_x.htmlThe browser sends the URL of the previously visited page (the referrer) to every page that is loaded. A JavaScript (getpid.js) on your site reads this referrer and compares it with the domains of registered partners. If there is a match, a first-party cookie with the PartnerID is set.
Setting up getpid.js
The script can be found at:
https://partner.your-site.com/scripts/getpid.js?cpid=PROGRAMIDCopy the script to your shop server and include it on all landing pages (e.g. in the header/footer).
Configure exclusion domains
To prevent every referrer from being recognized as a partner, you need to define exclusion domains. Find the checkReferrer function in getpid.js and add:
- Your own domains (e.g. your-shop.com, www.your-shop.com)
- Generic traffic sources (e.g. google.com, facebook.com, bing.com)
SEO benefit
Many search engines, including Google, reward websites that have many inbound links with better rankings. Referrer tracking combines search engine optimization with performance-based affiliate marketing.
The tracking code and getpid.js can be found under System → Tracking Codes when referrer tracking is enabled.