Skip to content

Commit 8fab5e0

Browse files
authored
Update Plausible script (#25)
1 parent 8142d20 commit 8fab5e0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

gleam.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,11 @@ href = "/favicon/apple-touch-icon.png"
5656
[[tools.lustre.html.links]]
5757
rel = "manifest"
5858
href = "/favicon/site.webmanifest"
59+
60+
[[tools.lustre.html.scripts]]
61+
async = true
62+
defer = true
63+
src = "https://s.hexdocs.pm/js/script.js"
64+
65+
[[tools.lustre.html.scripts]]
66+
content = """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.hexdocs.pm/api/event"})"""

0 commit comments

Comments
 (0)