Not a bug Cookie notice being indexed as page description

Bimble

Active member
Affected version
2.x
I've searched XF and this doesn't seem to have been reported, but I've found it affecting hundreds of XF2 sites out in the wild, so thought it best to mention it.

I built a test XF2 site and after Google indexed it I noticed a lot of the page listings has the description: "This site uses cookies to help personalise content, tailor your experience and ...." so I checked Google and sure enough lots and lots and lots of live XF2 site pages had the same issue: LMGTFY - http://bfy.tw/KiCl

Not sure if there is a simple fix, but how do we stop Google from doing this and looking at the page content instead?
 

Chris D

XenForo developer
Staff member
The simple answer is, you can't stop Google from doing that.

Google doesn't index any particular piece of content to display in the snippet. It can display any of the content indexed on a given page. Google simply displays the snippet in the search results that it feels is the most relevant to the search terms. For example:

Screenshot 2018-11-06 at 00.45.46.png

No mention of the cookie notice here because I searched for relevant terms.
 
Top