Skip to main content
Use a tag manager

Learn how to integrate a third-party tag manager with your account.

Updated over 2 weeks ago

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:

  1. The Script tag

  2. 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.


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.

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.

Did this answer your question?