Tealium iQ - Call utag_link after 60 seconds on a page

Bronze Contributor
Bronze Contributor

Hi,

I am trying to set utag_link after a user is on a page for 60 seconds. I am using this, but it sets it repeadedly every 60 seconds it seems.

Any ideas?

function setUtagLink(){
var setIt = function(){
utag.link(
{
tealium_event: 'timer60',
customLinkName: 'Link Name'
}
);}

var theTimout = setTimeout(setIt,60000);
}

setUtagLink();

1 REPLY 1

Tealium iQ - Call utag_link after 60 seconds on a page

Tealium Employee

After the function triggers in the timeout, you can clear the timeout and it won't trigger again.

https://www.w3schools.com/jsref/met_win_cleartimeout.asp

Jen Kaye
Senior Premium Success Engineer | Tealium, Inc.
Public