-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cookies Banner checking for "previous version of saved cookies" #75
Comments
Hi, |
Thanks for the tip - but somehow it doesnt work for me. I changed the revision number from 0 to 1, published the GTM container and browser did not display your cookie banner again. Is there something else that needs to be changed? |
now.. Im not a programmer. but I asked Chat GTP if I can somehow impose on the visitors the fact - hey, there is a new cookies bar that you have to agree with.. it came up with the script below.. Is it something that can be incorporated into your template that whoever gave the consent before I implemented your solution - would have to agree with your new cookie banner? // Check if the consent cookie exists and if it has expired // Function to get the value of a cookie by name // Function to display the new cookie consent banner // Call the checkCookieConsent function when the page loads |
Hi, @horde45
That's something you should answer on your side. There are different views on this from a legal perspective. It also depends what cookies/providers you use, as well as the type of your project (e-commerce, non-profit, etc.). However, for some edge cases, the bar allows you to "sync" categories with others. For example, you can set |
Thanks for the info above. but as I pointed out changing the revision number does not work for me - the cookies banner simply does not reappear. |
I'm afraid we're not able to help you without a link to the site or a sample implementation. |
That's what I was talking about. If you've already given consent in preview mode, it won't show up for you on the site once it's published. Preview mode opens your site normally, so once you give a consent, a new consent with the current revision is stored in the cookie. |
maybe im really dumb.. but in my GTM preview mode I put in revision field number 3 - the cookie bar reappeared. I then changed the revision number to 4 (did not try it again in GTM preview mode) and published it. And the bar did not reappear. |
Hi,
your template works like a charm! I can not thank you enough! However I came across this issue:
Users visiting a website where they gave consent to previous cookies solution before March 2024 are not presented automatically with your cookies banner. I guess that is based on the longevity / lifespan of the cookies consents given to the previous version of the cookies bar. However this leads to a situation that new remarketing storages "ad_user_data" and "ad_personalization" are not gathered thus actions of these "previous" visitors can not be tracked unless they either clear manually the cookies in their browser or those consents from the previous banner expire. This is what ChatGPT called it.. is there some way how you could get around this by further updates of your ingenious template?
Dynamic Consent Management:
Implement a dynamic consent management system that checks the user's stored consent preferences when they revisit the website.
Display an updated cookie consent banner or pop-up that reflects any changes to cookie categories or purposes since the user's last visit.
Provide clear options for users to review and update their consent preferences based on the new cookie settings.
The text was updated successfully, but these errors were encountered: