Skip to content

Commit 8603122

Browse files
committed
add goatcounter
1 parent 5b54bac commit 8603122

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

streamlit_app.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import numpy as np
88
from stqdm import stqdm
99
import streamlit as st
10+
import streamlit.components.v1 as components
1011
# import streamlit_analytics # TODO: un-comment when streamlit-analytics has been updated with https://github.com/jrieke/streamlit-analytics/pull/44
1112
import streamlit_analytics2 as streamlit_analytics
1213
from astropy.coordinates import SkyCoord
@@ -471,3 +472,11 @@ def get_short_url(url):
471472
clear_url()
472473
else:
473474
clear_url()
475+
476+
477+
# goatcounter
478+
html_string = """
479+
<script data-goatcounter="https://solar-mach.goatcounter.com/count"
480+
async src="//gc.zgo.at/count.js"></script>
481+
"""
482+
components.html(html_string)

0 commit comments

Comments
 (0)