Add back google analytics

Accidentally lost this in the move to parcel
This commit is contained in:
Jordan Eldredge 2023-01-25 12:15:15 -08:00
parent cea359a39b
commit 4b9e6f52e6
3 changed files with 25 additions and 9 deletions

View file

@ -1,7 +1,6 @@
package.json
**/*.min.css
**/base-skin.css
demo/js/googleAnalytics.min.js
built/*
demo/built/*
coverage/*

View file

@ -90,6 +90,31 @@
</svg>
</a>
</p>
<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"
);
ga("create", "UA-96948-19", "auto");
ga("set", "anonymizeIp", true);
ga("send", "pageview");
</script>
<script type="text/javascript">
// If we can load faster than half a second, don't bother showing the loading indicator.
setTimeout(function () {

View file

@ -1,8 +0,0 @@
(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');
ga('create', 'UA-96948-19', 'auto');
ga('set', 'anonymizeIp', true);
ga('send', 'pageview');