Mysterious cookie messing up sitemap and feed
-
I have a problem with a cookie that is loading throughout my site. It is not just loading on pages and posts, but also on my sitemap and feed pages. The script for the cookie breaks the sitemap and RSS. Google Search Console says the sitemap has unsupported file format. RSS validator says the feed is invalid because of the script. The sitemap address is https://www.wordofhisgrace.org/wp/sitemap_index.xml. The feed is https://www.wordofhisgrace.org/wp/feed.
The script does not show when looking at the page source. It shows up in validators. Also, Chrome shows the cookie YJ207Z3CNK when showing site info. This is the cookie the script loads. Here is the script that I have gathered from the validators:
<script type=”text/javascript”>setCookie_sb(“YJ207Z3CNK”,6,365);function setCookie_sb(c_name,value,expiredays){var exdate=new Date();exdate.setDate(exdate.getDate()+expiredays);document.cookie=c_name+ “=” +escape(value)+((expiredays==null) ? “” : “;expires=”+exdate.toGMTString());}</script>
I have tried turning off all of my plugins and clearing my cache from the site and in my browser. The cookie still shows up. I have tried searching for the cookie on my (shared) browser and can’t find it. I don’t know where the cookie script is or how to get rid of it. Can anyone help?
The page I need help with: [log in to see the link]
- The topic ‘Mysterious cookie messing up sitemap and feed’ is closed to new replies.