[2.x] Set the default preference to 'allow' or 'deny' for each service

Created on 8 March 2022, almost 3 years ago
Updated 31 January 2025, 24 days ago

Hi @JFeltkamp,

Great module, thanks!

I'm working with a client that wants to set some services groups to default to 'allow' (green / consent given) and some to 'deined' (consent not given) whlile still allowing the user to toggle the options on each service group.

As far as I can see, this is not an option at present, is that correct?

All services groups where consent is required default to decline. I can't see any option to set this in the cookiesjsr library either https://github.com/jfeltkamp/cookiesjsr so perhaps this is by design.

I was then interested to expore forking the code and note that the source is not available yet on reading this issue: https://github.com/jfeltkamp/cookiesjsr/issues/6

Could you just confirm my understanding is correct? If so, is there any way we can extend the options to allow setting the default values for each service group?

Many thanks,

Finn

โœจ Feature request
Status

Active

Version

2.0

Component

Code

Created by

๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom Finn Lewis

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • So guy makes great module and then one of the most important things is done wrong. I mean if you already have something like google analytics on the site, do you really think that this should be disabled by default? Who will ever enable it - nobody. So only other option is to make it mandatory without possibility to disable it. I mean module could have at least one more service parameter "Set Default". Btw. this fix is not working so now i have to find another module after i wasted so much time on this. Ah.

  • ๐Ÿ‡ฉ๐Ÿ‡ชGermany Anybody Porta Westfalica

    @orcalator please think about your wording again or write your own module or provide a fix yourself. This is unacceptable and ungrateful. What did you do? Just writing down some cheap words... thanks for nothing!

  • Well yeah, i will write my own module, thx for nothing. If you already make something then make it properly. All bells and whistles and then the most important feature not working as it should. What's the point then of this module? To break GA functionality? I really don't know for what should i be grateful, for something that doesn't work properly. Ok, thx.

  • ๐Ÿ‡ฉ๐Ÿ‡ชGermany jfeltkamp Hamburg

    Hello @orcalator, just visited your profile.
    So sweet: 1 commit. Please don't forget to share your module.

  • ๐Ÿ‡ฉ๐Ÿ‡ชGermany Anybody Porta Westfalica

    Good luck @orcalator I think Open Source and Drupal might not be the right choice for you. Have a nice time, and please waste other people's time with your negativity. Anyone else how's interested to improve the module, please help to do so, in a friendly and helpful way.
    Or pay someone to do that for you.

  • ๐Ÿ‡ฎ๐Ÿ‡นItaly apaderno Brescia, ๐Ÿ‡ฎ๐Ÿ‡น

    Positive discourse message

    This discussion appears to include escalating emotions, creating the opportunity for miscommunication. The invested parties are encouraged to take a break from this discussion to help gain perspective. It is important to the community that all members are shown the appropriate amount of respect and openness when working together.

    For more information, please refer to Drupalโ€™s Values and Principles of seeking first to understand, then to be understood โ†’ . Assume best intentions of other contributors and suspend judgment until you have invested time to understand decisions, ask questions, and listen. Before expressing a disagreement, make a serious attempt to understand the reasons behind the decision.

    This comment is provided as a service (currently being tested) of the Drupal Community Health Team as part of a project to encourage all participants to engage in positive discourse. For more information, please visit CWG - Community Health team - "Nudge" templates โ†’ .

  • Censoring problems is always best way to go :-) GG.

  • I understand your wish to shut me down, but this will not be possible. I'm really now putting effort to see what is going on here. So this module "COOKiES Consent Management" ( https://www.drupal.org/project/cookies โ†’ ) is under "GNU General Public License, version 2". Now, my question is, why this module includes JS code that has been minifed and is not easily human-readable? This is in violation of GNU General Public License, version 2. Also, mr. @anybody mentions sponsoring of development of the module in one of the previous posts. So, we have closed (non-human readable JS code) that is crucial for this module to work and we have sponsoring ideas. Blink blink?

  • ๐Ÿ‡ฉ๐Ÿ‡ชGermany Anybody Porta Westfalica

    @orcalator I have no idea which personal problems you have, but let me tell you why this escalated.

    This is a community project and all the maintainers put in weeks of their spare time. You came here, not trying to help with any kind of fix like a patch or MR just being unfriendly and offensive. Why are you wondering about such reactions?

    You're still not trying to help in any positive way. It's very simply: Help yourself and the community by debugging this issue and providing helpful information to fix it. You would have immediately got help and assistance, if you did that.

    Still no idea why. And no, I'm sorry to tell you that this is not a violation of GNU, the included library in 2.x is also under GNU: https://github.com/jfeltkamp/cookiesjsr and written by the original maintainer of COOKiES.

    You should ask youself why you're so frustrated and putting that much power into negativity. I'm honestly sorry for that.
    And I should ask myself why I'm still taking the time to reply to such trolling comments.

  • ๐Ÿ‡ฉ๐Ÿ‡ชGermany Anybody Porta Westfalica

    PS: Nobody here earned a cent with this, just to let you know ;)

  • ๐Ÿ‡ฉ๐Ÿ‡ชGermany Anybody Porta Westfalica

    PPS: Just calm down and try to help to improve things. That would be great! (Power of positivity!)

  • ๐Ÿ‡ฎ๐Ÿ‡นItaly apaderno Brescia, ๐Ÿ‡ฎ๐Ÿ‡น

    The GNU General Public License says the source code must be available, not that code cannot be minified.
    This is not even the case, since the source code is available on https://github.com/jfeltkamp/cookiesjsr.

  • ๐Ÿ‡ฉ๐Ÿ‡ชGermany Anybody Porta Westfalica

    Thanks @avpaderno and it's not even included, but an external library.

  • Mr. @anybody i will tell you what's the problem. First i spend time to test, install this module, then other people spent time to translate and prepare texts for this module and then, when everything is ready i find out that this module lacks an option to set default for "Consent required" services. I could not believe this. The reason i didn't test this in the first place is because i thought there is no chance that developer of the module didn't implement this feature. What is the point of this module without this feature? You think that somebody will click on "Yes, please track me in GA" or "Yes, i want to get ads" or whatever. NOBODY will click that so in the end you can just completely disable cookies and that's it. Guy made a blacklist instead of whitelist. Even if he would have set default to enabled instead of disable everything would be fine but no - lets just disable everything. And then we come to another problem. Mr. Finn, as a normal human, found this 3 years ago and posted here. Mr. developer replied with some fix that i tried and it's not working. Then 3 years have passed - nothing, until mr. @anybody got an idea for sponsoring development of this feature. So, ok, we wasted so much time on this, lets just do a fix on our own and then i find out that JS is minified and you can't do a *. Mr. @avpaderno says source is available. Please give me a link to cookiesjsr.js that is human readable. Thx. Mr. @anybody what is the price for developing one liner that will set default to true instead of false?

  • ๐Ÿ‡ฉ๐Ÿ‡ชGermany Anybody Porta Westfalica

    Mr. @orcalator please just use https://www.drupal.org/project/klaro โ†’ and get happy. Bye, over and out.

  • Mr. @anybody you didn't reply on my legit question regarding the price, since you mentioned this in one of the previous posts as one of the options.

  • ๐Ÿ‡ฉ๐Ÿ‡ชGermany Anybody Porta Westfalica

    It's absolutely no option to do any paid or unpaid work for you after all this, sorry. Go your way.

  • Mr. @anybody don't be emotional, we will get "This discussion appears to include escalating emotions" msg. again. I kinda like this thread, maybe i'll even fix this so we can continue :-)

  • Just to inform you my dear mr. @anybody that i solved the problem. Since i'm a grateful person i will share solution with the rest of the community without asking for sponsorship. Basically it is very similar to the solution mr. developer proposed, however this works within JS injector, since mr. developer did not include instructions on how to "(You can execute the code from every JS file you want. You don't need a fork or somthing. Just create a custom Drupal css/js library with a dependency: "cookies/cookiesjsr". This ensures the event listener is present.) ". Probably it needs additional tweak that mr. developer also suggested, but we can leave that for some other time.

    document.addEventListener("DOMContentLoaded", function () {
    var services = { 'analytics': true };
    document.dispatchEvent(new CustomEvent('cookiesjsrSetService', { detail: { services } }));
    });

  • ๐Ÿ‡ฉ๐Ÿ‡ชGermany jfeltkamp Hamburg

    Ah, you are still using our code. Congrats! It's a bit embarrassing, don't you think? But please.

    I wanted to ask how your own module is doing. Have you made any progress? Mr. 1-Commit. We are so curious. I'm pretty sure that an uncompressed version of the software wouldn't be of much use to you either, otherwise you wouldn't be making such a fuss here. Maybe you're overwhelmed by your job and that's why everyone else is to blame for your failure. I would strongly advise you to talk to a psychologist about it. Your aggression is really unbearable, what can we do if you can't do your job? Huh? - Then you should have tested better.

    The feature you're suggesting is called "nudging" and is not permitted under the GDPR. But I assume you don't know anything about it either. You can build it yourself. If the user doesn't want to share his data voluntarily, then that's the way it is. That's the only thing we support.

Production build 0.71.5 2024