How to block cookies and trackers with JavaScript rewrite
This guide explains you how to block cookies and plugins with Secure Privacy using Javascript rewrite.
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 the exact plugin name, which appears on your Scan Report.
- On script tags change the attribute 'type' from 'text/javascript' to 'text/plain'.
- If you are using a pixel tracker (image trackers), then change the attribute “src” from “src” to “data-src”.
Here is an example of how it would look after you have modified a Google Analytics script.
Normal script tags look like this:
<script type="text/javascript"> code…
</script>
Using script type re-writing, you need to change the scripts to:
<script type="text/plain" sp-consent="Google Analytics"> code…
</script>

Designing Consent in Virtual Spaces: The Critical Challenge of VR/AR Safety
How do we design consent mechanisms that protect users while preserving the immersive experiences that make VR/AR valuable?
- Legal & News

Smart Vehicle Data Ownership: Compliance, Control, and Innovation
Is your organization prepared for the fundamental shift in vehicle data rights coming in 2025? Understanding these changes isn't just about compliance—it's about positioning your business for success in an increasingly data-heavy automotive ecosystem.
- Legal & News

Consent-as-a-Service (CaaS) Models for SMEs: Low-Cost Compliance via API Ecosystems
Is your business struggling with the costs and complexity of privacy compliance? CaaS solutions might offer the streamlined approach you need without breaking your budget or requiring specialized expertise.
- Legal & News