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

What the Australia Privacy Act Reforms Mean for Your Business

The privacy landscape in Australia is changing dramatically. With the Privacy and Other Legislation Amendment Act 2024 now law and more reforms on the horizon, businesses face new compliance challenges and obligations. These changes represent the most substantial overhaul of Australia's privacy rules since they began, bringing the country closer to global standards like the EU's GDPR. Is your business ready for these sweeping changes? Let's break down what you need to know.

  • Legal & News
  • Cookie Consent
  • Cookie banner
Image

UK Data Protection Reform: A Deep Dive

You need to understand this reform represents a deliberate balance: promoting innovation and economic growth while maintaining robust protections for individuals and—crucially—preserving the UK's data adequacy status with the European Union. For businesses operating across borders, this delicate balance could determine whether data continues to flow smoothly between the UK and EU markets or becomes subject to costly additional safeguards.

  • Legal & News
  • Cookie Consent
  • Cookie banner
Image

Managing Data Privacy with Consent Management Platforms (CMPs): A Guide For Marketers

The contemporary privacy environment presents marketers with a significant challenge: balancing effective data use with user privacy rights and complex regulatory requirements. Consent Management Platforms (CMPs) have become essential tools in addressing this challenge, providing systematic methods for obtaining, documenting, and handling user consent throughout the customer journey. This guide explores how CMPs can transform your marketing approach from compliance burden to strategic advantage.

  • Legal & News
  • Cookie Consent
  • Cookie banner