Skip to content

Commit

Permalink
simplify analytics more (#4930)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelcolvin committed Jan 11, 2023
1 parent 5121777 commit 5bb8922
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions docs/theme/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,5 @@

{% block content %}
{{ super() }}
<script>
const u = new URL(window.location.href)
const url_query = new URLSearchParams({
width: window.innerWidth.toString(),
height: window.innerHeight.toString(),
url_host: u.host,
url_path: u.pathname,
url_hash: u.hash,
url_query: u.search,
referer: document.referrer,
})
fetch(`${window.location.origin}/flarelytics.txt?${url_query.toString()}`)
</script>
<script src="/flarelytics/client.js"></script>
{% endblock %}

0 comments on commit 5bb8922

Please sign in to comment.