-
Notifications
You must be signed in to change notification settings - Fork 292
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Gregor Herdmann
committed
Apr 18, 2017
1 parent
9f80828
commit 6c68d4e
Showing
21 changed files
with
779 additions
and
582 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* | ||
* Wire | ||
* Copyright (C) 2017 Wire Swiss GmbH | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see http://www.gnu.org/licenses/. | ||
* | ||
*/ | ||
|
||
'use strict'; | ||
|
||
window.z = window.z || {}; | ||
window.z.tracking = z.tracking || {}; | ||
|
||
/** | ||
* Enum of custom dimensions for Localytics | ||
* | ||
* @note Custom Dimensions for Localytics have to be created server side and are | ||
* identified by the index found in the settings of Desktop and Desktop staging projects | ||
* @see https://dashboard.localytics.com/settings/apps?org_id=1145 | ||
* | ||
* @returns {z.tracking.CustomDimension} Enum of custom dimensions | ||
*/ | ||
z.tracking.CustomDimension = { | ||
APP: 0, | ||
CONTACTS: 1, | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
/* | ||
* Wire | ||
* Copyright (C) 2017 Wire Swiss GmbH | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see http://www.gnu.org/licenses/. | ||
* | ||
*/ | ||
|
||
'use strict'; | ||
|
||
window.z = window.z || {}; | ||
window.z.tracking = z.tracking || {}; | ||
|
||
/** | ||
* Definition of events used for user-tracking with Localytics. | ||
* @note Event names should be descriptive (!) like "Item Purchased" instead of being programmatic like "itemPurchased". | ||
* @returns {z.tracking.EventName} Localytics event names | ||
*/ | ||
z.tracking.EventName = { | ||
ACCOUNT: { | ||
LOGGED_IN: 'account.logged_in', | ||
OPENED_LOGIN: 'account.opened_login', | ||
}, | ||
ANNOUNCE: { | ||
CLICKED: 'announce.clicked', | ||
SENT: 'announce.sent', | ||
}, | ||
APP_LAUNCH: 'appLaunch', | ||
CALLING: { | ||
ENDED_CALL: 'calling.ended_call', | ||
ESTABLISHED_CALL: 'calling.established_successful_call', | ||
FAILED_REQUEST: 'calling.failed_request', | ||
FAILED_REQUESTING_MEDIA: 'calling.failed_requesting_media', | ||
FAILED_RTC: 'calling.failed_rtc', | ||
INITIATED_CALL: 'calling.initiated_call', | ||
JOINED_CALL: 'calling.joined_call', | ||
RECEIVED_CALL: 'calling.received_call', | ||
SHARED_SCREEN: 'calling.shared_screen', | ||
}, | ||
COLLECTION: { | ||
DID_ITEM_ACTION: 'collections.did_item_action', | ||
ENTERED_SEARCH: 'collection.entered_search', | ||
OPENED_COLLECTIONS: 'collections.opened_collections', | ||
OPENED_ITEM: 'collections.opened_item', | ||
SELECTED_SEARCH_RESULT: 'collection.selected_search_result', | ||
}, | ||
CONNECT: { | ||
OPENED_CONVERSATION: 'connect.opened_conversation', | ||
OPENED_GENERIC_INVITE_MENU: 'connect.opened_generic_invite_menu', | ||
SELECTED_USER_FROM_SEARCH: 'connect.selected_user_from_search', | ||
SENT_CONNECT_REQUEST: 'connect.sent_connect_request', | ||
}, | ||
CONTACTS: { | ||
ENTERED_SEARCH: 'contacts.entered_search', | ||
}, | ||
CONVERSATION: { | ||
ADD_TO_GROUP_CONVERSATION: 'addContactToGroupConversation', | ||
CHARACTER_LIMIT_REACHED: 'conversation.character_limit_reached', | ||
CREATE_GROUP_CONVERSATION: 'createGroupConversation', | ||
DELETED_MESSAGE: 'conversation.deleted_message', | ||
EDITED_MESSAGE: 'conversation.edited_message', | ||
REACTED_TO_MESSAGE: 'conversation.reacted_to_message', | ||
SELECTED_MESSAGE: 'conversation.selected_message', | ||
}, | ||
E2EE: { | ||
CANNOT_DECRYPT_MESSAGE: 'e2ee.cannot_decrypt_message', | ||
}, | ||
FILE: { | ||
DOWNLOAD_FAILED: 'file.failed_file_download', | ||
DOWNLOAD_INITIATED: 'file.initiated_file_download', | ||
DOWNLOAD_SUCCESSFUL: 'file.successfully_downloaded_file', | ||
UPLOAD_CANCELLED: 'file.cancelled_file_upload', | ||
UPLOAD_FAILED: 'file.failed_file_upload', | ||
UPLOAD_INITIATED: 'file.initiated_file_upload', | ||
UPLOAD_SUCCESSFUL: 'file.successfully_uploaded_file', | ||
UPLOAD_TOO_BIG: 'file.attempted_too_big_file_upload', | ||
}, | ||
IMAGE_SENT_ERROR: 'Image Sent Error', | ||
MEDIA: { | ||
COMPLETED_MEDIA_ACTION: 'media.completed_media_action', | ||
PLAYED_AUDIO_MESSAGE: 'media.played_audio_message', | ||
PLAYED_VIDEO_MESSAGE: 'media.played_video_message', | ||
}, | ||
NAVIGATION: { | ||
OPENED_TERMS: 'navigation.opened_terms', | ||
OPENED_WIRE_WEBSITE: 'navigation.opened_wire_website', | ||
}, | ||
ONBOARDING: { | ||
ADDED_PHOTO: 'onboarding.added_photo', | ||
GENERATED_USERNAME: 'onboarding.generated_username', | ||
KEPT_GENERATED_USERNAME: 'onboarding.kept_generated_username', | ||
OPENED_USERNAME_FAQ: 'onboarding.opened_username_faq', | ||
OPENED_USERNAME_SETTINGS: 'onboarding.opened_username_settings', | ||
SEEN_USERNAME_SCREEN: 'onboarding.seen_username_screen', | ||
}, | ||
PASSWORD_RESET: 'resetPassword', | ||
PREFERENCES: { | ||
IMPORTED_CONTACTS: 'preferences.imported_contacts', | ||
}, | ||
PROFILE_PICTURE_CHANGED: 'changedProfilePicture', | ||
REGISTRATION: { | ||
ENTERED_CREDENTIALS: 'registration.entered_credentials', | ||
OPENED_EMAIL_SIGN_UP: 'registration.opened_email_signup', | ||
RESENT_EMAIL_VERIFICATION: 'registration.resent_email_verification', | ||
SUCCEEDED: 'registration.succeeded', | ||
}, | ||
SETTINGS: { | ||
EDITED_USERNAME: 'settings.edited_username', | ||
REMOVED_DEVICE: 'settings.removed_device', | ||
SET_USERNAME: 'settings.set_username', | ||
VIEWED_DEVICE: 'settings.viewed_device', | ||
}, | ||
SOUND_SETTINGS_CHANGED: 'soundIntensityPreference', | ||
TELEMETRY: { | ||
APP_INITIALIZATION: 'telemetry.app_initialization', | ||
}, | ||
TRACKING: { | ||
OPT_IN: 'Opt-in', | ||
OPT_OUT: 'Opt-out', | ||
}, | ||
UPLOADED_CONTACTS: 'uploadedContacts', // "source": "Gmail" | ||
}; |
Oops, something went wrong.