Hi, I have a problem with cookie-based form. I set it up a few months ago and it worked perfectly but now for some reason it doesn’t.
I’m basically gating product tour with email form popup and want to have 30 days cookie set up when some fills in the form.
Does anyone know why it stopped working? (I attached Read-Only link)
Here is my site Read-Only: LINK
(how to share your site Read-Only link)
sam-g
(Sam G.)
2
@patryk.design - can you provide the name of the cookie you are setting?
I’m not a developer so not sure if this is what you are asking for, but I’d say it’s “popup-wf”
sam-g
(Sam G.)
4
@patryk.design - one thing I would do is move the entire script out of the <script>
tag where you are loading js.cookie.min.js
.
So something more like this:
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-cookie/3.0.1/js.cookie.min.js" defer>
<script type='text/javascript'>
// all of the other code here
</script>
After taking a look it doesn’t seem like any of this code is firing and I believe that may be the reason why.
1 Like
Thank you so much for help! It does work now, I just had to add end of script to the 1st line i.e.:
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-
cookie/3.0.1/js.cookie.min.js" defer></script>
<script type='text/javascript'>
// all of the other code here
</script>