Merge pull request #600 from thisandagain/bugfix/ga

Move GA tracking code into page head
This commit is contained in:
Andrew Sliwinski 2016-06-23 15:40:20 -04:00 committed by GitHub
commit a5e12d0d46

View file

@ -40,16 +40,6 @@
<!-- Polyfills -->
<script src="/js/polyfill.min.js"></script>
</head>
<body>
<div id="app"></div>
<!-- Vendor & Initialize (Session & Localization)-->
<script src="/js/common.bundle.js"></script>
<!-- Scripts -->
<script src="/js/{{name}}.intl.js"></script>
<script src="/js/{{name}}.bundle.js"></script>
<!-- Analytics (GA) -->
<script>
@ -63,8 +53,19 @@
});
ga('send', 'pageview');
</script>
</head>
<!-- translate title element -->
<body>
<div id="app"></div>
<!-- Vendor & Initialize (Session & Localization)-->
<script src="/js/common.bundle.js"></script>
<!-- Scripts -->
<script src="/js/{{name}}.intl.js"></script>
<script src="/js/{{name}}.bundle.js"></script>
<!-- Translate title element -->
<script>
var loc = window._locale || 'en';
if (typeof window._messages !== 'undefined' && loc !== 'en') {