Google indexing cookie notice (version 1.2)


Well-known member
Google started to index one of my new projects today, and I couldn't help but notice the cookie warning is prominent in everything.

What would be the best way to prevent this from happening? I need the cookie notice, but I dont need it as the description for every forum

Screen Shot 2013-07-29 at 6.58.31 PM.png


Well-known member
There are several ways to accomplish this. One simple way is using template conditionals.

Go to

Look for the search engine conditional.

Now edit the template that contains the code for your notification and wrap it up in a negated search engine conditional.

I hope I'm being clear enough for you. I'm in my phone and don't have access to the admin panel so I can't give you exact template names or syntax


Well-known member
Thanks, that sort of makes sense, but what conditional would be used to allow it to be seen by guests but not indexed by search engines?

Brent W

Well-known member
I would guess it has something to do with the age of the forums. Brogan has a much more established forum so Google probably has a better time placing a more accurate description on their SERPs.


Well-known member
My main URL displays the cookie notice in the search result (site has been running since 2006)


There is code you can use to stop Google from pulling in certain content:

<!--googleoff: index-->
here will be skipped
<!--googleon: index-->


Well-known member
So what you could do, is edit the template notice_cookies

and wrap
{xen:phrase this_site_uses_cookies_notice} <a href="{xen:link help/cookies}">{xen:phrase learn_more}</a>
in the googleoff code

<!--googleoff: index-->{xen:phrase this_site_uses_cookies_notice} <a href="{xen:link help/cookies}">{xen:phrase learn_more}</a><!--googleon: index-->