If you use a third-party tag manager, such as Google, Tealium, or Adobe, to load scripts on your site, you can use it with Fresh Relevance.
Before you start
Things you need to know:
Complete your initial account setup in Settings > Website settings.
Make sure you have entered your website details and commerce system. This ensures your account is set up correctly and that you have the correct tracking script for your site.
You can load the script tag with a tag manager.
Do not use a tag manager to add the Purchase complete tracking image.
The Fresh Relevance tracking script supports website personalisation, triggered messaging, and behavioural tracking. For the best performance and reliability, we recommend adding the script directly to your site HTML, usually in the header or footer template. Use a tag manager only if you can’t add the script directly, as some browsers can block scripts loaded through tag managers.
Your Fresh Relevance integration has two parts:
The Script tag
The Purchase complete tracking Image
The Script tag
Add the script tag to every page on your site. The script is unique to your account.
To find your account ID, go to User menu > Account ID in Fresh Relevance. Replace [your account ID here] in the example below with your account ID.
<script async src="//ls.dycdn.net/[your account ID].js"></script>
You can load this script with a tag manager or by editing your site HTML.
Learn more
The Purchase complete tracking image
The Purchase complete image goes on the order confirmation page of your site. This looks something like:
<img src="//d1f0tbk1v3e25u.cloudfront.net/pc/[your account ID here]/?e=[customer's email address]" id="__tms_pc" height="1" width="1" />
The Purchase complete image should not be added using a tag manager.
The image reports a purchase in addition to the script. Because it is an image, it loads faster than the script and can still be recorded if the visitor leaves the page before the script loads. It is also not affected by issues that can prevent JavaScript from loading.
If you add the image with a tag manager, it may load later and be affected by JavaScript issues. It can also make it harder to merge the customer’s email address. This increases the risk that a purchase is not recorded and that the visitor receives a follow-up message in error.
Your web development team should add the Purchase complete tracking image to the page HTML, or to the template that generates the page. Use a server-side variable to merge the customer’s email address and, if needed, the order number.
Learn more in Add a Purchase complete tracking image to your store.
If your site uses Magento, you may be able to use our extension, which loads both the script tag and the Purchase complete tracking image automatically.
Contact Support for more information.
Using Magento?
If your site uses Magento then you may be able to use our extension, which loads both the Script and Purchase complete image automatically. Contact Support for further information.
