Skip to content

Commit

Permalink
Merge pull request #150 from jdubois/src
Browse files Browse the repository at this point in the history
Migration to Google Analytics v4
  • Loading branch information
jdubois authored Aug 21, 2023
2 parents 587cd52 + 4866c9a commit f96091c
Showing 1 changed file with 5 additions and 21 deletions.
26 changes: 5 additions & 21 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,29 +49,13 @@
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-4L9RJVPGJT"></script>
<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",
"//www.google-analytics.com/analytics.js",
"ga"
);
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

ga("create", "UA-46075199-1", "auto");
ga("send", "pageview");
gtag('config', 'G-4L9RJVPGJT');
</script>
</body>
</html>

0 comments on commit f96091c

Please sign in to comment.