Skip to content

Commit

Permalink
πŸ“ˆ add gtag to packagedown pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Sobolewski committed Mar 18, 2024
1 parent fc68147 commit 0ed2780
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:
primary: "#68D678"
base_font: {google: "Open Sans"}
code_font: {google: "Fira Code"}
includes:
in_header: |
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-N7MW34VJS3"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-N7MW34VJS3');
</script>

0 comments on commit 0ed2780

Please sign in to comment.