Skip to content

Commit 3ffc052

Browse files
Merge pull request #6 from CarolinePublipresse/main
Hide the component when no parameters are set within the backend.
2 parents bd5882b + 96a93e8 commit 3ffc052

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

components/matomojs/default.htm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{% if __SELF__.remoteUrl and __SELF__.siteId %}
12
<script>
23
var _paq = window._paq = window._paq || [];
34
{% if not __SELF__.useCookies() %}
@@ -13,4 +14,5 @@
1314
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
1415
})();
1516
</script>
16-
<noscript><p><img src="{{ __SELF__.remoteUrl }}matomo.php?idsite={{ __SELF__.siteId }}&amp;rec=1" style="border:0;" alt="" /></p></noscript>
17+
<noscript><p><img src="{{ __SELF__.remoteUrl }}matomo.php?idsite={{ __SELF__.siteId }}&amp;rec=1" style="border:0;" alt="" /></p></noscript>
18+
{% endif %}

0 commit comments

Comments
 (0)