mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-04-08 22:52:04 +02:00
Remove deprecated Google Analytics code.
This commit is contained in:
parent
ffc1da6ad1
commit
96551400c6
@ -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({
|
||||
|
@ -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.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user