Cookie Condition
-
Hi
I am trying to set a visibility to condition to only display the pop up when cookie “_iub_cs-123” exists (cookie consent solution cookie).
The name matches 100% perfectly but the pop up does not show up when the cookie exists.
Any ideas why?
-
Hi @mdeluk
Sorry to hear you are having this issue.
Could you please send a screenshot of your Hustle conditionals and we can try to replicate it on our end using the same conditionals?
Please, upload the screenshot to Google Drive and share the link here.
Best Regards
Patrick FreitasYeah sure here you go:
https://drive.google.com/file/d/1XgFUtz8Lm8y4m0NHxDaVzdCkHok54sX2/view?usp=sharing
I tried even doing it with a Google Analytics cookie but had the same issue.
Hi @mdeluk,
I checked this on a test website using Google Analytics cookies but couldn’t replicate the issue. Can you please confirm if you tried using _ga?
Could you please explain how the cookie consent solution cookie is set on your website? Is that once the member accepts the conditions using a pop-up or form? Wouldn’t you mind sharing a screenshot of the cookies on your contact page?
I hope the following article helps: https://www.cookieyes.com/blog/how-to-check-cookies-on-your-website-manually/
We look forward to hearing back from you and resolving this issue asap.
Kind Regards,
Nebu JohnHi Nebu
Thanks for you reply. So yes this is once a user accepts the pop up, you can see it in action on the website here: https://au.wowfreebies.com
Here is a screenshot of the cookies being placed on the contact page:
https://drive.google.com/file/d/1-uqtkcivR0Sv99A1aFHpdi1gqyrjuXZ8/view?usp=sharingThanks.
Hi @mdeluk
I’ve visited the site and I don’t even see any Hustle markup in page content which is unexpected.
Are you using any caching and/or asset optimization plugins on site and/or server-side cache?
If yes, would you try clearing all cache and – if there is any JS/CSS optimization active, temporarily disable it?
If that makes it work, then we could try to find out how to “tweak” those settings. If not, then would you please export the popup in question and share it with us to test?
To share popup, put export code on pastebin.com or your Google Drive or Dropbox (or similar service) and just share direct download link in response here.
Best regards,
AdamHi Adam
That is odd, its possible its been moved inside a JS/CSS file, but to clarify taking away the cookie requirement causes the popup from Hustle to show the code is there.
I am using WP Rocket for optimisation. I have tried clearing the cache and also I added in some exemptions to Hustle.
CSS safelist:
/wp-content/plugins/wordpress-popup/(.*).cssExcluded JS:
/wp-content/plugins/wordpress-popup/(.*).jsYou can see the export code here:
https://pastebin.com/svCZPf2CHi @mdeluk
Thank you for the information.
For some reason I can’t import the attached JSON, can you download it once again and upload it to Google drive instead?
Best Regards
Patrick FreitasNo problem Patrick here you go:
https://drive.google.com/file/d/14clzbRQraCgHALgRf6AGPOl8k357MfUZ/view?usp=sharing
Hi @mdeluk,
Thanks for sharing the export. I tested it at my test site, and it worked out of the box. The Popup is displayed based on the cookie when tested.
I checked your website and could notice the mentioned cookie is present. Since the plugin isn’t enabled on your website, we couldn’t check much on how it behaves on your site. Could we also know on which exact page you are looking to target the popup? Asking specifically due to the following condition:
However, this might be more like a conflict on your website. Could we know whether you tried to rule out whether the issue isn’t due to any existing plugin causing a conflict?
Please check the following flowchart on how to run a conflict test:
https://wpmudev.com/wp-content/uploads/2015/09/Support-Process-Support-Process.gifPlease do let us know how a conflict test goes. Looking forward to your response.
Kind Regards,
NithinHello @mdeluk ,
We haven’t heard from you for over a week now, so it looks like you don’t have any more questions for us.
Feel free to re-open this ticket if needed.Kind regards
Kasia
The topic ‘Cookie Condition’ is closed to new replies.