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

Cookie Consent Manager #39

Open
bernd-reindl opened this issue Mar 8, 2023 · 1 comment
Open

Cookie Consent Manager #39

bernd-reindl opened this issue Mar 8, 2023 · 1 comment
Labels

Comments

@bernd-reindl
Copy link

To include ReCaptcha GDPR compliant, its required to avoid loading the script before the user gives consent.

Therefore it's required to change the script tag included by ReCaptchaViewHelper.

In our case (Consentmanager.net) we need to change the src attribute to cmp-src and add some additional attributes.

For V3 this looks like this:

<script type="text/plain" class="cmplazyload" data-cmp-vendor="s1409" data-cmp-src="https://www.google.com/rec..." ></script>

But this modification get lost, everytime the extension is updated. So it would be nice, if the script tag is created by an template or an TypoScript setting.

E.G.:
$settings['reCaptcha']['v3']['scriptTagTemplate'] => '<script src="###SRC###" ></script>'
changed to:
$settings['reCaptcha']['v3']['scriptTagTemplate'] => '<script type="text/plain" class="cmplazyload" data-cmp-vendor="s1409" data-cmp-src="###SRC###" ></script>'

Best regards
Bernd

@bernd-reindl
Copy link
Author

@TehTux is ist possible to implement such a function?

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

No branches or pull requests

1 participant