Always load app.js and matomo script
This commit is contained in:
parent
42564e085c
commit
3d0ffa3311
1 changed files with 25 additions and 25 deletions
|
@ -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>
|
||||||
|
|
Reference in a new issue