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>

Data Discovery API: Streamlining Enterprise Privacy & Compliance
Your privacy team just discovered that marketing deployed a new analytics platform three months ago without notifying anyone. Legal is preparing responses to 47 data subject access requests but doesn't know which systems contain the requesters' data. Compliance needs an updated Record of Processing Activities for tomorrow's audit, but your last inventory is six months old.
- Legal & News
- Data Protection

Japan Privacy Law Compliance: Understanding APPI Requirements
Your SaaS platform just acquired its first Japanese enterprise customer. Marketing wants to run campaigns targeting Japan. HR needs to process employee data for your Tokyo office. Legal asks whether Japan's privacy law applies to your operations and what compliance actually requires.

AI Data Minimization: Protecting Privacy in Enterprise AI
Your marketing team receives this notification Tuesday morning: European Data Protection Board announces coordinated enforcement sweep targeting consent management practices. Companies face scrutiny — inadequate cookie consent, unauthorized behavioral tracking, insufficient transparency. With 86% of consumers viewing privacy as a growing concern and only 27% trusting tech providers, privacy-first marketing transforms from optional consideration into operational imperative.
- Legal & News
- Data Protection