GA parse priority adjustment (bug 826094)
This commit is contained in:
Родитель
8bceaaca45
Коммит
93a7df295a
|
@ -674,10 +674,11 @@ MINIFY_BUNDLES = {
|
|||
'js/impala/site_suggestions.js',
|
||||
),
|
||||
|
||||
# Impala: Things to be loaded at the top of the page
|
||||
# Impala and Legacy: Things to be loaded at the top of the page
|
||||
'preload': (
|
||||
'js/lib/jquery-1.6.4.js',
|
||||
'js/impala/preloaded.js'
|
||||
'js/impala/preloaded.js',
|
||||
'js/zamboni/analytics.js',
|
||||
),
|
||||
# Impala: Things to be loaded at the bottom
|
||||
'impala': (
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
$window.bind('buttons_loaded_click', function() {
|
||||
$el.trigger('click');
|
||||
});
|
||||
})
|
||||
});
|
||||
$window.bind('buttons_loaded', function() {
|
||||
// Trigger all the clicks
|
||||
$window.trigger('buttons_loaded_click');
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
// GA Analytics code. The '_setAccount' below is specific to AMO tracking.
|
||||
|
||||
var _gaq = _gaq || [];
|
||||
_gaq.push(['_setAccount', 'UA-36116321-7']);
|
||||
_gaq.push(['_trackPageview']);
|
||||
|
||||
(function() {
|
||||
var ga = document.createElement('script');
|
||||
ga.type = 'text/javascript';
|
||||
ga.async = true;
|
||||
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(ga, s);
|
||||
})();
|
|
@ -1,21 +1,6 @@
|
|||
/* Global initialization script */
|
||||
var z = {};
|
||||
|
||||
// Google Analytics initialization.
|
||||
var _gaq = _gaq || [];
|
||||
_gaq.push(['_setAccount', 'UA-36116321-7']);
|
||||
_gaq.push(['_trackPageview']);
|
||||
|
||||
(function() {
|
||||
var ga = document.createElement('script');
|
||||
ga.type = 'text/javascript';
|
||||
ga.async = true;
|
||||
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(ga, s);
|
||||
})();
|
||||
// End of GA initialization.
|
||||
|
||||
$(document).ready(function(){
|
||||
// Initialize install buttons.
|
||||
$('.install').installButton();
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
{% if request.user.is_authenticated() %}
|
||||
<meta name="csrf" content="{{ csrf_token }}">
|
||||
{% endif %}
|
||||
{{ js('preload') }}
|
||||
</head>
|
||||
<body class="html-{{ DIR }} {{ request.APP.short }} moz-header-slim {% block bodyclass %}{% endblock %}"
|
||||
data-app="{{ request.APP.short }}"
|
||||
|
|
Загрузка…
Ссылка в новой задаче