Skip to content

Commit

Permalink
Added google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
zeta-zetra committed May 15, 2023
1 parent 584f595 commit 71c0cbc
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions _static/js/google_analytics.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@


<script async src="https://www.googletagmanager.com/gtag/js?id=G-XCK9T8Z1JQ"></script>

8 changes: 8 additions & 0 deletions _static/js/google_tag.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments)}
gtag('js', new Date());

gtag('config', 'G-XCK9T8Z1JQ');
</script>
1 change: 1 addition & 0 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

html_theme = 'sphinx_book_theme'
html_static_path = ['_static']
html_js_files = ["js/google_analytics.js", "js/google_tag.js"]

html_title = "Forex Strategies"

Expand Down

0 comments on commit 71c0cbc

Please sign in to comment.