REFERRALS
Pixel tracking installation
Shopify Headless tracking pixel instructions
7 min
if brand is a shopify merchant using a headless storefront, you will need to include roster's link tracking pixel on your storefront web pages to capture link clicks from ambassadors' referral links and, if applicable, apply leakproof codes or shareable codes to customers' sessions you will not need to install roster's order tracking pixel, as that is handled by shopify's web pixel on the order confirmation page google tag manager we strongly discourage installing roster's tracking pixels through google tag manager (gtm) more and more browsers and extensions block gtm from loading, thereby blocking roster's tracking pixels from working we recommend installing roster's tracking pixels directly in your e commerce platform or website's global theme/template step 1 get a public access api token each of the two tracking pixels require a public access token in order to securely send tracking data from a customer's browser to your roster account you can use the same public access token for both tracking pixels log into your roster account go to the api integration page by clicking on your brand's name in the left hand navigation, then integrations > api integration copy the newest public access token if one exists, or click new access token to create a new one never use private access tokens with roster's tracking pixels public access tokens are safe to use in a browser environment, but private access tokens are only intended for server side usage as they allow full access to all roster api endpoints step 2 install the link tracking pixel roster's link tracking pixel tracks link clicks from ambassadors' referral links and saves ambassadors' referral link ids in the browser to track subsequent purchases copy the following javascript tag to your clipboard \<! roster > \<script async type="application/javascript" src="https //sa getroster com/sa js?token=access token\&fetch shareable code=true">\</script> paste the javascript tag just before the closing \</head> tag in your e commerce platform or website's global template replace access token in the javascript tag with the public access token from step 1 above be sure you install the link tracking pixel in a way that will allow it to run on each page load this will ensure that regardless of which url ambassadors share as their referral link, roster will capture incoming link clicks and store the referral link ids for purchases made by referred customers step 3 verify the installation process it's imperative that you test the link tracking and order tracking upon completing the above steps see verify tracking pixel installation docid\ hszdrydoq2cmtkv8cxbwp for a video walkthrough and detailed steps need help? if you have any questions about adding hidden products to product rewards, contact us at support\@getroster com mailto\ support\@getroster com