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

It works cookie consent banner #312

Open
Trabizon61 opened this issue Dec 30, 2023 · 0 comments
Open

It works cookie consent banner #312

Trabizon61 opened this issue Dec 30, 2023 · 0 comments

Comments

@Trabizon61
Copy link

Hi this here works https://www.freeprivacypolicy.com/free-cookie-consent/ I tested it with matomo if user deny the cookies it will not be tracked.

I added the code to the footer.html file on line 50 and the code works just if you add the {literal} {/literal} tags like here

<!-- Cookie Consent by FreePrivacyPolicy.com https://www.FreePrivacyPolicy.com -->
{literal}
<script type="text/javascript" src="//www.freeprivacypolicy.com/public/cookie-consent/4.1.0/cookie-consent.js" charset="UTF-8"></script>
<script type="text/javascript" charset="UTF-8">
document.addEventListener('DOMContentLoaded', function () {
cookieconsent.run({"notice_banner_type":"interstitial","consent_type":"express","palette":"dark","language":"en","page_load_consent_levels":["strictly-necessary"],"notice_banner_reject_button_hide":false,"preferences_center_close_button_hide":false,"page_refresh_confirmation_buttons":false,"website_name":"Test","website_privacy_policy_url":"https://EXAMPLE.TLD/page/2/privacypolicy"});
});
</script>
{/literal}

if you have any questions just ask me

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

1 participant