Adding the Veracity Tag to Shopify

Adding the Veracity Tag to Shopify

The Veracity Team. 20th Jan 2023. Guides.

This guide covers how to install the Veracity code into your Shopify site.

IMPORTANT: This involves editing the theme files for your site. Knowledge of web design languages such as HTML, CSS, Javascript and Liquid is recommended.

  1. From your Shopify admin, click Online Store, then click Themes
  2. Find the theme you want to edit, click the ... button,
  3. Then click Edit HTML/CSS:
  4.  Add the Tracking Code to your site
    On the Edit HTML/CSS page in your shop admin, click on theme.liquid under Layouts to open the layout in the online code editor. Scroll through the file until you find the closing body </body> tag add the following code:
    <script type="text/javascript">
    window.veracity = {"formIntegration":true};
    (function(a, d, w){var h= d.getElementsByTagName(a[0])[0]; var s= d.createElement(a[1]);s.type= a[2]; s.src= a[3]; s.setAttribute("integrity", a[4]);s.setAttribute("crossorigin", "anonymous");h.appendChild(s);})(['head', 'script', 'text/javascript', 'https://script.platform.veracitytrustnetwork.com/loader/index.js', 'sha512-RZaUPcYG+YVW5gmPp0sxoO+dxSsQeNkwMxGlRIkEbZZhPgYqqzCIW6HD8j7SGFwUgPkzVB42NhAlYUdkx9Y6XQ=='], document, window)
    </script>
  5. Click Save

If you would like some help with this process then please contact our support team.