Skip to content

Commit

Permalink
Enable website traffic analysis using Google Analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
Taher-Ghaleb committed Feb 26, 2023
1 parent cf725bf commit 026e0f0
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 3 deletions.
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ header_pages:
collections:
team:
output: true
google_analytics: G-JFZW6XXB7T
9 changes: 8 additions & 1 deletion form_generator/Checklist.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,14 @@
});
});
</script>

<!-- Google tag (gtag.js) -->
<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>
</head>
<body onload="showInstructions();">
<div id="container">
Expand Down
12 changes: 10 additions & 2 deletions form_generator/index.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@

<html>
<head>
<title>Empirical Standards</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../form_generator/css/appearance.css">
<link rel="stylesheet" href="../form_generator/css/tooltip.css">
<link rel="stylesheet" href="../form_generator/css/tooltip.css">

<!-- Google tag (gtag.js) -->
<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>
</head>
<body>
<div id="container">
Expand Down
9 changes: 9 additions & 0 deletions form_generator/result.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../form_generator/css/appearance.css">
<link rel="stylesheet" href="../form_generator/css/tooltip.css">

<!-- Google tag (gtag.js) -->
<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>
</head>
<body onload="generateStandardChecklist()"></body>
</html>
9 changes: 9 additions & 0 deletions tab_03_standards.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,15 @@ function openStandardFromURL(evt) {
document.getElementById(standardName+'_b').className += " active";
}
</script>

<!-- Google tag (gtag.js) -->
<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>
</head>
<body onload="openStandardFromURL(event)">

Expand Down
8 changes: 8 additions & 0 deletions tab_04_supplements.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ function openSupplementFromURL(evt) {
document.getElementById(supplementName+'_b').className += " active";
}
</script>
<!-- Google tag (gtag.js) -->
<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>
</head>
<body onload="openSupplementFromURL(event)">

Expand Down

0 comments on commit 026e0f0

Please sign in to comment.