Skip to content

Commit

Permalink
feat: try counterscale
Browse files Browse the repository at this point in the history
  • Loading branch information
aravindballa committed Nov 13, 2024
1 parent 8bf4acd commit 02e4f10
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions pages/_document.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,22 @@ class MyDocument extends Document {
data-host-url="https://analytics.balla.dev/"
src="/js/script-u.js"
></script>
<script
dangerouslySetInnerHTML={{
__html: `
(function () {
window.counterscale = {
q: [['set', 'siteId', 'your-unique-site-id'], ['trackPageview']]
};
})();
`,
}}
/>
<script
id="counterscale-script"
src="https://counterscale-ct6.pages.dev/tracker.js"
defer
></script>
</Head>
<body>
<script src="/noflash.js" />
Expand Down

0 comments on commit 02e4f10

Please sign in to comment.