Skip to content

Commit

Permalink
Merge pull request #640 from jhudsl/KCox-improve-google-analytics
Browse files Browse the repository at this point in the history
Fix wonky html for Google Analytics
  • Loading branch information
KatherineCox authored May 24, 2023
2 parents c06fb73 + 0851886 commit 7598d49
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 20 deletions.
20 changes: 0 additions & 20 deletions GA_Script.Rhtml

This file was deleted.

10 changes: 10 additions & 0 deletions GA_Script.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

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

gtag('config', '{MeasurementID}');
</script>
Binary file modified resources/screenshots/output_file_with_GA.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7598d49

Please sign in to comment.