Follow

Do Not Track - Disable Visitor Tracking in Angelfish

Some browser developers support the Do Not Track initiative, and many organizations have in place the methods to honor that request.

Do Not Track is an initiative aimed at letting users express a preference to not be tracked by websites.  

The browsers that provide this feature send a "DNT: 1" element in the HTTP header.

The Mozilla Developer Network also explains a fairly new DOM property that can be used to detect this setting and then get used in some JavaScript code.

The DOM property is navigator.doNotTrack.  Please read more about it at the Mozilla Developer Network.

Angelfish has methods to support Do Not Track, yet it is your organization's responsibility to place code on your website that will call the Track and Do Not Track controls for Angelfish.

 

There are two JavaScript methods available with Angelfish that allow this functionality for the Do Not Track request.

agf.disable()
  • Call this method to disable agf.gif requests.  This stops any of the visitors data from being stored, by way of an agf.gif request, in the web server log files.  This will need to be included in every place the Angelfish javascript file is located.
agf.enable()
  • Call this method to activate Angelfish tracking by way of the /agf.gif request.  Most likely the agf.enable() method will not be used as much as the disable method.

 Notes:

  • By default tracking is enabled, using the standard angelfish tracking code.  Every web page which has the Angelfish tracking code on it, will call agf.pageview(), so you will have to call agf.disable() if the Do Not Track header is detected and is true.
    • Include a JavaScript function that calls agf.disable() if Do Not Track is enabled and place that just after the Angelfish tracking code.
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Article is closed for comments.