Skip to content

Commit 8a6729d

Browse files
committed
Fix issue on google analytics tracker
1 parent ba0f100 commit 8a6729d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/ui/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import os.path
2-
31
import streamlit as st
42
import streamlit.components.v1 as components
53

@@ -22,7 +20,7 @@ def run(financial_data, financial_calculations, configs):
2220
)
2321

2422
# Add Google Analytics Tracking
25-
with open(os.path.abspath("src/ui/google_analytics.html")) as f:
23+
with open("src/ui/google_analytics.html", "r") as f:
2624
html_code = f.read()
2725
components.html(html_code, height=0)
2826

0 commit comments

Comments
 (0)