Updated Google Analytics events

This commit is contained in:
benweet 2014-08-20 00:26:25 +01:00
parent 3e061019ea
commit 17fe06cc47
2 changed files with 28 additions and 15 deletions

View File

@ -67,11 +67,17 @@ define([
'layoutOrientation', 'layoutOrientation',
"" + settings.layoutOrientation "" + settings.layoutOrientation
]); ]);
_gaq.push([
'_trackEvent',
"Settings",
'editMode',
"" + settings.editMode
]);
_gaq.push([ _gaq.push([
'_trackEvent', '_trackEvent',
"Settings", "Settings",
'theme', 'theme',
"" + window.theme "" + window.themeV4
]); ]);
_gaq.push([ _gaq.push([
'_trackEvent', '_trackEvent',
@ -82,14 +88,26 @@ define([
_gaq.push([ _gaq.push([
'_trackEvent', '_trackEvent',
"Settings", "Settings",
'editorFontFamily', 'editorFontClass',
"" + settings.editorFontFamily "" + settings.editorFontClass
]); ]);
_gaq.push([ _gaq.push([
'_trackEvent', '_trackEvent',
"Settings", "Settings",
'editorFontSize', 'fontSizeRatio',
"" + settings.editorFontSize "" + settings.fontSizeRatio
]);
_gaq.push([
'_trackEvent',
"Settings",
'maxWidthRatio',
"" + settings.maxWidthRatio
]);
_gaq.push([
'_trackEvent',
"Settings",
'cursorFocusRatio',
"" + settings.cursorFocusRatio
]); ]);
// Check if user has removed back links // Check if user has removed back links
_gaq.push([ _gaq.push([
@ -104,13 +122,6 @@ define([
'commitMsg backlink', 'commitMsg backlink',
"" + (settings.commitMsg.indexOf(constants.MAIN_URL) !== -1) "" + (settings.commitMsg.indexOf(constants.MAIN_URL) !== -1)
]); ]);
// Check if user has changed sshProxy
_gaq.push([
'_trackEvent',
"Settings",
'sshProxy unchanged',
"" + (settings.sshProxy == constants.SSH_PROXY_URL)
]);
// Check if extensions have been disabled // Check if extensions have been disabled
_.each(settings.extensionSettings, function(config, extensionId) { _.each(settings.extensionSettings, function(config, extensionId) {
_gaq.push([ _gaq.push([
@ -165,7 +176,7 @@ define([
_gaq.push([ _gaq.push([
'_trackEvent', '_trackEvent',
'Sync', 'Sync',
'SyncImport', 'SyncImport'
]); ]);
_gaq.push([ _gaq.push([
'_trackEvent', '_trackEvent',
@ -179,7 +190,7 @@ define([
_gaq.push([ _gaq.push([
'_trackEvent', '_trackEvent',
'Sync', 'Sync',
'SyncExport', 'SyncExport'
]); ]);
_gaq.push([ _gaq.push([
'_trackEvent', '_trackEvent',

View File

@ -565,7 +565,9 @@ define([
} }
$.ajax({ $.ajax({
url: constants.PICASA_PROXY_URL + "upload/" + albumId, url: constants.PICASA_IMPORT_IMG_URL + '?' + $.param({
albumId: albumId
}),
headers: headers, headers: headers,
data: content, data: content,
processData: false, processData: false,