Helpers for respecting Do Not Track headers sent by browsers.
Brought to you by Wildbit
To install Do Not Track, follow these steps:
- Download & unzip the file and place the
donottrackdirectory into yourcraft/pluginsdirectory - -OR- do a
git clone https://github.com/wildbit/craft-donottrack.gitdirectly into yourcraft/pluginsfolder. You can then update it withgit pull - Install plugin in the Craft Control Panel under Settings > Plugins
- The plugin folder should be named
donottrackfor Craft to see it. GitHub recently started appending-master(the branch name) to the name of the folder for zip file downloads.
Do Not Track works on Craft 2.4.x and Craft 2.5.x.
You can use the doNotTrack.isEnabled variable to check whether DNT is enabled in the user’s browser from your twig templates.
{% if craft.doNotTrack.isEnabled %}
Do Not Track is enabled.
{% endif %}