Skip to content

Commit

Permalink
fix: Prod analytics (#1039)
Browse files Browse the repository at this point in the history
  • Loading branch information
tihuan authored Jul 15, 2024
1 parent b425a52 commit 86fc4a7
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions client/index_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,13 @@
box-sizing: border-box;
}
</style>
<script
defer
data-domain="<%= PLAUSIBLE_DATA_DOMAIN %>"
src="https://plausible.io/js/plausible.js"
></script>
<script>
var script = document.createElement('script')
script.defer=true
script.dataset.domain=window.location.host // Set script data-domain dynamically
script.src = "https://plausible.io/js/plausible.js"
document.head.append(script)
</script>
</head>
<body>
<script type="text/javascript">
Expand Down

0 comments on commit 86fc4a7

Please sign in to comment.