Skip to content

Commit db3379a

Browse files
Update Verso.py
1 parent 50db359 commit db3379a

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Verso.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,20 @@
77
import difflib
88
import streamlit.components.v1 as components
99

10+
# --- 🛰️ GOOGLE ANALYTICS INTEGRATION ---
11+
def inject_ga():
12+
ga_id = "G-030XWBG97P"
13+
ga_code = f"""
14+
<script async src="https://www.googletagmanager.com/gtag/js?id={ga_id}"></script>
15+
<script>
16+
window.dataLayer = window.dataLayer || [];
17+
function gtag(){{dataLayer.push(arguments);}}
18+
gtag('js', new Date());
19+
gtag('config', '{ga_id}', {{ 'debug_mode': true }});
20+
</script>
21+
"""
22+
components.html(ga_code, height=0)
23+
1024
# --- 🛠️ ACADEMIC ENGINE SETUP ---
1125
@st.cache_resource
1226
def setup_system():

0 commit comments

Comments
 (0)