Initial commit 🚀
This commit is contained in:
commit
fd58a8d32f
235 files changed
+19775
No files matched your search
@@ -0,0 +1,23 @@
|
||||
---
|
||||
/**
|
||||
* The Matomo tracker: a page view per page, outgoing links and downloads, no cookies, Do Not
|
||||
* Track honoured. matomo.js loads async from our own Matomo, so it never holds up the page.
|
||||
*/
|
||||
import { matomo } from '../data/analytics';
|
||||
const { url, siteId, enabled } = matomo;
|
||||
---
|
||||
{enabled && (
|
||||
<script is:inline define:vars={{ url, siteId }}>
|
||||
var _paq = (window._paq = window._paq || []);
|
||||
_paq.push(['setDoNotTrack', true]);
|
||||
_paq.push(['disableCookies']);
|
||||
_paq.push(['trackPageView']);
|
||||
_paq.push(['enableLinkTracking']);
|
||||
_paq.push(['setTrackerUrl', url + 'matomo.php']);
|
||||
_paq.push(['setSiteId', siteId]);
|
||||
var s = document.createElement('script');
|
||||
s.async = true;
|
||||
s.src = url + 'matomo.js';
|
||||
document.head.appendChild(s);
|
||||
</script>
|
||||
)}
|
||||
Reference in new issue
Block a user