- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
Hello I am trying to add Consent Integration.
I followed all the steps on the guide
Now, when I visit my website I expect to see the new variables in the datalayer (tci) but I don't.
I also copy and paste the snippet in the browser console
var outputString = `${tealiumCmpIntegration.cmpName} - ${tealiumCmpIntegration.cmpCheckIfOptInModel() ? 'Opt-in' : 'Opt-out'} Model Checks: - vendor id: ${tealiumCmpIntegration.cmpFetchCurrentLookupKey()} - well-formed decision: ${tealiumCmpIntegration.cmpCheckForWellFormedDecision(tealiumCmpIntegration.cmpFetchCurrentConsentDecision())} - explicit decision: ${tealiumCmpIntegration.cmpCheckForExplicitConsentDecision(tealiumCmpIntegration.cmpFetchCurrentConsentDecision())} - consented purposes: ${JSON.stringify(tealiumCmpIntegration.cmpConvertResponseToGroupList(tealiumCmpIntegration.cmpFetchCurrentConsentDecision()).sort(),null, 8)} ` console.log(outputString)
but I get an error message
Uncaught ReferenceError: tealiumCmpIntegration is not defined
Can anyone suggest what might go wrong?
older versions of utag did not support CmpIntegrations.
See:
https://docs.tealium.com/iq-tag-management/consent-integrations/about/
Tealium iQ Consent Integrations has a dependency on the latest utag version 4.49. To enable support in previous versions, edit the uTag Loader template and add ##UTCM## under the ##UTGEN##publish engine flag.
Edit your uTag Loader as described in https://docs.tealium.com/iq-tag-management/templates/manage/#admin-menu
Was this your problem?
Copyright All Rights Reserved © 2008-2023