Passing Javascript Cookie Values – Troubleshooting Needed
-
I am having to convert a site to WordPress, that has a javascript cookie – all the javascript comes from a site built in Business Catalyst. To work with this I added a custom field shortcode plugin and am inserting my javascript using that.
All the basic javascript calls seem to be working but that cookie – it appears to set, but it does not display on the following page. I am hoping someone expert in javascript and WP can help me out.
I did review the issue with a javascript person and he said the cookie is setting, appears to be stored, console not throwing any errors – and we also tested for script call conflicts – so the only thing he could figure out was it might be the path and something to with how permalinks process the path.
Here is the URL to the page where the cookie is set:
https://sl-508-3.slc.westdc.net/~imacrea4/fort-myers/If you then click on one of the links in the list of communities you’ll be taken to the page where the cookie is received.
Here is a realtor site that is not on WP using the same script (with a slight variation only in variables) so you can see the content that should be called and the same script in place:
https://www.ninalink.com/ft-myers-communities
(Heritage Palms gives the best example)I know from my research this is not the perfect solution for cookies/wordpress. We are going to rebuild these properly, but this first one has to be out the door fast, and I didn’t have my dev person to try to help me get it off the ground. I am willing to add in a function reference etc. but I am a designer, not a coder so would need hand holding! Therefore, I am hoping the answer is fairly simple and we can utilize this javascript cookie just to get launched.
Thanks in advance for any pointers or suggestions!
- The topic ‘Passing Javascript Cookie Values – Troubleshooting Needed’ is closed to new replies.