Skip to content

Commit

Permalink
Merge pull request #406 from jdubois/migration-ga4
Browse files Browse the repository at this point in the history
Migrate to Google Analytics v4
  • Loading branch information
jdubois authored Aug 21, 2023
2 parents 2393ad6 + 4ea0c3d commit c2754fc
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/main/webapp/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,13 @@ <h1>You must enable javascript to view this page.</h1>
});
}
</script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-4L9RJVPGJT"></script>
<script>
(function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=
function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;
e=o.createElement(i);r=o.getElementsByTagName(i)[0];
e.src='//www.google-analytics.com/analytics.js';
r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));
ga('create', 'UA-46075199-1', 'auto');
ga('send','pageview');
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-4L9RJVPGJT');
</script>
</body>
</html>

0 comments on commit c2754fc

Please sign in to comment.