Skip to content

Commit

Permalink
Merge pull request #87 from ttscience/google-analytics
Browse files Browse the repository at this point in the history
Add Google tag for analytics
  • Loading branch information
kamilsi authored Mar 8, 2024
2 parents 04f0527 + b406944 commit 2d03254
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,14 @@ template:
base_font: {google: "Montserrat"}
heading_font: {google: "Montserrat"}
code_font: {google: "JetBrains Mono"}
includes:
in_header: |
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-56CWJW1Q0Q"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-56CWJW1Q0Q');
</script>

0 comments on commit 2d03254

Please sign in to comment.