Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable load googleAnalytics and piwik from cs_seo plugin #3

Closed
kveldscholten opened this issue Aug 26, 2020 · 1 comment
Closed

Disable load googleAnalytics and piwik from cs_seo plugin #3

kveldscholten opened this issue Aug 26, 2020 · 1 comment

Comments

@kveldscholten
Copy link

Hello

i have a feature request

i use the cs_seo plugin for seo analyse and to add Google Analytics and Piwik.

If I am informed correctly then I could load the code manually (event.detail.hasOption('google_analytics')) with your Cookie Consent or not but what about the integration through the plugin cs_seo.

Will there be a possibility not to load Google Analytics and Piwik there?

Here see how cs_seo add analytics code
https://github.com/clickstorm/cs_seo/blob/master/Configuration/TypoScript/Setup/Tracking/googleAnalytics.typoscript
https://github.com/clickstorm/cs_seo/blob/master/Configuration/TypoScript/Setup/Tracking/piwik.typoscript

@featdd
Copy link
Member

featdd commented Aug 27, 2020

Hi @kveldscholten,

you just have to wrap the analytics javascript inside the event listener just like in the example in the documentation.

I cannot provide you support for an external extension but as it looks their analytics is just injected via typoscript, so you should be able to override their default with one containing the event listener to prevent loading analytics before checking the consent of the user.

Greetings
Daniel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants