Expand my Community achievements bar.

Join us at Adobe Summit 2024 for the Coffee Break Q&A Live series, a unique opportunity to network with and learn from expert users, the Adobe product team, and Adobe partners in a small group, 30 minute AMA conversations.

Add a parameter to s-object to disable tracking

Avatar

Level 10

2/17/10

In some cases your s_code is loaded but you don't want to fire any tracking. Would be beneficial to have a s.disableTracking=true; parameter to disable any tracking to go out.

While you would be able to put the s.t() call into an if-statement you would also need to turn of any auto-tracking and catch all s.tl()-calls and abort them.

 

A sample case:

if you don't care about saved copies of your site:

if (location.protocol=='file:') { s.disableTracking=true; }

would do the trick.

Currently it's a lot more code.