Skip to content

Commit

Permalink
another try of umami analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Dec 5, 2024
1 parent 94fd9df commit 08ecf37
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/src/components/Interpreter/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ function track(type: string, command: string) {
if (_paq) {
_paq.push(['trackEvent', 'REPL', type, command]);
}
const umami = globalThis.umami as any;
if (umami) {
umami.track('REPL', { type, command });
}
}

type PiwikTrack = Array<Array<string>>;
Expand Down
1 change: 1 addition & 0 deletions docs/src/theme/Footer/Layout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ owa_cmds.push(['trackClicks']);
_paq.push(['setSiteId', w]);
g.type='text/javascript';g.async=true;g.defer=true;g.src=i;s.parentNode.insertBefore(g,s);
})('https://jcubic.piwik.pro/ppms.php','https://jcubic.containers.piwik.pro/ppms.js','018719ec\u002D6793\u002D4a2d\u002D92f9\u002Db8b88a01d43c',document)`}}/>
<script defer src="https://cloud.umami.is/script.js" data-website-id="422bfe77-bcfe-4cf8-a923-d496fba1bcc3" />
</footer>
);
}

0 comments on commit 08ecf37

Please sign in to comment.