Adding Web Analytics Tags to Trust Center

Overview

Trust Center now supports injecting web analytics tracking tags directly into the <head> section of your published Trust Center pages. This connects your Trust Center to tools like Google Analytics, Google Tag Manager, Adobe Analytics, or any other tag-based solution — giving you visibility into visitor traffic, page views, and user behaviour.

Previously there was no supported way to measure how visitors interacted with your Trust Center. This feature closes that gap with a dedicated tag field, scoped per Trust Center, that injects your markup into every published page.

What you can track
Page views and visitor sessions Scroll depth and link clicks
Traffic by geography, device and source Document download events
Visitor counts per policy page Feed into existing analytics dashboards
Supported Analytics Tools
Tool How to use
Google Analytics 4 (GA4) Paste the gtag.js measurement snippet
Google Tag Manager (GTM) Paste the GTM <head> snippet only (not the <body> snippet)
Adobe Analytics Paste the Adobe Launch or AppMeasurement <head> snippet
Matomo / Piwik Paste the Matomo tracking code snippet
Any custom tool Any valid HTML markup intended for the <head> tag is supported
Example: Google Analytics 4 — Realtime Overview capturing Trust Center traffic
Google Analytics 4 Realtime Overview showing active Trust Center visitors, page views, and event counts
Active users, page views by title, event counts, and geographic data — all visible once a GA4 tag is configured in Trust Center.
Prerequisites
Active TrustArc account with Trust Center access
Active account with your analytics platform (e.g. a GA4 property or GTM container already created)
Your analytics tracking snippet or tag code ready to paste
Step 1 — Obtain Your Analytics Tracking Snippet

Before configuring Trust Center, retrieve your tracking snippet from your analytics platform. Steps below cover the two most common tools — GA4 and GTM.

GOOGLE ANALYTICS 4 (GA4)
  1. Log in to Google Analytics and go to Admin.
  2. Under Data Collection and Modification, click Data Streams.
  3. Select your web data stream (or create one for your Trust Center).
  4. Click View tag instructionsInstall manually.
  5. Copy the full gtag.js snippet shown below and paste it into the Trust Center tag field:
GA4 Tracking Snippet
<!-- Google tag (gtag.js) -->
<script async
  src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX">
</script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());
  gtag('config', 'G-XXXXXXXXXX');
</script>
GOOGLE TAG MANAGER (GTM)
  1. Log in to Google Tag Manager and open your container.
  2. Click AdminInstall Google Tag Manager.
  3. Copy only the first snippet labelled "Copy and paste this code as high in the <head> of the page as possible."
⚠️ Important: Do not copy the second (body) snippet. The <noscript> tag in the <body> snippet is not supported and should not be included in Trust Center.
Step 2 — Open Trust Center Settings
  1. Log in to TrustArc and navigate to Trust Center.
  2. From your list of Trust Centers, select the Trust Center you want to configure.
  3. Open Settings or the Configuration area for that Trust Center.
  4. Locate the Custom Scripts section.

    tc_web_analytics_tags_2.png
📋 Note: The tag field is scoped per Trust Center. If you have multiple Trust Centers, configure the tag separately for each one. This lets you use different analytics properties per Trust Center if needed.
Step 3 — Paste the Analytics Tag
  1. Click inside the Custom Scripts field.
  2. Paste your full analytics tracking snippet. Do not modify it — paste it exactly as provided by your analytics platform.
  3. Review the pasted code to confirm it is complete:
    • A GA4 snippet should begin with <!-- Google tag --> and contain two <script> blocks
    • A GTM snippet contains one <script> block referencing googletagmanager.com
  4. Click Save.
💡 Tip: To track multiple tools simultaneously — for example, both GA4 and GTM — paste both snippets into the field, one after the other. The field supports multiple blocks of HTML markup.
Step 4 — Publish Your Trust Center
  1. After saving the tag, publish your Trust Center (or republish if it was already live).
  2. The analytics tag will now be injected into the <head> section of every page within that Trust Center when it loads in a visitor's browser.
⚠️ Important: Saving the tag does not automatically push it live. You must publish your Trust Center for the tag to appear on public-facing pages and begin collecting data.
Step 5 — Verify Tracking Is Working

After publishing, confirm your analytics tool is receiving data.

VERIFYING WITH GOOGLE ANALYTICS 4
  1. Open Google Analytics and go to Reports → Realtime.
  2. In a separate browser window, open your published Trust Center and visit a couple of pages.
  3. Return to the GA4 Realtime view. Within 30–60 seconds you should see:
    • Active users in last 5 minutes: 1 or more
    • Your location appearing on the geographic map
    • Page title and screen name showing the pages you visited
    • Events: page_view, scroll, session_start
✓ If data appears in Realtime, tracking is confirmed and working correctly.
VERIFYING WITH GOOGLE TAG MANAGER
  1. Click Preview in GTM and enter your Trust Center URL.
  2. Load your Trust Center — the GTM debug panel should open.
  3. Confirm your analytics tags appear as Fired in the debug panel.
📋 Note: Standard GA4 reports can take 24–48 hours to populate. Realtime is the fastest way to confirm tracking is working immediately after setup.
Updating or Removing a Tag
To Update
  1. Return to Trust Center Settings
  2. Clear and replace the existing tag
  3. Save and republish
To Remove
  1. Return to Trust Center Settings
  2. Clear all content from the tag field
  3. Save and republish
Privacy & Compliance Considerations
⚠️ Important: TrustArc injects the tag you provide as-is. You are responsible for ensuring that the analytics configuration you deploy complies with applicable privacy laws and your organization's data processing policies.
Analytics tools that collect IP addresses or device identifiers may constitute personal data processing under GDPR. Ensure your configuration aligns with your legal basis for processing.
GA4 provides IP anonymization by default. If you require additional anonymization, configure this within your GA4 property settings.
Consider whether collecting analytics data on a consent-management page is appropriate for your organization's privacy posture.
If required by applicable regulations, update your Privacy Policy to disclose the use of analytics tools on your Trust Center.
Troubleshooting
Issue Resolution
No data in GA4 after publishing Check Realtime first — standard reports take 24–48 hours. If Realtime also shows nothing, confirm the tag is saved, the Trust Center is published, and view page source to verify the snippet appears inside <head>.
Tag not in page source Confirm you clicked Save after pasting, and that the Trust Center has been published. Also verify your user role has permissions.
Data going to wrong GA4 property Verify the Measurement ID (G-XXXXXXXXXX) in your snippet matches the intended GA4 property. Update the tag with the correct snippet and republish.
GTM tags not firing Confirm you pasted only the <head> snippet, not the <body>/<noscript> snippet. Use GTM Preview mode to debug. Check page source for your GTM container ID (GTM-XXXXXXX).
Need separate tracking per Trust Center Each Trust Center has its own tag field. Use different GA4 Measurement IDs or GTM containers per Trust Center, or use one GA4 property with a custom dimension to distinguish Trust Centers by URL.
TrustArc Trust Center  ·   ·  Web Analytics Tags  ·  support.trustarc.com