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)