Trigger Tag Fires once per session

MRubens
Silver Contributor
Silver Contributor MRubens

Hello, I have multiple Tealiunm Generic tags (3) established, each of which needs to fire "once" per user session based on the users location within the site.

// User lands on /my_page_01 - tag_01 is triggered
// User lands on /my_page_02 - tag_02 is triggered
// User lands on /my_page_03 - tag_03 is triggered

For each of these tags I have a Persist Data Value extension establablished for the purpose of setting a designated cookie value to "0". I also have a Javascript extension establish to change the value of this cookie to "1" based on each individual Pathname condition.

 

// User lands on /my_page_01 - tag_01 is triggered

// Set cookie to keep tags from firing more than once
u.callback = function() { // tealium helper method to update cookie value utag.loader.SC("tag_triggered_01", "1;exp-session"); }

 

These extensions, in conjunction with load rules that align with each of my Pathname conditions are individuallly mapped to each tag. The end goal is for the resulting configuration to allow each tag to fire "once" based on the user landing in the location of the site assigned to each specific tag.

When I only have one tag active, this set-up works just fine. However, when more than one tag is active, all of the tags conditions have to be met for each of the tags to stop firing.

What do I need to do to segrigate this behavior so that these conditions are not interdependent; and, each tag only fires once - for real.

Thanks! 

 

 

1 REPLY 1
Highlighted

Trigger Tag Fires once per session

MRubens
Silver Contributor
Silver Contributor MRubens
I've been able to resolve this issue by addressing how I construct my load rules.

Initially, I had individual load rules for each of the Tags in question. One to evaluate pathname; and one to evaluate if the cookie assigned to this tag had a value equal to 0; if both were true, execute the tag. And, in each tag these load rules were applied and set to "Match All". But this wasn't working.

So, I put all of the conditions within one load rule for each tag; i.e. match pathname, and if cookie value equals 0 execute.

This seems to work.