Skip to content

Commit

Permalink
remove HTML comments from matomo js code and beautify
Browse files Browse the repository at this point in the history
  • Loading branch information
cpauvert committed Jun 12, 2024
1 parent e0591a5 commit 35b67e2
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions pkgdown/extra.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
<!-- Matomo -->
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://piwik.cebitec.uni-bielefeld.de/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '24']);
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);
var u = "https://piwik.cebitec.uni-bielefeld.de/";
_paq.push(['setTrackerUrl', u + 'matomo.php']);
_paq.push(['setSiteId', '24']);
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);
})();
<!-- End Matomo Code -->

0 comments on commit 35b67e2

Please sign in to comment.