Versionv1

Debugging

Work symptom → verify → fix. Keep GTM Preview and DevTools open; one change at a time.

Quick checks (any issue)

  1. View page source (not only Elements): uc.js appears once, near the top of <head>.
  2. GTM Preview (if you use GTM): CMP tag fires on Consent Initialization before dependent tags.
  3. Application tab: after choosing consent, storage/cookies look plausible for your rootDomain.
Likely causeHow to verifyFix
Bad policy_linkOpen the URL in a new tab; check HTTPS and status codeUse a live policy page; fix redirects / 404
Snippet too low or only in bodyView page source; search for uc.jsMove the block to the start of <head>
SPA / framework mounts lateCompare server HTML vs rendered DOMLoad the CMP from the root layout or shell that wraps every route
Duplicate or conflicting window.INTASearch the repo / HTML for window.INTAKeep one definition before uc.js
Likely causeHow to verifyFix
Tag has no post-consent triggerGTM Preview: accept in banner; tag never appears in timeline afterAdd a Custom Event trigger on cookie_consent_update (Events and API), and/or consent-aware tag settings
Tag blocked by GTM “consent” settingsTag configuration → Consent settings; Preview shows tag “blocked”Align tag consent with your legal default or fire only when purpose is granted
gtagId missing for GA4 + CMP-driven Google pathCompare with QuickstartSet settings.gtagId or wire GA without it using a documented alternative
Consent Mode defaults too strictGA DebugView / Tag Assistant: no hits after acceptAdjust defaults on purpose and document; see Google Consent Mode
Ad blockers / browser privacySame page in clean profile or disable extensionsDistinguish product issue from client blocking
Likely causeHow to verifyFix
GA/Ads on “All Pages” before CMPGTM Preview timelineFire CMP on Consent Initialization; gate dependent tags
Hard-coded gtag.js in HTMLSearch for googletagmanager.com/gtagRemove duplicate loaders or place after CMP
Third-party embed in <head>Network tabDefer until the matching purpose is allowed

GTM triggers “not working”

Likely causeHow to verifyFix
CMP not on Consent InitTag trigger type in GTMUse Consent Initialization – All pages (or equivalent)
Race with Page ViewOrder of events in PreviewEnsure CMP fires before analytics tags
Wrong containerContainer ID on sitePoint the site at the intended GTM container
Likely causeHow to verifyFix
Wrong rootDomainCompare settings.rootDomain with hostnameAlign with your cookie domain model
Two copies of uc.jsSearch for uc.js in sourceSingle canonical install
Likely causeHow to verifyFix
Tags cached before choiceFull reload after clearing site dataRetest in private window
Container not republishedGTM workspace vs livePublish version with CMP + trigger changes
Wrong environment (staging container)GTM ID in source vs expectedPoint site at correct container

Still stuck

Capture: browser, page URL (staging is fine), view-source snippet around uc.js, and if using GTM a Preview screenshot or export. Then use your support channel or FAQ resources on the docs home.

← Documentation home

Last updated