Expand my Community achievements bar.

[AAE] Have Adobe Analytics Global Variables fire on all AA rules

Avatar

Adobe Champion

8/21/18

The variables set in the Analytics extension's Global Variables seem to not fire on all rules/rule types (see Global Variables - Direct Call Rule ). This is similar to how it was in DTM.

It would be great if we had some control over this (maybe give me the ability to say "fire for all beacons" or "fire for all s.t beacons" or "fire immediately before any beacon, but after other rules" or something), or by default they DID fire anywhere the Analytics Extension was in a rule. Otherwise, folks still have to resort to using doPlugins, or setting up a rule for global variables that somehow fires on all other AA rules/beacons.

23 Comments

Avatar

Adobe Champion

4/2/19

As a followup, I just retested this.... and it is still a problem. It doesn't seem to make a difference whether the "subsequent" beacons are s.t() or s.tl()... my global variables only get set on my initial rule.

Avatar

Community Advisor

4/2/19

would it be an option to "move" ALL s.tl() calls to the rule setup? would mean instead of doing all the config stuff in the analytics extension, the extension provides both a trigger for download-clicks/exit clicks which could be used similar to custom link tracking. that would allow to setup the rule just as we do with all the other rules ....

Avatar

Level 3

4/27/19

I've achieved this by stacking rules, and pushing all analytics track events down through a single direct call which has a number of different rules listening, in a specific order. Some rules are conditional, some aren't - so this way, I can control certain variables that apply to everything, and certain variables that are conditional. The last rule fires the beacon. Maybe not ideal, but it works well for us.

This also allows us to reference analytics variables in a specific order: for example, we set hierarchy variables based on s.pagename (with some modification), if I do this in the extension I cannot control the order in which it is evaluated and therefore I end up with incorrect variable settings, but by doing this in stacked rules I can easily control the order of evaluation and ensure the result is correct. Even if we had the ability to choose when the global variables are evaluated (s.t vs s.tl / etc), it would not address my requirement to control the order of evaluation as that would be unique to my implementation and each property.

Avatar

Adobe Champion

4/29/19

I can see this working and is a good solution in the current set up, but I still definitely would like a way to do it without having to make sure my "global" rule gets triggered for ALL rules/beacons.

Avatar

Adobe Champion

4/29/19

even if I move all s.tl beacons to rules, this is still an issue.... my global variables don't fire on my s.tl rule-based beacons either.

Avatar

Level 2

10/30/19

I do have the same issues on custom event calls. Solved it by a helper function, which sets all global variables on events. I once define the global variables in this function, and then call it in the AA Set Variables component (on every rule) in custom code and works perfectly. But yes, this should be handled without custom code.

Avatar

Level 4

11/26/19

FYI I've never encountered this problem since using Launch in October 2019.

My setup:

  • Adobe Analytics extension: include all global variables to be set with all AA hits.
  • Rules: include variables that should be set in those rules.

Result:

All of my AA hits include my global variables, including s.tl() hits.

Avatar

Community Advisor

11/27/19

the question is if you need a "clearVariables" at the end of all rules? otherwise I think it will keep the old variables/events and messing up tracking (eg. you set a specific event on s.t() and it will appear on the subsequent s.tl() call...