Error: s is not defined | Community
Skip to main content
October 3, 2023
Question

Error: s is not defined

  • October 3, 2023
  • 1 reply
  • 673 views

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.

 

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Jennifer_Dungan
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
October 3, 2023

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"