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>

Do You Really Need A Cookie Preference Center? Here's What You Should Know
If you need to obtain explicit consent for cookies, you need a cookie preference center. It will allow your website visitor to set up preferences for the categories of cookies established in your cookie policy. Read about cookie consent and cookie preference center and learn how Secure Privacy can help you.
- Cookie Consent

Understanding the Key Differences Between GDPR And CPRA
As the world of data security and privacy evolves, it is important to stay abreast of the latest developments. This article will examine the key differences between the EU's General Data Protection Regulation (GDPR) and California's Consumer Privacy Rights Act (CPRA). Learn how these two privacy regulations interact with each other and how their requirements might affect your business.
- Data Protection

Prepare for a Cookie-Free Future: A Look at Third-Party Cookies in 2023
This blog post will look at third-party cookies in 2023 and how marketers can prepare for the upcoming shift. We'll talk about the effects of browsing without cookies, new technologies that could replace them, and ways to keep your marketing efforts effective in a world without third-party cookies.
- Cookie Consent