Skip to content

Commit

Permalink
check analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
TAJD committed Feb 10, 2024
1 parent 449b123 commit aa9dec6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion demos/readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Demos

This directory contains a VPP demo that is deployed on streamlit. It has site analytics that are GDPR compliant and collected on goat counter.
This directory contains a VPP demo that is currently deployed here ...

8 changes: 7 additions & 1 deletion demos/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@

def header():
header = """
<script>
// Make sure this is *before* you load the count.js script; otherwise
// the pageview may get sent before this is loaded and this will just
// overwrite the object.
window.goatcounter = {allow_local: true}
</script>
<script data-goatcounter="https://yacht-vpp.goatcounter.com/count"
async src="//gc.zgo.at/count.js"></script>
async src="//gc.zgo.at/count.js"></script>
"""
return components.html(header)

Expand Down

0 comments on commit aa9dec6

Please sign in to comment.