Skip to content

Commit

Permalink
Defer plausible pageview tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
bendiksolheim committed Oct 19, 2023
1 parent 3b5a243 commit b98d54c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions static/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
plausible('pageview', { props: { language: navigator.language } })
4 changes: 1 addition & 3 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="{{ get_url(path="tufte-dark.css") }}">
<script defer data-domain="bendik.dev" src="https://plausible.io/js/script.pageview-props.js"></script>
<script>
plausible('pageview', { props: { language: navigator.language } })
</script>
<script defer src="/index.js"></script>
</head>
<body>
<article>
Expand Down

0 comments on commit b98d54c

Please sign in to comment.