chore: matomo kentzen du
This commit is contained in:
1 parent
08c1ed2895
commit
e893756d03
2 files changed
-28
No files matched your search
@@ -46,26 +46,4 @@ const { title, description, image = "/home-blog-card.png" } = Astro.props;
|
|||||||
|
|
||||||
<!-- Sitemap -->
|
<!-- Sitemap -->
|
||||||
<link rel="sitemap" href="/sitemap-index.xml" />
|
<link rel="sitemap" href="/sitemap-index.xml" />
|
||||||
|
|
||||||
<!-- Matomo -->
|
|
||||||
<script>
|
|
||||||
var _paq = (window._paq = window._paq || []);
|
|
||||||
// Call disableCookies before calling trackPageView
|
|
||||||
_paq.push(["disableCookies"]);
|
|
||||||
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
|
|
||||||
_paq.push(["trackPageView"]);
|
|
||||||
_paq.push(["enableLinkTracking"]);
|
|
||||||
(function () {
|
|
||||||
var u = "https://analytics.txarli.dev/";
|
|
||||||
_paq.push(["setTrackerUrl", u + "matomo.php"]);
|
|
||||||
_paq.push(["setSiteId", "2"]);
|
|
||||||
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);
|
|
||||||
})();
|
|
||||||
</script>
|
|
||||||
<!-- End Matomo Code -->
|
|
||||||
</head>
|
</head>
|
||||||
Vendored
-6
@@ -1,7 +1 @@
|
|||||||
/// <reference types="astro/client" />
|
/// <reference types="astro/client" />
|
||||||
|
|
||||||
type MatomoCommand = [command: string, ...args: (string | number | boolean)[]];
|
|
||||||
|
|
||||||
interface Window {
|
|
||||||
_paq?: MatomoCommand[];
|
|
||||||
}
|
|
||||||
Reference in new issue
Block a user