I was looking at the Google Developer site and noticed this starter kit is using the old Google Analytics snippet. For newer browsers the following snippet is recommended:
<!-- Google Analytics -->
<script>
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', 'UA-XXXXX-Y', 'auto');
ga('send', 'pageview');
</script>
<script async src='https://www.google-analytics.com/analytics.js'></script>
<!-- End Google Analytics -->
I was looking at the Google Developer site and noticed this starter kit is using the old Google Analytics snippet. For newer browsers the following snippet is recommended:
Source: https://developers.google.com/analytics/devguides/collection/analyticsjs/
This change would involve updating:
I'm happy to submit a PR if the proposed update is accepted.