From ca09ee4a7e101effb578be5c803f94258efe6566 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Thu, 23 Jan 2025 22:27:52 +0100 Subject: [PATCH] update tarteaucitron config --- teleforma/static/teleforma/js/application.js | 57 +++++++++++++++- teleforma/templates/teleforma/base.html | 71 +------------------- 2 files changed, 58 insertions(+), 70 deletions(-) diff --git a/teleforma/static/teleforma/js/application.js b/teleforma/static/teleforma/js/application.js index 1c37dcf0..8d4390a5 100644 --- a/teleforma/static/teleforma/js/application.js +++ b/teleforma/static/teleforma/js/application.js @@ -321,4 +321,59 @@ $(document).ready(function () { var $form = $this.closest('form'); $form.find('input[type=checkbox]').prop('checked', isChecked); }) -}); \ No newline at end of file +}); + +// MATOMO + + +tarteaucitron.init({ +"privacyUrl": "/pages/legal_notices", /* Privacy policy url */ + "bodyPosition": "bottom", /* or top to bring it as first element for accessibility */ + +"hashtag": "#tarteaucitron", /* Open the panel with this hashtag */ +"cookieName": "tarteaucitron", /* Cookie name */ + +"orientation": "middle", /* Banner position (top - bottom) */ + + "groupServices": false, /* Group services by category */ + "showDetailsOnClick": true, /* Click to expand the description */ + "serviceDefaultState": "wait", /* Default state (true - wait - false) */ + +"showAlertSmall": false, /* Show the small banner on bottom right */ +"cookieslist": false, /* Show the cookie list */ + + "closePopup": false, /* Show a close X on the banner */ + + "showIcon": true, /* Show cookie icon to manage cookies */ + //"iconSrc": "", /* Optionnal: URL or base64 encoded image */ + "iconPosition": "BottomRight", /* BottomRight, BottomLeft, TopRight and TopLeft */ + +"adblocker": false, /* Show a Warning if an adblocker is detected */ + + "DenyAllCta" : true, /* Show the deny all button */ + "AcceptAllCta" : true, /* Show the accept all button when highPrivacy on */ + "highPrivacy": true, /* HIGHLY RECOMMANDED Disable auto consent */ + "alwaysNeedConsent": false, /* Ask the consent for "Privacy by design" services */ + +"handleBrowserDNTRequest": false, /* If Do Not Track == 1, disallow all */ + +"removeCredit": false, /* Remove credit link */ +"moreInfoLink": true, /* Show more info link */ + + "useExternalCss": false, /* If false, the tarteaucitron.css file will be loaded */ + "useExternalJs": false, /* If false, the tarteaucitron.js file will be loaded */ + +//"cookieDomain": ".my-multisite-domaine.fr", /* Shared cookie for multisite */ + + "readmoreLink": "", /* Change the default readmore link */ + + "mandatory": true, /* Show a message about mandatory cookies */ + "mandatoryCta": true, /* Show the disabled accept button when mandatory on */ + + //"customCloserId": "", /* Optional a11y: Custom element ID used to open the panel */ + + "googleConsentMode": true, /* Enable Google Consent Mode v2 for Google ads and GA4 */ + + "partnersList": false /* Show the number of partners on the popup/middle banner */ +}); + diff --git a/teleforma/templates/teleforma/base.html b/teleforma/templates/teleforma/base.html index cb65882d..65cff591 100644 --- a/teleforma/templates/teleforma/base.html +++ b/teleforma/templates/teleforma/base.html @@ -41,6 +41,7 @@ + {% if user.is_authenticated %} @@ -258,79 +259,11 @@ {% block extra_javascript %}{% endblock %} {% if not debug %} - - - - - - - - + {% endif %}