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>

CPRA's 12-Month Purge: Syncing Salesforce and Zendesk Without Losing Your Mind
That 12-month data retention clock is ticking. If you're juggling customer data between Salesforce and Zendesk, California's privacy law has handed you a major technical challenge: purge personal information consistently across both platforms without disrupting operations or missing anything that could trigger a violation.
- Legal & News
- Data Protection

EU AI Act Compliance: What Small Developers Need to Know Now
As a small developer or startup founder, you're stuck with a tough balancing act: meeting strict regulations without the deep pockets of tech giants. This breakdown cuts through the legal noise to focus on what actually matters for small shops under these new rules.
- Legal & News
- Data Protection

Climate Data Privacy Risks and Litigation: Critical Developments for Organizations
Recent legal battles over climate data have triggered unprecedented questions about transparency, privacy protections, and stakeholder access rights. If your organization collects, uses, or depends on climate-related information, these emerging legal trends demand your immediate attention.
- Legal & News
- Data Protection