Skip to content

Commit

Permalink
added plausible goals
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Sursock authored and Nicolas Sursock committed Jun 26, 2023
1 parent c3997f3 commit 203849f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/_bundle/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export default () => ({
mixpanel.track(type[0].toUpperCase() + type.slice(1, type.length) + 'ed ' +
label[0].toUpperCase() + label.slice(1, label.length))
gtag('event', label + '_' + type)
plausible(label[0].toUpperCase() + label.slice(1, label.length))
// {
// 'app_name': 'myAppName',
// 'screen_name': 'Home'
Expand Down
1 change: 1 addition & 0 deletions src/_includes/footer.njk
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@
</script>

<script defer data-domain="crackingdacode.org" src="https://plausible.io/js/script.js"></script>
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>

<div x-init="vercelTrack"></div>

Expand Down

0 comments on commit 203849f

Please sign in to comment.