AKMESSI commited on
Commit
1fef8ec
·
verified ·
1 Parent(s): 00ddcdd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -0
app.py CHANGED
@@ -14,6 +14,21 @@ st.set_page_config(
14
  initial_sidebar_state="collapsed"
15
  )
16
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  # Custom CSS for Premium White/Clean Theme
18
  st.markdown("""
19
  <style>
 
14
  initial_sidebar_state="collapsed"
15
  )
16
 
17
+ # --- GOOGLE ANALYTICS INJECTION ---
18
+ GA_ID = "G-JRWLD5D22V"
19
+ ga_code = f"""
20
+ <!-- Google tag (gtag.js) -->
21
+ <script async src="https://www.googletagmanager.com/gtag/js?id={GA_ID}"></script>
22
+ <script>
23
+ window.dataLayer = window.dataLayer || [];
24
+ function gtag(){{dataLayer.push(arguments);}}
25
+ gtag('js', new Date());
26
+
27
+ gtag('config', '{GA_ID}');
28
+ </script>
29
+ """
30
+ components.html(ga_code, height=0, width=0)
31
+
32
  # Custom CSS for Premium White/Clean Theme
33
  st.markdown("""
34
  <style>