Commit 39bbb795 authored by Protocole's avatar Protocole
Browse files

Merge branch 'cookie-consent-update' into 'latest'

fix: cookie consent

See merge request r2devops/hub!260
parents 66c71f5a 256043c9
Loading
Loading
Loading
Loading
+16 −1
Original line number Diff line number Diff line
@@ -89,3 +89,18 @@ function loadListeners() {
    tabbed_2.onchange = resizeFirst;
    window.onresize = resizeListener;
}


<!-- HotJar -->
function hotjar(h,o,t,j,a,r){
    h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
    h._hjSettings={hjid:2507435,hjsv:6};
    a=o.getElementsByTagName('head')[0];
    r=o.createElement('script');r.async=1;
    r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
    a.appendChild(r);
}
if (document.cookie.split(";").indexOf("allow-cookies=true") > -1) {
    hotjar(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=')
}
<!-- End HotJar -->
+0 −12
Original line number Diff line number Diff line
@@ -13,16 +13,4 @@
<!-- Plausible -->
<script async defer data-domain="r2devops.io" src="https://plausible.io/js/plausible.js"></script>
<!-- End Plausible -->
<!-- HotJar -->
<script>
    (function(h,o,t,j,a,r){
        h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
        h._hjSettings={hjid:2507435,hjsv:6};
        a=o.getElementsByTagName('head')[0];
        r=o.createElement('script');r.async=1;
        r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
        a.appendChild(r);
    })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
</script>
<!-- End HotJar -->
{% endblock %}