Skip to content

Commit

Permalink
Updated to Google Analytics 4 (#435)
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-mon1 authored May 24, 2024
1 parent 86b4952 commit 2df075c
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions _layouts/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
<!DOCTYPE html>
<html lang="{{ page.lang | default: site.lang | default: 'en-US' }}">
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-HBYXWFP794"></script>
<script>
window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-HBYXWFP794');
</script>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
{% unless site.env == "production" %}
Expand Down Expand Up @@ -51,17 +56,6 @@
<!-- Added to verify site for google search -->
<meta name="google-site-verification" content="F3dlMYIP_EE5aoYppl8sWTdIN9-2Sgl6cAY0yFSpKy0" />

<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-48605964-51', 'auto');
ga('set', 'anonymizeIp', true);
ga('set', 'forceSSL', true);
ga('send', 'pageview');
</script>
</head>
<body class="lg-flex flex-column {{ layout.class }} {{ page.class }} {{ page.slug }}" style="min-height:100vh">
{% include skipnav.html %}
Expand Down

0 comments on commit 2df075c

Please sign in to comment.