Skip to content

Commit dd4e71a

Browse files
committed
Ignore Matomo on localhost
1 parent 01b77fb commit dd4e71a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
var u="https://spraakbanken.gu.se/stats/";
5555
_paq.push(['setTrackerUrl', u+'matomo.php']);
5656
_paq.push(['setSiteId', '5']);
57+
if (location.hostname === 'localhost') return;
5758
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
5859
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
5960
})();

0 commit comments

Comments
 (0)