File size: 360 Bytes
a1b38ef
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import os
import streamlit as st
from streamlit.components import v1 as components


def google_analytics():
    current_dir = os.path.dirname(os.path.abspath(__file__))
    html_file_path = os.path.join(current_dir, "google_analytics.html")

    with open(html_file_path, "r") as f:
        html_content = f.read()
    components.html(html_content, height=0)