Installing GrowthHero Pixel script
To start tracking your referral links and engagements, you need to install the GrowthHero pixel script onto your website. You need a GrowthHero account to install the script. Alternatively, you can use Google Tag Manager to add a tracking pixel to your website.
This is only for Standalone accounts. If your account is Shopify / BigCommerce, this setup is not necessary.
To install the Pixel script, paste the following snippet on all your pages inside the <head> section.
Now all your referral links and engagements will be tracked automatically!
Following options are available with the pixel script you can make use of.
By default the script records an engagement event after 15 seconds or registering a referral link click (if user visited using a referral link). You can override it and record the engagement event before the 15 second by calling this method.
Use this event to record an add to cart event. This event when combined with the automated sale tracking integration, will link the referred partner with the sale. The cartToken will be used to identify and link the sales with the clicks and engagements activity, thereby linking the appropriate partner with the sale.
<script> GrowthHero.recordAddToCart('cartToken') </script>