Skip to content

Commit

Permalink
Fix GA maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
s2t2 committed Aug 25, 2024
1 parent 9f99b1f commit 325b710
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions docs/_quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ book:
# see html: include-in-header option at bottom instead ..
# jk use tracking id as well?
# https://github.com/quarto-dev/quarto-cli/discussions/9065
google-analytics:
tracking-id: "G-B1MPHWM8NN"
#google-analytics:
# tracking-id: "G-B1MPHWM8NN"
# jk still doesn't work. see include-in-header option ...

# https://quarto.org/docs/reference/projects/books.html#search
search: true
Expand Down Expand Up @@ -237,17 +238,17 @@ format:
##number-depth: 1

# https://quarto.org/docs/reference/formats/html.html#includes
#include-in-header:
# text: |
# <!-- Google tag (gtag.js) -->
# <script async src="https://www.googletagmanager.com/gtag/js?id=G-B1MPHWM8NN"></script>
# <script>
# window.dataLayer = window.dataLayer || [];
# function gtag(){dataLayer.push(arguments);}
# gtag('js', new Date());
#
# gtag('config', 'G-B1MPHWM8NN');
# </script>
include-in-header:
text: |
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-B1MPHWM8NN"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-B1MPHWM8NN');
</script>
pdf:
documentclass: scrreprt

0 comments on commit 325b710

Please sign in to comment.