Skip to content

Commit

Permalink
Add cookie consent
Browse files Browse the repository at this point in the history
  • Loading branch information
blagojabozinovski committed Oct 17, 2023
1 parent 08353e8 commit d026390
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions ckanext/montreal_theme/templates/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,30 @@

{% block footer_links_ckan %}{% endblock %}
{% endblock %}
<!-- Cookie Consent by FreePrivacyPolicy.com https://www.FreePrivacyPolicy.com -->
<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":"simple","consent_type":"express","palette":"light","language":"fr","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":"Montreal","website_privacy_policy_url":"https://montreal.ca/en/topics/confidentiality-policy"});
});
</script>

<!-- Google Analytics -->
<!-- Google Tag Manager -->
<script type="text/plain" data-cookie-consent="tracking">(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-M2KX5RX');</script>
<!-- End Google Tag Manager -->
<!-- end of Google Analytics-->

<noscript>Cookie Consent by <a href="https://www.freeprivacypolicy.com/">Free Privacy Policy Generator</a></noscript>
<!-- End Cookie Consent by FreePrivacyPolicy.com https://www.FreePrivacyPolicy.com -->

<!-- Below is the link that users can use to open Preferences Center to change their preferences. Do not modify the ID parameter. Place it where appropriate, style it as needed. -->

<a href="#" id="open_preferences_center">Update cookies preferences</a>

{% block footer_attribution %}{% endblock %}
{% endblock %}

0 comments on commit d026390

Please sign in to comment.