elleracompany / craft-cookie-consent

GDPR-Compliant cookie consent banner for Craft CMS
Other
6 stars 5 forks source link

[Question] Blitz + Seomatic setup #74

Closed umkasanki closed 4 months ago

umkasanki commented 2 years ago

Hello.

Could you clarify to set up the plugin correctly with Blitz and Seomatic? In the docs you wrote:

You will need to bust the SEOmatic cache in your twig templates (not in the SEOmatic script field)

{# -- START Cache-bust seomatic -- #} {% set scriptContainer = seomatic.script.container() %} {% do scriptContainer.clearCache(true) %} {# -- END Cache-bust seomatic -- #}

This snippet should be placed once or across whole site? In the head? Via ajax include [Using Blitz tag]?

Smth like this? изображение

Thanks

johnwbaxter commented 2 years ago

@umkasanki Did you ever work this one out?

umkasanki commented 2 years ago

@johnwbaxter Not yet. But I would like to know or have an example of how it should be configured.

johnwbaxter commented 2 years ago

Well, I'll be trying out every option shortly so will let you know :)

umkasanki commented 2 years ago

Thanks @johnwbaxter

jellingsen commented 2 years ago

That snippet is for the internal SEOmatic cache mechanics, not related to blitz.

Have you seen the other Blitz-related issues? https://github.com/elleracompany/craft-cookie-consent/issues?q=is%3Aissue+is%3Aclosed+blitz

Did you manage to get it to work @johnwbaxter ?

amici-infotech commented 2 months ago

Hey. Did anyone make this work? I have seen other issues in github and make the consent banner working with blitz. But i am not able to stop SEOMatic scripts when consent is declided due to blitz cached page.