Skip to content

Commit

Permalink
Fix issue on google analytics tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
paty-oliveira committed Sep 27, 2024
1 parent ba0f100 commit 0c6d824
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os.path

import streamlit as st
import streamlit.components.v1 as components
from streamlit.components.v1 import html

from .layout import render as render_layout
from .sidebar import render as render_sidebar
Expand All @@ -24,7 +24,7 @@ def run(financial_data, financial_calculations, configs):
# Add Google Analytics Tracking
with open(os.path.abspath("src/ui/google_analytics.html")) as f:
html_code = f.read()
components.html(html_code, height=0)
html(html_code, height=0)

# Injecting global CSS stylesheet
st.markdown(global_stylesheet, unsafe_allow_html=True)
Expand Down

0 comments on commit 0c6d824

Please sign in to comment.