I want to setup a global tag that fires after 30s pageview

Bronze Contributor
Bronze Contributor

Hi, 

Ive had a business request to setup a tag that fire anytime a pageview exceeds 30s.

Ive found a couple of old threads from 2014/15 that had a couple of solutions that didnt seem fit for purpose.

 

Solution 1 was to suppress ALL tags on a page for 30s.

Solution 2 was to implement this for a specific page, not global.

 

I wasnt able to find anything newer than that so my question is, is this possible in tealium and if so how please?

 

Thanks, 

1 REPLY 1

I want to setup a global tag that fires after 30s pageview

Tealium Employee

Hi Grant! If you want to set up a specific tag to fire after 30 seconds, you can use a JavaScript code extension set to DOM Ready with the following code, where "XX" is the UID number of the tag you would like to trigger:

var myTimeout = setTimeout(fireTag, 30000);
function fireTag() {     utag.view(dataObj, null, [XX]); }  

 You would need to populate "dataObj" with the data you want to send with the utag.view() event. 

I hope this helps achieve your desired results.

Thanks,

Jen

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