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:

    Partner link
    https://www.your-shop.com/subcategory/product_x.html

    The 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:

    getpid.js URL
    https://partner.your-site.com/scripts/getpid.js?cpid=PROGRAMID

    Copy 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)
    💡Tip
    Have the exclusion domains configured before the first deployment. The QUALITYCLICK team is happy to help.

    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.

    Still have questions?
    Our team is here to help with your integration — personally and competently.