What is ‘prior consent’?
Prior consent allows you to block cookies and other trackers from being injected on a computer before you have received consent.
With EU GDPR, you need to receive a valid consent before you place cookies and other tracking technologies, which track personal data on your visitor's computer. This effectively means that you should block all cookies from being inserted until a user clicks on 'Accept' on your privacy notice (also called cookie banner).
The EU ePrivacy directive, also known as the "cookie law" is more explicit and far-reaching than GDPR when it comes to cookies and consent. The directive requires you to get users consent before setting any kind of cookies other than those essential to running your website.
How does ‘prior consent’ work on my website?
In short, Secure Privacy will function as an on/off switch for placing cookies on your visitor's computers.
Users that have declined or not yet accepted the cookie banner, will not have any cookies or trackers installed expect those necessary to operate your website.
Users who accept the cookie banner will have the accepted cookies set immediately without any unnecessary delay.
How to implement ‘prior consent’ on my website?
All plugins used on your website are identified by the Secure Privacy scanner. You need to change the attributes of the script tags on your website. Follow these steps to enable Prior Consent on your website.
Identify all the plugins in which “Prior Consent” is needed. Then open Secure Privacy and head over to the 'Prior consent' menu point, which you can find in left side panel. Set a check mark for those categories you would like to activate prior consent. Press 'Save'.'
- Apply the attribute
sp-consent="PLUGIN NAME"to the identified 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 exact plugin name, which appear under 'Configure your website'.
- For script tags change the attribute “src” from “src” to “data-src”.
Here is an example how it would looks after you have modified a Google Analytics script:
5. Verify the installation by clicking on 'Test connection'. Keep testing if Secure Privacy detects any errors.