mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 15:47:53 -05:00
Merge pull request #600 from thisandagain/bugfix/ga
Move GA tracking code into page head
This commit is contained in:
commit
a5e12d0d46
1 changed files with 14 additions and 13 deletions
|
@ -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') {
|
||||
|
|
Loading…
Reference in a new issue