Skip to content

Commit

Permalink
Merge pull request #78 from fhdsl/cansavvy/GA
Browse files Browse the repository at this point in the history
Add Google Analytics
  • Loading branch information
carriewright11 authored Jul 12, 2023
2 parents 7c6f9e1 + 47812e9 commit 1fecfce
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
16 changes: 8 additions & 8 deletions GA_Script.Rhtml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<html>

<head>
<title>Title</title>
</head>

<body>

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id={MeasurementID}"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-GZX7GS19YN"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '{MeasurementID}');

gtag('config', 'G-GZX7GS19YN');
</script>

</body>
</html>
</html>
1 change: 1 addition & 0 deletions _output.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
bookdown::gitbook:
css: [assets/style.css, assets/style_custom.css]
includes:
in_header: GA_Script.Rhtml
before_body: assets/big-image_fhdasl.html
after_body: assets/footer.html
split_bib: false
Expand Down

0 comments on commit 1fecfce

Please sign in to comment.