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>

LGPD Compliance: Practical Guide for Businesses in Brazil (2026-ready)
Your company processes personal data from Brazilian customers. Marketing collects email addresses. Sales accesses prospect information. Operations stores transaction records. Each activity creates potential liability under Brazil's comprehensive privacy law — and the Autoridade Nacional de Proteção de Dados (ANPD) has dramatically escalated enforcement since 2023.
- Legal & News
- Data Protection
- Privacy Governance

Privacy Software for Schools: Protecting Student Data & Staying Compliant
School administrators face an escalating crisis. Your district manages 200+ educational technology vendors. Teachers adopt new learning apps weekly. Student data flows across cloud platforms, analytics tools, and communication systems — each creating potential privacy violations. A single misconfigured consent banner or unauthorized vendor access could trigger investigations, fines, and parental trust collapse.
- Legal & News
- Data Protection
- Privacy Governance

GDPR Compliance Guide for Marketing Agencies (2026)
Marketing agencies operate in a legal grey zone that's rapidly disappearing. You manage client data across dozens of platforms. Your team sets targeting criteria for ad campaigns. You access CRMs, analytics tools, and email systems containing personal data from thousands of end users. Each action creates potential GDPR liability.
- Legal & News
- Data Protection