https://github.com/activecampaign/craft3-donottrack
Craft 3 plugin for respecting Do Not Track headers sent by browsers.
https://github.com/activecampaign/craft3-donottrack
craft-plugin craft3 craftcms craftcms-plugin
Last synced: about 1 year ago
JSON representation
Craft 3 plugin for respecting Do Not Track headers sent by browsers.
- Host: GitHub
- URL: https://github.com/activecampaign/craft3-donottrack
- Owner: ActiveCampaign
- License: mit
- Created: 2018-05-29T12:53:11.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-29T13:39:14.000Z (about 8 years ago)
- Last Synced: 2025-04-01T16:07:50.853Z (about 1 year ago)
- Topics: craft-plugin, craft3, craftcms, craftcms-plugin
- Language: PHP
- Size: 6.84 KB
- Stars: 13
- Watchers: 12
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Do Not Track plugin for Craft CMS 3.x
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](https://github.com/wildbit/craft-donottrack).
## Installation
To install the plugin, follow these instructions.
1. Open your terminal and go to your Craft project:
cd /path/to/project
2. Then tell Composer to load the plugin:
composer require wildbit/craft3-donottrack
3. 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.
```twig
{% if craft.doNotTrack.isEnabled %}
Do Not Track is enabled.
{% endif %}
```
Brought to you by [Wildbit](https://wildbit.com)