Expand my Community achievements bar.

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.