Skip to content

Commit d9a30df

Browse files
authored
Update Plausible script (#106)
1 parent 9a47548 commit d9a30df

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/diff_web/templates/layout/header.html.eex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
<link rel="stylesheet" href="<%= Routes.static_path(@conn, "/css/app.css") %>"/>
1515

1616
<%= if host = Application.get_env(:diff, :host) do %>
17-
<script async defer data-domain="<%= host %>" src="https://stats.<%= Application.fetch_env!(:diff, :hexpm_host) %>/js/plausible.js"></script>
17+
<script async defer src="https://s.<%= host %>/js/script.js"></script>
18+
<script>window.plausible=window.plausible||function(){(plausible.q=plausible.q||[]).push(arguments)},plausible.init=plausible.init||function(i){plausible.o=i||{}};plausible.init({endpoint:"https://s.<%= host %>/api/event"})</script>
1819
<% end %>
1920
</head>
2021
<body>

0 commit comments

Comments
 (0)