Add a parameter to s-object to disable tracking | Community
Skip to main content
Level 7
February 17, 2010
New

Add a parameter to s-object to disable tracking

  • February 17, 2010
  • 0 replies
  • 570 views

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.