Skip to content

Commit

Permalink
Add Google Analytics to the Pages site
Browse files Browse the repository at this point in the history
  • Loading branch information
FarmGeek4Life committed Oct 27, 2021
1 parent d339723 commit 0ee3c15
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
name: Molecular-Weight-Calculator-VB6
description: Calculates the molecular weight and percent composition of chemical formulas and amino acids.
url: https://pnnl-comp-mass-spec.github.io/Molecular-Weight-Calculator-VB6/

# Google Analytics
google_analytics: G-LXXKP1N66C
9 changes: 9 additions & 0 deletions docs/_includes/head-custom-google-analytics.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', '{{ site.google_analytics }}');
</script>

0 comments on commit 0ee3c15

Please sign in to comment.