Skip to content

Commit

Permalink
Add analytics to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
christophetd committed Sep 20, 2023
1 parent 4d9b504 commit 818ea9f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/javascripts/ga.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-8QPPPHCKMM');
2 changes: 2 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ markdown_extensions:
extra_javascript:
- https://cdnjs.cloudflare.com/ajax/libs/tablesort/5.2.1/tablesort.min.js
- javascripts/tablesort.js
- javascripts/ga.js
- https://www.googletagmanager.com/gtag/js?id=G-8QPPPHCKMM
extra_css:
- css/extra.css
- css/w3.css
Expand Down

0 comments on commit 818ea9f

Please sign in to comment.