Always load app.js and matomo script

This commit is contained in:
Jannis Portmann 2022-01-25 18:32:34 +01:00
parent 42564e085c
commit 3d0ffa3311

View file

@ -16,32 +16,32 @@
{{ encore_entry_link_tags('app') }} {{ encore_entry_link_tags('app') }}
{% endblock %} {% endblock %}
{% block javascripts %} {% block javascripts %}{% endblock %}
{{ encore_entry_script_tags('app') }}
<!-- Matomo --> {{ encore_entry_script_tags('app') }}
<script>
var _paq = window._paq = window._paq || []; <!-- Matomo -->
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */ <script>
_paq.push(['trackPageView']); var _paq = window._paq = window._paq || [];
_paq.push(['enableLinkTracking']); /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
(function () { _paq.push(['trackPageView']);
var u = "https://analytics.thisfro.ch/"; _paq.push(['enableLinkTracking']);
_paq.push([ (function () {
'setTrackerUrl', var u = "https://analytics.thisfro.ch/";
u + 'matomo.php' _paq.push([
]); 'setTrackerUrl',
_paq.push(['setSiteId', '2']); u + 'matomo.php'
var d = document, ]);
g = d.createElement('script'), _paq.push(['setSiteId', '2']);
s = d.getElementsByTagName('script')[0]; var d = document,
g.async = true; g = d.createElement('script'),
g.src = u + 'matomo.js'; s = d.getElementsByTagName('script')[0];
s.parentNode.insertBefore(g, s); g.async = true;
})(); g.src = u + 'matomo.js';
</script> s.parentNode.insertBefore(g, s);
<!-- End Matomo Code --> })();
{% endblock %} </script>
<!-- End Matomo Code -->
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
</head> </head>