- Issue created by @AppLEaDaY
- 🇮🇳India Mahima_Mathur23
Hi AppLEDaY,
Below is how I resolved third party cookie creation. Here is what you can try:
Make the categories available in your script: I chose to make a cookie, you can choose whatever you feel like according to your options.
Then make changes in the script to only create the cookie when the specific category is selected i.e. add an if condition that checks if your setup cookie contain that category or not and also add an else part to remove that cookie when the category is removed if you are giving access to the user to play with the categories again and again.
Hope this helps!
Mahima - Status changed to Needs review
about 1 year ago 8:42am 12 September 2023 - Status changed to Active
about 1 year ago 2:10pm 21 October 2023 - 🇳🇴Norway svenryen
Hi @AppLEaDaY!
Do you have a staging site where we can inspect your setup? It's hard to give advise since different cookies and scripts needs different handling.
As a general rule of thumb, if you need to prevent cookies from a third party, you should enclose your script with something like the code below, then it won't involve the third parties unless the user has given consent.
Drupal.eu_cookie_compliance.hasAgreed('category_name') { ... }
It's also possible to let code run directly after the user has agreed and without requiring a refresh.
I'm setting this back to Active since there was no patch to review.
- Status changed to Postponed: needs info
about 1 year ago 11:45am 22 October 2023