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

@ -10,10 +10,10 @@
<meta name="viewport" content="width={{viewportWidth}}, initial-scale=1">
<title>Scratch - {{title}}</title>
<!-- Prevent mobile Safari from making phone numbers -->
<meta name="format-detection" content="telephone=no">
<!-- Search & Open Graph-->
<meta name="description" content="{{description}}" />
<meta name="google-site-verification" content="m_3TAXDreGTFyoYnEmU9mcKB4Xtw5mw6yRkuJtXRKxM" />
@ -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') {