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>

Cross-Domain Cookie Consent: Complete Implementation Guide
Cross-domain cookie consent is a vital solution for companies managing multiple websites, subdomains, or digital properties under one corporate umbrella. Without proper implementation, users face repetitive consent banners as they move between related sites, creating friction and potentially exposing organizations to compliance risks.
- Legal & News
- Data Protection
- Cookie Consent

Google Consent Mode on Mobile: A Practical Guide for Marketers and Developers
Your mobile analytics are broken, and you might not even know it. Google consent mode mobile implementation has become mandatory for apps serving European users as of March 2024, yet most businesses are still using desktop-only solutions that fail catastrophically on mobile devices.
- Legal & News
- Data Protection
- Governance

Documents Module – Secure Repository for Privacy Governance
Privacy documents management has become the backbone of effective data protection programs as organizations face increasing regulatory scrutiny and complex compliance requirements. Without centralized document control, privacy teams struggle with scattered files, outdated versions, and inconsistent access permissions that create significant compliance risks.
- Legal & News
- Data Protection
- Governance