Expand my Community achievements bar.

Error: s is not defined

Avatar

Level 1

Hi,

 

I am trying to understand why I have this errors and the tracking is not working and I need some help. I need to mention that there is OneTrust with AutoBlocking on, and sometimes these errors come up, sometimes not. 

The OneTrust script is positioned above the Adobe script in the head.

 

If I remove the OneTrust script, the tracking works as expected. 

 

For the 's is not defined' error, I want to mention that I have checked the "Make tracker globally available" checkbox in the Adobe Extension.

claudiup1_0-1696332825704.png

 

Thanks

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Reply

Avatar

Community Advisor and Adobe Champion

I might be because the One Trust could be blocking AppMeasurement (where the s object is defined) by default.. your custom code on clicks is still trying to reference the s object when it doesn't exist...

 

If your click rule is only for analytics, you may need to add conditions to the rule to only trigger when Consent is provided... or if the rule does both tracking and other functions, you may need to write some custom code to check for the s object and gracefully fail only the tracking portion when consent is set to "block"