Corey Morris
commited on
Commit
•
9444cd2
1
Parent(s):
2b16774
Added google analytics snippet
Browse files
app.py
CHANGED
@@ -5,6 +5,20 @@ from result_data_processor import ResultDataProcessor
|
|
5 |
import matplotlib.pyplot as plt
|
6 |
import numpy as np
|
7 |
import plotly.graph_objects as go
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
st.set_page_config(layout="wide")
|
10 |
|
|
|
5 |
import matplotlib.pyplot as plt
|
6 |
import numpy as np
|
7 |
import plotly.graph_objects as go
|
8 |
+
from streamlit.components.v1 import html
|
9 |
+
|
10 |
+
# Google Analytics code snippet
|
11 |
+
google_analytics_code = """
|
12 |
+
<!-- Google tag (gtag.js) -->
|
13 |
+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-MT9QYR70MC"></script>
|
14 |
+
<script>
|
15 |
+
window.dataLayer = window.dataLayer || [];
|
16 |
+
function gtag(){dataLayer.push(arguments);}
|
17 |
+
gtag('js', new Date());
|
18 |
+
gtag('config', 'G-MT9QYR70MC');
|
19 |
+
</script>
|
20 |
+
"""
|
21 |
+
html(google_analytics_code, height=0)
|
22 |
|
23 |
st.set_page_config(layout="wide")
|
24 |
|