Skip to content

Tealium iQ extension code-snippet to enable visualisation by Tagbird

Notifications You must be signed in to change notification settings

digital-power/tagbird-tealium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 

Repository files navigation

tagbird-tealium

Tagbird can visualise Tealium iQ view and link calls when the code snippet below is deployed using a Tealium JavaScript Extension. The extension should be scoped to "All Tags - After Tags" and placed at the bottom of the list of extensions.

/*
* Tealium JavaScript Extension: Tagbird Visualisation
* Enables visualisation of Tealium iQ view/link calls by Tagbird (Google Chrome Plugin)
* This extension should be scoped to 'All tags - After tags' and placed at the bottom of the list of extensions
*/
var data = { version : utag.cfg.v, tags : [], load_rules : [], data_layer : b };
for(var tag in utag.loader.GV(utag.loader.cfg)){
    if(utag.loader.cfg[tag].load && utag.loader.cfg[tag].send){
      data.tags.push(tag);
    }
}
for(var rule in utag.cond){
    if(utag.cond[rule+""]) {
        data.load_rules.push(rule);
    }
}
window.tealium_event = window.tealium_event || [];
tealium_event.push(["event",a,data]);

About

Tealium iQ extension code-snippet to enable visualisation by Tagbird

Topics

Resources

Stars

Watchers

Forks