mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-25 11:04:00 +00:00
Add back google analytics
Accidentally lost this in the move to parcel
This commit is contained in:
parent
cea359a39b
commit
4b9e6f52e6
3 changed files with 25 additions and 9 deletions
|
|
@ -1,7 +1,6 @@
|
|||
package.json
|
||||
**/*.min.css
|
||||
**/base-skin.css
|
||||
demo/js/googleAnalytics.min.js
|
||||
built/*
|
||||
demo/built/*
|
||||
coverage/*
|
||||
|
|
|
|||
|
|
@ -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 () {
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
Loading…
Add table
Add a link
Reference in a new issue