Skip to content

Commit

Permalink
Trying some analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
bovlb committed Feb 14, 2023
1 parent c71d9a6 commit 039d214
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
3 changes: 2 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ remote_theme: pages-themes/[email protected]
plugins:
- jekyll-remote-theme
title: BoVLB's FRC Tips
description: Tips for FRC teams, primarily for Java programmers
description: Tips for FRC teams, primarily for Java programmers
google_analytics: G-0987DWH1NE
8 changes: 8 additions & 0 deletions _includes/analytics.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<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>
11 changes: 11 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!doctype html>
<html>
<head>
{% include analytics.html %}
<meta charset="utf-8">
<title>{{ page.title }}</title>
</head>
<body>
{{ content }}
</body>
</html>

0 comments on commit 039d214

Please sign in to comment.