This looks like a very interesting add-on as I have been looking at building cookieconsent v3 into a current project. I had previously used the a3020 add-on as well but I am not sure if this will be updated to work with version 9.
Would your plugin be able to support the opt-in / opt-out models available in the script config and would the data- attributes all work when adding the tracking scripts through the dashboard?
Whilst it is possible to build this into the theme files the ability to hand over to the client and allow them to manage these scripts would be a real bonus.
I’m using the cookieconsent the way it describes, where the scripts start off as type=“text/plain”, and cookieconsent changes that dynamically when needed to turn them on and off. Code wise, it really just does a find-and-replace on the scripts you paste in, to add the type and data-category attributes.
I’m not 100% of your question here, but whatever data attributes are on your scripts would remain unchanged.
Thanks for the quick response - we have asked to set up cookie options but without following the strict gdpr requirements…
The data- attributes are just as you mentioned for data-category or data-service etc. I was looking at this as an extension to the opt-in / opt-out mode settings. It is possible to label a cookie category as ‘analytics’ for example…
or label the category but ignore the cookie preferences to ensure it is still run…
As all of this remains unchanged it sounds like it would work just fine. Thanks again and I will keep an eye out for this becoming available!
I agree that the mode setting should be pretty easy, it’s just another flag.
The issue with the ! option, is that the add-on already takes care of putting those categories in. Note in the screenshot of the dashboard config that there’s 4 boxes to paste in scripts (two categories, both header and footer spots). The idea with these is that you don’t have to add the type=“text/plain” or data-category flags, those are added automatically. All you would do is paste in your normal unmodified script tags.