Skip to content

Commit

Permalink
feat: adds non cookie tracking stats
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelbr committed Dec 13, 2024
1 parent 23e6ffb commit 8ed7a30
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/app/(main)/[locale]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,29 @@ export default async function Layout({
soMeData={initialSoMe.data}
/>
</NextIntlClientProvider>

<script
dangerouslySetInnerHTML={{
__html: `
var _paq = _paq || [];
_paq.push(["disableCookies"]);
_paq.push(["trackPageView"]);
_paq.push(["enableLinkTracking"]);
(function() {
var u = "https://variant.innocraft.cloud/";
_paq.push(["setTrackerUrl", u + "piwik.php"]);
_paq.push(["setSiteId", "1"]);
var d = document,
g = d.createElement("script"),
s = d.getElementsByTagName("script")[0];
g.type = "text/javascript";
g.async = true;
g.defer = true;
g.src = u + "piwik.js";
s.parentNode.insertBefore(g, s);
})();`,
}}
/>
</body>
</html>
);
Expand Down

0 comments on commit 8ed7a30

Please sign in to comment.