- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
10-09-2017 07:06 AM
Hello,
I need to push a banner ( coded in a single JS file ) using Tealium IQ when a customer visit our website for the first time. Within the banner, I have a link "See more details", The privacy manager's popin should be trigred when cliking on this link.
I succeded to show the banner in the first visiting (via Tealium), but I'm still not capable to trigger the "privacy manager popin" when cliking on the banner's link "See more details", because the privacy manager extention is executed before showing the banner.
Could you help me please ?
Thank you
Solved! Go to Solution.
10-10-2017 03:23 AM
Hi @ABK,
Can you add a click listener to the privacy manager extension and show the popin on the link click?
Otherwise, please share extension scope/moment of execution and order in Tealium extension tab.
Cheers,
Flo
10-10-2017 06:09 AM - last edited on 10-10-2017 07:33 AM by kathleen_jo
Hi @florian_perl,
I don't want to add a click listener to the privacy manager extension, It's not the purpose.
I would like to push a banner using javaScript, and on this banner, make a click listener to trigger the privacy manager.
In terms of order, I have actually :
Here is the scope of the banner ( java script extension ) :
10-10-2017 08:26 AM - edited 10-10-2017 08:26 AM
You can use this javascript function to launch privacy manager - please change <account>, <profile> and <environment> with your own settings.
function optOutOptionsClicked() { if (typeof __tealiumMo2Div == 'undefined') { __tealiumMo2Div = document.createElement('SCRIPT'); __tealiumMo2Div.type = 'text/javascript'; __tealiumMo2Div.src='//tags.tiqcdn.com/utag/<account>/<profile>/<environment>/utag.tagsOptOut.js?cb='+Math.random(); document.getElementsByTagName('head')[0].appendChild(__tealiumMo2Div);} else{ if (typeof __tealium!='undefined') __tealium.load(); } }
Then use an onclick to call the funciton.
optOutOptionsClicked()
This will launch the privacy manager widget / popup .
Robert
10-11-2017 02:18 AM - edited 10-11-2017 02:19 AM
Thanks for sharing this @Anonymous!
There is another simple way around this that seems to work well.
10-11-2017 03:09 AM
10-11-2017 03:10 AM
10-11-2017 04:08 AM
Hi @ABK,
I set my <div> using another extension:
Robert's solution also uses a <div> but in the end it is neater as it loads the Privacy Manager window rather than the button.
Copyright All Rights Reserved © 2008-2023