Skip to content

Commit

Permalink
remove matomo, keeping only posthog (#670)
Browse files Browse the repository at this point in the history
  • Loading branch information
kolok authored Jun 28, 2024
1 parent c599672 commit 46a9630
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions jinja2/layout/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,38 +23,6 @@
{% block css_extras %}{% endblock %}

{#Js#}

{# Matomo JS tracking client + Tag manager #}
{% if ENVIRONMENT == 'production' %}
<script>
var _mtm = window._mtm = window._mtm || [];
_mtm.push({'mtm.startTime': (new Date().getTime()), 'event': 'mtm.Start'});
(function() {
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src='https://stats.beta.gouv.fr/js/container_92K32S5Y.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
_paq.push(["setCookieDomain", "*.lvao.ademe.fr"]);
_paq.push(['setCookieSameSite', 'None']);
_paq.push(["setDomains", ["*.longuevieauxobjets.ademe.fr", "*.lvao.ademe.fr"]]);
_paq.push(["setDoNotTrack", true]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://stats.beta.gouv.fr/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '50']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
{% endif %}
{# End Matomo Code #}

<script src="{{ static('qfdmo.js') }}"></script>
{% block javascript_extras %}{% endblock %}

Expand Down

0 comments on commit 46a9630

Please sign in to comment.