Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
fix potatolytics (bug 991306)
Browse files Browse the repository at this point in the history
  • Loading branch information
ngokevin committed Apr 17, 2014
1 parent 01c5f6d commit 2a9ca48
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions hearth/media/js/tracking.js
Expand Up @@ -66,12 +66,13 @@ define('tracking', ['log', 'settings', 'storage', 'underscore', 'z'], function(l
document.body.appendChild(ua);

window.ga('create', id, {
storage: 'none', // Don't use cookies/localStorage.
clientId: clientID
storage: 'none',
clientId: clientID,
});
if (sect) {
window.ga('set', 'dimension' + sect_index, sect);
}
window.ga('set', 'checkProtocolTask', function(){});
window.ga('send', 'pageview', initial_url);
}

Expand Down Expand Up @@ -111,7 +112,7 @@ define('tracking', ['log', 'settings', 'storage', 'underscore', 'z'], function(l
'(',
setupUATracking.toString(),
')("' + settings.ua_tracking_id + '", "' + get_url() + '", "' + clientID + '", "' +
settings.tracking_site_section + '", ' + settings.tracking_site_section_index + ');',
settings.tracking_section + '", ' + settings.tracking_section_index + ');',
'var origin = "' + origin + '";',
"window.addEventListener('message', function(e) {",
' if (e.origin !== origin) {',
Expand Down

0 comments on commit 2a9ca48

Please sign in to comment.