To block cookies and trackers you need to change the attributes of the script tags on your website. Follow these steps to change the attributes.
- Apply the attribute
sp-consent="PLUGIN NAME"to the script/image tags on your website. Depending on where you have installed the plugins, this may be inside a module, plugin or directly on your website. Make sure that you write exact plugin name, which appear on your Scan Report.
- If you are using a pixel tracker (image trackers), then change the attribute “src” from “src” to “data-src”.
Here is an example how it would looks after you have modified a Google Analytics script.
Normal script tags look like this:
Using script type re-writing, you need to change the scripts to:
<script type="text/plain" sp-consent="Google Analytics">