How to add both your Veracity tags

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.

Adding the Veracity AFP tag directly

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.

<script type="text/javascript">
window.bwai = {"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', '//script.thisisbeacon.com/BLoader/1.1/index.js',
'sha512-13GUu5vadQ2mQwPDwj2jREx1SnYNp0dg5UoI3RN+8Vo+AGFMnmmibbqC4XKnkxHpyK45GtYA2tPzuQJQQHvGgg=='], document, window);
</script>

Form tracking: GDPR Compliance

If you would like us not to capture form data, which may reduce our ability to monitor goals related to form fills, change window.bwai = {"formIntegration":true}; to be window.bwai = {"formIntegration":false}; in the script.

Adding the Veracity WTP tag directly

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.

<script type="text/javascript">
window.veracity = {"formIntegration":false};
(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, change window.veracity = {"formIntegration":false}; to be window.veracity = {"formIntegration":true}; in the script.

Google Tag Manager

*Google Tag Manager and Ad Blockers: Usually, the default settings of ad blockers won’t affect Google Tag Manager. Ad blockers will only block ads on the page that the user visits, but as users can adjust settings for ad blockers to remove any tracking scripts, that will also disable the Veracity tag.

With that in mind, we do not recommend deploying the Veracity tag through GTM unless you do not have access to the website admin. We instead recommend deploying the tag directly into your website as per the Direct install tab.

Go to Google Tag Manager and log in to your account or create a new one.

Veracity AFP

  1. Create a New Tag
  2. On the next page, name the new tag Veracity AFP
  3. Click Tag Configuration,  and from the sidebar choose tag type Custom HTML Tag
  4. Paste in the Veracity AFP tag from below

<script type="text/javascript">
window.bwai = {"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', '//script.thisisbeacon.com/BLoader/1.1/index.js',
'sha512-13GUu5vadQ2mQwPDwj2jREx1SnYNp0dg5UoI3RN+8Vo+AGFMnmmibbqC4XKnkxHpyK45GtYA2tPzuQJQQHvGgg=='], document, window);
</script>

Optional form tracking GDPR Compliance settings

If you would like us not to capture form data, which may reduce our ability to monitor goals related to form fills, change window.bwai = {"formIntegration":true}; to be window.bwai = {"formIntegration":false}; in the script.

    1. For Triggering select All Pages
    2. Save the Tag

Veracity Code

Next create the WTP tag.


Veracity WTP

  1. Create another New Tag
  2. On the next page, name the new tag Veracity WTP
  3. Click Tag Configuration,  and from the sidebar choose tag type Custom HTML Tag
  4. Paste in the Veracity WTP tag from below

<script type="text/javascript">
window.veracity = {"formIntegration":false};
(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>

Optional Form tracking GDPR Compliance settings

If you would like us not to capture form data, change window.veracity = {"formIntegration":false}; to be window.veracity = {"formIntegration":true}; in the script.

  1. For Triggering select All Pages
  2. Save the tag

  1. Click Submit
  2. Give your changes a Version Name and optionally a description
  3. Click Publish and you are all done

Once you have installed both of the tags learn how to verify they are 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.