- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
I am trying to troubleshoot a custom javascript tag but can't figure out what window.fireflag does.
if(!window.fireFlag){
(function() {
dataLayer.events.listener.listen('eventName', function(eventData) {
window.fireFlag = 1;
utag.link({...call goes here... });
}
});
Any idea as to why window.fireflag is needed? Tried searching online but can't find any reference to it anywhere. Is it a custom Tealium Window Object? I think it helps avoid multiple utag calls? but it also seems to disable further utag.link calls from other extensions within the same page...
Any insight would be appreciated.
Thanks
Hi @corzop,
You're exactly right, the fireFlag
variable is being used to determine if the tag has fired already if it has then don't run the code again.
Thanks @simon_browning.
So is fireFlag a Tealium custom variable? Just want to learn compatibility of it between tags and extensions and how to work with it. Seems like two extensions on the same page with that code each will only execute the first one (since it only runs the code once, regardless of its container)
Also, what is the difference between using fireflag and Scope Execution Run Once after/before Load Rules?
Any documentation on fireFlag anywhere?
Appreciate any light or knowledge you can shed on this.
Pablo
@simon_browning Thanks for the insight.
Will try the 'run once' approach and see what happens.
Thanks,
Pablo
12-05-2017 03:41 AM - last edited on 12-05-2017 12:40 PM by kathleen_jo
Hello @corzop,
You can use run once or I would recommend to use eventprobagations to run once approach.
Hope it helps!!
Copyright All Rights Reserved © 2008-2023