CCM Advanced
<div id="consent_blackbar"></div> <div id="teconsent" style="display: none;"></div> <!-- <div id="footerCookie" style="display: none;"></div> --> <script src="http://consent.trustarc.com/notice?domain=trustarc.com&c=teconsent &js=bb¬iceType=bb&pcookie&text=true"></script>
Required Code Breakdown
This section outlines the steps in creating custom triggers in the GTM System. Follow the steps accordingly.
• RED contents are required parameters and must be included to invoke the banner
• PURPLE content indicates that those values must be matching, but you can name it to whatever value
• BLUE content indicates a unique domain name used to set up your CM. Your Account Manager should have provided you with this value, if not, please contact your Account Manager to get your unique domain name.
Optional Code Breakdown
CCM Professional
<div id="consent-banner"></div>
<div id="teconsent"></div>
<!-- <div id="footerCookie" style="display: none;"></div> -->
<script type="text/javascript" async="async" src="https://consent.trustarc.com/v2/notice/{cmID}"></script>
You can find this code snippet in Step 4 of the CCM Pro portal at https://ccm.trustarc.com/.
Breakdown of the Consent Manager Pro Script Elements:
| Script | Description |
"consent-banner"
|
Controls the banner placement on your website.
This
div
element should be placed within the page element
you'd like the banner to display.
|
"teconsent"
|
Controls the "Cookie Preferences" link that a user can click to load the Consent Manager at any point they would like to set their preferences. |
script tag
|
Controls the calls to Consent Manager and can be loaded anywhere. |
{cmId}
|
The unique value of your Consent Manager and should be replaced by the script you produce in Step 5 of the Cookie Consent Creation wizard. |
Example HTML Page with Banner Implementation
Here is an example of an HTML page with banner implementation:
CCM Advanced
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <script src=//consent.trustarc.com/notice?domain=trustarc.com&c=teconsent&js=nj¬iceType=bb&pcookie&text=true></script> </head> <body> <div id="consent_blackbar"></div> Test Page Content<br> <footer> <div id="teconsent" style="display: none;"></div> <!-- <div id="footerCookie" style="display: none;"></div> --> </footer> </body> </html>
CCM Professional
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<script type="text/javascript" async="async" src="https://consent.trustarc.com/v2/notice/{cmID}"></script>
</head>
<body>
<div id="consent-banner"></div>
Test Page Content<br>
<footer>
<div id="teconsent"></div>
</footer>
</body>
</html>
TrustArc · Cookie Consent Manager — UI Customization Guide · www.trustarc.com