How to push a banner via TealiumIQ and link it with privacy manager

ABK
Bronze Contributor
Bronze Contributor ABK

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 

7 REPLIES 7

How to push a banner via TealiumIQ and link it with privacy manager

florian_perl
Silver Contributor
Silver Contributor florian_perl

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

How to push a banner via TealiumIQ and link it with privacy manager

ABK
Bronze Contributor
Bronze Contributor ABK

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 : 

 Capture.PNG

 

Here is the scope of the banner ( java script extension ) : 

banner.PNG

 

 

 

Highlighted

How to push a banner via TealiumIQ and link it with privacy manager

Tealium Employee

@ABK

 

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

How to push a banner via TealiumIQ and link it with privacy manager

florian_perl
Silver Contributor
Silver Contributor florian_perl

Thanks for sharing this @RobertS!

 

There is another simple way around this that seems to work well.

  1. create an invisible <div> with a JS extension
  2. set Privacy Manager inside it
    2017-10-11_11h15_08.png 

  3. On link click, set the <div> visibility to "visible".

 

 

How to push a banner via TealiumIQ and link it with privacy manager

ABK
Bronze Contributor
Bronze Contributor ABK
Hello Florian,

It's a good solution, however, I would like to push the banner only with Tealium, I should not modify the web page

Thank you for your help

How to push a banner via TealiumIQ and link it with privacy manager

ABK
Bronze Contributor
Bronze Contributor ABK
Hi Robert,

Thank you for your precious help, we are integrating that, I will keep you informed

Thanks :)

How to push a banner via TealiumIQ and link it with privacy manager

florian_perl
Silver Contributor
Silver Contributor florian_perl

Hi @ABK,

 

I set my <div> using another extension:

2017-10-11_13h01_15.png

 

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.