- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
07-12-2022 04:02 AM
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,
07-12-2022 03:23 PM
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
Copyright All Rights Reserved © 2008-2023