diff --git a/src/_h5ai/client/js/inc/ext/google-analytics.js b/src/_h5ai/client/js/inc/ext/google-analytics.js index 76cb8492..5aa55f62 100644 --- a/src/_h5ai/client/js/inc/ext/google-analytics.js +++ b/src/_h5ai/client/js/inc/ext/google-analytics.js @@ -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({ diff --git a/src/_h5ai/conf/options.json b/src/_h5ai/conf/options.json index 4063b48d..16bf8daf 100644 --- a/src/_h5ai/conf/options.json +++ b/src/_h5ai/conf/options.json @@ -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.