How to add your Veracity WTP 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.
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 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.
Veracity WTP
- Create another New Tag
- On the next page, name the new tag Veracity WTP
- Click Tag Configuration, and from the sidebar choose tag type Custom HTML Tag
- 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.
- For Triggering select All Pages
- Save the tag
- Click Submit
- Click Publish
The Veracity Bot Detection 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 to capture form data, change window.veracity = {"formIntegration":false};
to be window.veracity = {"formIntegration":true};
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.
- From your Shopify admin, click Online Store, then click Themes
- Find the theme you want to edit, click the
...
button, - Then click Edit HTML/CSS:
- 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":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> - Click Save
If you would like some help with this process then please contact our customer support team.
NB: It is very easy to install the AFP tag on your site on just the main pages, but for a correct install it must be in the “theme” so that the AFP tag is active on the “checkout” pages as well.
How to install the Veracity code into your Wix site.
- Go to Settings in your site’s dashboard.
- Click the Custom Code tab in the Advanced section. Note: Advanced is only shown with a published site with a connected domain (i.e. not “yoursite.wix.co.uk”).
- Click + Add Custom Code at the top right.
- Paste the code snippet (from below) in the text box.
- Select the “All Pages” option under Add Code to Pages.
- Choose “Body – end” to place your code under Place Code in.
- Click Apply.
<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>
See here for the instructions on the Wix site.
https://support.wix.com/en/article/embedding-custom-code-on-your-site
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.