How to Add your Veracity Bot Detection Tag

How to Add your Veracity Bot Detection Tag

The Veracity Team. 22nd August 2022. Guides.

Veracity and Cookies – Veracity must not be part of your cookie consent process

Veracity is functional security software that does not use cookies; therefore it must not to be part of your cookie consent process. You do not need to make reference to the Veracity platform or Beaconsoft Limited in your Cookie Policy or Cookie Notice, nor in your Privacy Policy.

For more information see our GDPR compliance and cookie notice policy guidelines.

Once you have installed the code learn how to verify it is loading correctly here.

Using Google Tag Manager

Google Tag Manager

Go to Google Tag Manager and log in to your account or create a new one. Once you’re in, select New Tag.

On the next page, label the new tag Veracity, and select Custom HTML Tag.

Paste in the Veracity bot detection tag from lower down this page and for Triggering select All Pages.

Name your Tag

Click Submit then Click Publish. 

The Veracity Bot Detection Tag

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

Form tracking: GDPR Compliance

If you would like us not to capture form data, which may reduce our ability to identify suspicious activity, change window.veracity = {"formIntegration":true}; to be window.veracity = {"formIntegration":false}; in the script.

Adding the Veracity Bot Detection Tag Manually

The code should be placed on every page you wish to track. We recommend adding the tag to your website footer, just before the closing /body tag.

If you have access to your website code, you can add it manually. Simply paste the following script into each page you wish to track, or ideally your footer file as described above.

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

Form tracking: GDPR Compliance

If you would like us not to capture form data, which may reduce our ability to identify suspicious activity, change window.veracity = {"formIntegration":true}; to be window.veracity = {"formIntegration":false}; in the script.

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 customer support team.

For more information see our GDPR compliance and cookie notice policy guidelines.

Once you have installed the code learn how to verify it is loading correctly here.

Still need help?

If you need further assistance in installing your Veracity bot detection tag, or for us to verify that your code is correctly set up, please contact the support team.