wildbit / craft3-donottrack
Craft 3 plugin for respecting Do Not Track headers sent by browsers.
Installs: 4 161
Dependents: 0
Suggesters: 0
Security: 0
Stars: 13
Watchers: 13
Forks: 1
Open Issues: 0
Type:craft-plugin
Requires
- craftcms/cms: ^3.0.0-RC1
This package is auto-updated.
Last update: 2024-10-29 05:40:13 UTC
README
Helpers for respecting Do Not Track headers sent by browsers.
Requirements
This plugin requires Craft CMS 3.0.0-beta.23 or later.
Get the Craft 2 version.
Installation
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project
-
Then tell Composer to load the plugin:
composer require wildbit/craft3-donottrack
-
In the Control Panel, go to Settings → Plugins and click the “Install” button for Do Not Track.
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.
{% if craft.doNotTrack.isEnabled %} Do Not Track is enabled. {% endif %}
Brought to you by Wildbit