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',
"" + settings.layoutOrientation
]);
_gaq.push([
'_trackEvent',
"Settings",
'editMode',
"" + settings.editMode
]);
_gaq.push([
'_trackEvent',
"Settings",
'theme',
"" + window.theme
"" + window.themeV4
]);
_gaq.push([
'_trackEvent',
@ -82,14 +88,26 @@ define([
_gaq.push([
'_trackEvent',
"Settings",
'editorFontFamily',
"" + settings.editorFontFamily
'editorFontClass',
"" + settings.editorFontClass
]);
_gaq.push([
'_trackEvent',
"Settings",
'editorFontSize',
"" + settings.editorFontSize
'fontSizeRatio',
"" + settings.fontSizeRatio
]);
_gaq.push([
'_trackEvent',
"Settings",
'maxWidthRatio',
"" + settings.maxWidthRatio
]);
_gaq.push([
'_trackEvent',
"Settings",
'cursorFocusRatio',
"" + settings.cursorFocusRatio
]);
// Check if user has removed back links
_gaq.push([
@ -104,13 +122,6 @@ define([
'commitMsg backlink',
"" + (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
_.each(settings.extensionSettings, function(config, extensionId) {
_gaq.push([
@ -165,7 +176,7 @@ define([
_gaq.push([
'_trackEvent',
'Sync',
'SyncImport',
'SyncImport'
]);
_gaq.push([
'_trackEvent',
@ -179,7 +190,7 @@ define([
_gaq.push([
'_trackEvent',
'Sync',
'SyncExport',
'SyncExport'
]);
_gaq.push([
'_trackEvent',

View File

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