Skip to content

Commit

Permalink
docs: Use Google Tag Manager code (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
gadenbuie authored Jan 21, 2025
1 parent 24834f2 commit 18bbac4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions docs/_partials/gtm-body.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KHBDBW7" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
3 changes: 3 additions & 0 deletions docs/_partials/gtm-head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<!-- Google Tag Manager -->
<script type="text/plain" cookie-consent="tracking">(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-KHBDBW7');</script>
<!-- End Google Tag Manager -->
5 changes: 2 additions & 3 deletions docs/_quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ website:
style: simple
palette: light
policy-url: https://posit.co/privacy
google-analytics:
tracking-id: GTM-KHBDBW7
anonymize-ip: true

page-footer:
left: |
Expand Down Expand Up @@ -95,6 +92,8 @@ format:
html:
theme: [brand]
toc: true
include-in-header: _partials/gtm-head.html
include-before-body: _partials/gtm-body.html

lightbox: auto

Expand Down

0 comments on commit 18bbac4

Please sign in to comment.