mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 13:33:20 +12:00
chore: only gather analytics on hexdocs.pm
This commit is contained in:
parent
84a3bcf37b
commit
9d934e5d7c
1 changed files with 2 additions and 1 deletions
3
mix.exs
3
mix.exs
|
@ -97,11 +97,12 @@ defmodule Ash.MixProject do
|
||||||
if type == :html do
|
if type == :html do
|
||||||
"""
|
"""
|
||||||
<script>
|
<script>
|
||||||
if (location.hostname === "hexdocs") {
|
if (location.hostname === "hexdocs.pm") {
|
||||||
var script = document.createElement("script");
|
var script = document.createElement("script");
|
||||||
script.src = "https://plausible.io/js/script.js";
|
script.src = "https://plausible.io/js/script.js";
|
||||||
script.setAttribute("defer", "defer")
|
script.setAttribute("defer", "defer")
|
||||||
script.setAttribute("data-domain", "ashhexdocs")
|
script.setAttribute("data-domain", "ashhexdocs")
|
||||||
|
document.head.appendChild(script);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue