Really-Simple-Plugins / complianz-gdpr

Complianz Privacy Suite (GDPR/CCPA)
https://complianz.io
Other
90 stars 39 forks source link

do not show cookie banner to googlecrawler #306

Closed Iloivar closed 3 years ago

Iloivar commented 3 years ago

is there a way that the google crawler ignores the cookie banner? This would make sense for SEO reasons. Unfortunately I can't find anything in the settings. many greetings Iloivar

rlankhorst commented 3 years ago

Hi @Iloivar,

we use the data-nosnippet attribute for this: https://github.com/Really-Simple-Plugins/complianz-gdpr/blob/e4f5a9a6569e1f3d838b2f1b9b9bd1d0968b4405/assets/js/cookieconsent.js#L244

See also: https://developers.google.com/search/docs/advanced/crawling/special-tags