If you use a tag manager provided by a third-party organization such as Google or Adobe to load scripts on your site, you can use it with Fresh Relevance too.
There are two main components to the Fresh Relevance integration:
The Script tag
The Purchase complete tracking Image
The Script tag
The Script tag goes on every page of your site. This looks something like:
<script defer="defer" async="async" src="//d81mfvml8p5ml.cloudfront.net/[your website ID here].js"></script>
This can be loaded using a Tag Manager.
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 website 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 is designed to report a purchase back to us in addition to the script. Because itโs an image, it loads much faster, catching people who leave the page before the script can load, and isn't affected by anything that can cause JavaScript not to load.
Using a tag manager introduces a delay to the image being displayed, and is also affected by any JavaScript issues. In addition, it makes it more complicated to merge in the customer's email address. All of which mean the purchase might not be recorded and the visitor sent an abandon cart message in error.
Your web development team should add the Purchase complete image to the HTML of the page, or the template that generates it, and use a server-side variable to merge in the customer's email address, and, if applicable, order number.
Learn more in Add a Purchase complete tracking image to your store.
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.