Skip to content

Commit 0c6d824

Browse files
committed
Fix issue on google analytics tracker
1 parent ba0f100 commit 0c6d824

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ui/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os.path
22

33
import streamlit as st
4-
import streamlit.components.v1 as components
4+
from streamlit.components.v1 import html
55

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

2929
# Injecting global CSS stylesheet
3030
st.markdown(global_stylesheet, unsafe_allow_html=True)

0 commit comments

Comments
 (0)