I would appreciate any help with this
Solved! Go to Solution.
Views
Replies
Total Likes
Ah, yeah, if you changed the s object to myS, then you will also need to use that on your tl call.
(this).myS(true, linkType, linkName);
The "Overrides" variable is for a single call, it's still relying on the s object to be available... That's more for when you are sending analytics to multiple suites with different profiles
So let's say you have Suite A and Suite B (and you need s.eVar1 on A and s.eVar28 on B)
you would set a different object for A and B
s for Suite A
and sB for Suite B
(note this sample is ultra simplified for illustration purposes)
s.eVar1 = sB.eVar28 = "value";
s.tl(true, linkType, linkName); // this should send to Suite A and include eVar1
s.tl(true, linkType, linkName, sB); // this should send to Suite B and include eVar28
If you only have a single suite, was there a reason why you overwrite the s object? Was there a conflict with something else on your site? Changing the s object can lead to a lot of headaches, I would only do that in extreme circumstances like needing to send to multiple suites on different profiles, or something like the devs decided to use "s" in their core functionality and now everything is conflicting (and even in that I would kindly ask them to change if possible
Views
Replies
Total Likes
This looks like a hard JS error in relation to the s.lt() function?
I think this is very different from a data layer interaction issue that was happening in the other post, but it's hard to say.
I think we would need to see more of your setup to be able to support this. Using GTM for AA is much more difficult than using Adobe Launch to track GA.
Aside from playfully suggesting using Launch
Thank you for looking into this @Jennifer_Dungan - Yes, Launch is something we plan to implement in the future when we have the budget for it. Thank you for offering to jump on a call, I've just messaged you directly
Hi @alexc287
It seems like you have changed the adobe tracker from "s" to "myS" while setting up app measurement code also the error seems like related to tl function which is used to send non page view beacon to adobe from the screenshot it looks like a syntax error you need to add the tracker as well before adobe function like like t() and tl(), try replacing tl in your click tag in GTM with myS.tl(true, "o") to send a non page view beacon to adobe.
check this article for more information on tl method and its required arguments.
Note: Make sure to pass the required argument in the tl() function else the calls will be treated as a page view.
Thank you for sharing your thoughts on this @Ankit_Chaudhary . Yes, myS and tl() are used in the AA related custom variable and tags.
The confusing part is that no changes were made to the AA setup, the issue appeared all of a sudden. I'll read up about this, will try to implement it and will let you know if that resolves the issue
Views
Replies
Total Likes
Ah, yeah, if you changed the s object to myS, then you will also need to use that on your tl call.
(this).myS(true, linkType, linkName);
The "Overrides" variable is for a single call, it's still relying on the s object to be available... That's more for when you are sending analytics to multiple suites with different profiles
So let's say you have Suite A and Suite B (and you need s.eVar1 on A and s.eVar28 on B)
you would set a different object for A and B
s for Suite A
and sB for Suite B
(note this sample is ultra simplified for illustration purposes)
s.eVar1 = sB.eVar28 = "value";
s.tl(true, linkType, linkName); // this should send to Suite A and include eVar1
s.tl(true, linkType, linkName, sB); // this should send to Suite B and include eVar28
If you only have a single suite, was there a reason why you overwrite the s object? Was there a conflict with something else on your site? Changing the s object can lead to a lot of headaches, I would only do that in extreme circumstances like needing to send to multiple suites on different profiles, or something like the devs decided to use "s" in their core functionality and now everything is conflicting (and even in that I would kindly ask them to change if possible
Views
Replies
Total Likes
OK, just a follow-up on this...
Changing the value as per above didn't actually fix the issue, so I met with @alexc287 on a screenshare session.
The GTM implementation had been done by a third-party, and boy was it a doozy... myS wasn't actually a custom "s object"... it was just an standard JSON object.
The implementation was basically a tag for each of the click triggers, which set the click specific variables, then daisy-chained to a generic "click function" that set all the variables (custom and general) for the clicks, then tried to pass the values into the click function... it was... well, odd.
So basically, Alex and I removed the daisy chaining, and since the "general" dimensions were already set in the page, we didn't need to re-populate them, we just added them to the s.linkTrackVars. Then called the s.tl function in a standard way.
This is a much cleaner, and easier to read and manage solution than what it started as; and at now the one rule is working. Alex will still have to update the rest of his click items, but he now has a working model to based the fixes on.
While this likely won't help other people finding this thread (since this was a very unique solution), I wanted to make sure it was updated with proper details.
Thank you very much for your help with this! I wouldn't have been able to resolve it myself.
I've updated the rest of the custom event tracking-related GTM tags and the solution works well. I've attached a screenshot of one of the tags, as this might help someone.
I'm so glad we managed to sort this out, and that you have replicated the solution to all the tags that were broken... Honestly, I don't even understand how it ever worked... but it clearly did