This is slightly difficult to explain but I will try my best.
I noticed in the current implementation I am working on that for events that are tracked as custom links, that whenever an evar has been defined for any of these rules, this populates for all custom links with Unspecified if not explicitly defined for that event/rule. Just wanting to know if this behaviour is expected or if there is a change I could make to avoid this happening? I don't need suggestions of other ways to capture at this point, just if other users see this. Using a very simple example:
I have 2 rule based events that are captured as a custom link, named time and day
During a journey:
the time rule populates evar1 with '11am'
the day rule populates evar 2 with 'Wednesday'
In AA, the data we get appears like the following is happening:
When the time rule fires, evar1 = 11am and evar2=Unspecified
When the day rule fires, evar1 = Unspecified and evar2=Wednesday
So it looks like both custom links are populating all variables, whether a value has been defined for the rule or not. Does that make sense and is this something that is expected?
Thanks in advance for any help
Are these answers useful? Help other community members by marking useful answers as accepted.
Hi kumararajak, thanks for the response, however, the day and time were only example rules, I did not need another way of tracking these. I maybe should have called my examples something completely obscure so nothing was read into this. Apologies for the confusion
Not sure if I understood the scenario completely, but it looks like the issue might be related to the concept of linkTrackVars and linkTrackEvents in Analytics. By logic and design, if you are using custom code in a rule and if s.linkTrackVars isn't explicitly defined, all the variables that have values will be triggered with the custom link calls.