Remove deprecated Google Analytics code.

This commit is contained in:
Lars Jung 2015-03-30 01:14:31 +02:00
parent ffc1da6ad1
commit 96551400c6
2 changed files with 0 additions and 50 deletions

View File

@ -1,34 +1,3 @@
modulejs.define('ext/google-analytics-ga', ['_', 'core/settings'], function (_, allsettings) {
var settings = _.extend({
enabled: false,
gaq: []
}, allsettings['google-analytics-ga']);
function init() {
if (!settings.enabled) {
return;
}
window._gaq = settings.gaq;
var scriptLiteral = 'script';
var doc = document;
var newScriptTag = doc.createElement(scriptLiteral);
var firstScriptTag = doc.getElementsByTagName(scriptLiteral)[0];
newScriptTag.async = true;
newScriptTag.src = ('https:' === location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
firstScriptTag.parentNode.insertBefore(newScriptTag, firstScriptTag);
}
init();
});
modulejs.define('ext/google-analytics-ua', ['_', 'core/settings', 'core/event'], function (_, allsettings, event) {
var settings = _.extend({

View File

@ -127,25 +127,6 @@ Options
"type": "php"
},
/*
[DEPRECATED, will be removed]
Adds Google Analytics asynchronous tracking code.
for example:
"gaq": [
["_setAccount", "UA-xxxxxx-x"],
["_setDomainName", ".your-domain.tld"],
["_trackPageview"],
["_trackPageLoadTime"]
]
see: https://developers.google.com/analytics/devguides/collection/gajs/
*/
"google-analytics-ga": {
"enabled": false,
"gaq": []
},
/*
Adds Google Universial Analytics asynchronous tracking code.