Do Not Track plugin for Craft CMS 3.x
Helpers for respecting Do Not Track headers sent by browsers., (*1)
Requirements
This plugin requires Craft CMS 3.0.0-beta.23 or later., (*2)
Get the Craft 2 version., (*3)
Installation
To install the plugin, follow these instructions., (*4)
-
Open your terminal and go to your Craft project:, (*5)
cd /path/to/project
-
Then tell Composer to load the plugin:, (*6)
composer require wildbit/craft3-donottrack
-
In the Control Panel, go to Settings â Plugins and click the âInstallâ button for Do Not Track., (*7)
Using Do Not Track
You can use the doNotTrack.isEnabled
variable to check whether DNT is enabled in the userâs browser from your twig templates., (*8)
{% if craft.doNotTrack.isEnabled %}
Do Not Track is enabled.
{% endif %}
Brought to you by Wildbit, (*9)