Tagged: consent manager, Google, seo
Hey there,
the Consent Manager is currently not actively prevented from being indexed. Thus it offers no real value to be used as Snippet or Search Result content.
We encountered this issue on some sites, where Google guesses the content for the Snippets. Thus showing irrelevant snippet texts in the search result preview. There is an easy solution for that: Can you please add the following attribute to the root level element of the consent manager?
data-nosnippet
We use the “large” version of the CM, so the changed code should like this:
...
<div id="av-consent-extra-info" data-nosnippet class="av-inline-modal main_color avia-hide-popup-close">
...
</div>
...
This attribute is documented here: https://developers.google.com/search/docs/advanced/robots/robots_meta_tag?hl=de
Adding this will prevent Google from using content from the Consent Manager for their Snippets and thus should improve the content quality of the pages.
Thanks and best regards,
Jan
Hey Jan,
Thank you for the info.
We will forward the issue to our channel and possibly include the changes in the next patch.
Best regards,
Ismael
Hi,
We added filter “avf_cookie_modal_html_attributes” which by default adds data-nosnippet to this div.
Will be in next release.
Best regards,
Günter
Thanks guys!