COOKIES. CONSENT. COMPLIANCE
secure privacy badge logo
June 23, 2019

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.

  1. 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.
  2. On script tags change the attribute 'type' from 'text/javascript' to 'text/plain'.
  3. 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>

image

How to Automate Privacy Impact Assessments

Your privacy team receives 50 new processing activity requests monthly. Each requires comprehensive risk assessment documentation. Manual workflows using spreadsheets and email coordination consume weeks per assessment. Business stakeholders complain about delays. This operational reality drives organizations to automate privacy impact assessments (PIAs and DPIAs).

  • Legal & News
  • Data Protection
  • GDPR
  • CCPA
image

Browser Signals Explained: Privacy, Consent & Compliance

Your website loads tracking scripts before users interact with consent banners. Third-party cookies fire automatically. Analytics platforms collect behavioral data by default. Each practice creates potential violations under GDPR, ePrivacy, and state privacy laws — particularly when users have configured browser signals expressing explicit privacy preferences.

  • Legal & News
  • Data Protection
  • GDPR
  • CCPA
image

AI Governance Framework Tools: How to Operationalize Responsible AI

Organizations deploying AI systems face a critical gap between regulatory requirements and operational reality. While frameworks like the EU AI Act, NIST AI RMF, and GDPR define what organizations must do, they don't explain how to implement these obligations across dozens or hundreds of AI systems. This gap has created an emerging category of software: AI governance framework tools that translate abstract compliance requirements into machine-enforceable controls.

  • Legal & News
  • Data Protection
  • GDPR
  • CCPA