Consent Manager Deployment Guide

  1. Embed CM script within an element on all pages needed.
<div id='teconsent'></div>
<script async="async" type="text/javascript"
src='//consent.trustarc.com/notice?domain=consentmanagerdemo.com&c=teconsent&gtm=1'
crossorigin=""></script>

NOTE: Please also ensure the “domain” parameter is the one you were provisioned for your account.

  1. The “c” parameter below must match the “div id”.
c=teconsent: The ID of the element the script is within must match this value.
E.g. <div id=teconsent> TrustArc SCRIPT </div>, see below:
<div id='teconsent'></div>
<script async="async" type="text/javascript"
src='//consent.trustarc.com/notice?domain=consentmanagerdemo.com&c=teconsent&gtm=1'
crossorigin=""></script>

NOTE: If you need to append the script within HTML block elements, you may switch out the <div> element to <span> to ensure the tag is appended correctly to the page. Using <span> instead of <div> is acceptable as well.

NOTE:  Please ensure that your system has the 'referer' header enabled; otherwise, the TrustArc system will not recognize the request URL for logging reporting metrics.  You can request this information from your IT team if you are unsure of your company network setup.

Recommended Locations

TrustArc recommends deploying the Consent Manager script in a location that will be visible in 99% of your site. This is to ensure that the Consent Manager script is invoked regardless of how a user accesses your site.

Common locations for such visibility are:

  • Footer
  • Header
  • Floating bottom left or right locations on the website

NOTE: TrustArc supports multiple User Interfaces and Tag Management Technologies, please let your representative know if you have a Tag Management System or customer system you would like to integrate with as there are additional technology guides that can be provided.

Overriding IP Detection

  1. For the purposes of testing or overriding our dynamic IP detection, you can add the country=xx values into the script.
Country=XX: Please refer to Appendix A for Country Codes

<div id='teconsent'></div>
<script async="async" type="text/javascript"
src='//consent.trustarc.com/notice?domain=consentmanagerdemo.com&c=teconsent&gtm=1&country=de'
crossorigin=""></script>

NOTE: As a reminder, please remove the country parameter after testing is complete, as this overrides the dynamic IP detection. You can only test countries that have been setup in your Consent Manager. If you have self-service, you may add additional countries at any time, otherwise, please contact your TrustArc Account Manager if you would like countries added.

  1. To override our dynamic browser language detection, please add language=xx to the script, otherwise, change your browser language.
Language=XX: Please refer to Appendix A for Language Codes

<div id='teconsent'></div>
<script async="async" type="text/javascript"
src='//consent.trustarc.com/notice?domain=consentmanagerdemo.com&c=teconsent&gtm=1&language=de'
crossorigin=""></script>

Overriding Consent Behavior

  1. The Consent Manager defaults to the specified behavior setup in the configuration for each country, to override this simply add the following parameter to view the notice as expressed:
Behavior=expressed:

<div id='teconsent'></div>
<script async="async" type="text/javascript"
src='//consent.trustarc.com/notice?domain=consentmanagerdemo.com&c=teconsent&gtm=1&behavior=expres
sed' crossorigin=""></script>
  1. Consent Manager loads an image by default. To load text, simply add “text=true”
Text=true:

<div id='teconsent'></div>
<script async="async" type="text/javascript"
src='//consent.trustarc.com/notice?domain=consentmanagerdemo.com&c=teconsent&gtm=1&text=true'
crossorigin=""></script>