Created
March 2, 2016 10:34
-
-
Save ppcano/8f7f215cb781bc82ac9e to your computer and use it in GitHub Desktop.
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
import SelectMetricTracker from './event-tracks/select-metric'; | |
import OpenConfigureVisualizationTracker from './event-tracks/open-configure-visualization'; | |
import OpenInfoTracker from './event-tracks/open-info'; | |
import ChangeExampleTracker from './event-tracks/change-example'; | |
var EventTracks = { | |
addUserScenarioByURLRequest: true, //add scenario from url from test.config | |
openUserScenario: true, //edit scenario from test.config | |
changeExample: ChangeExampleTracker, | |
runTestRunFromMenu: true, | |
runTestRunFromSimpleConfig: true, | |
goToTestConfigFromMenu: true, | |
startProxyRequest: true, | |
stopProxyRequest: true, | |
upgrade: true, //header upgrade button | |
openSupport: true, | |
openKB: true, | |
openStatus: true, | |
saveEditor: true, | |
scenarioByUrl: true, // on scenario.index | |
scenarioByUrlRequest: true, // fired afterScenarioByUrl when validation pass | |
runRequest: true, //@rg want to track runTest fron tests/runs | |
runSimpleTest: true, // on test.config[simple] | |
runSimpleTestRequest: {isHubspot: true, action: 'Clicked run test (simple test page)'}, | |
checkSubscriptionRequest: {isHubspot: true, action: 'Started Subscription Purchase'}, | |
confirmTrafficSimulation: {isHubspot: true, action: 'Used advanced config settings'}, | |
validateUserScenarioRequest: {isHubspot: true, action: 'Validated user scenario'}, | |
saveUserScenarioRequest: {isHubspot: true, action: 'Saved user scenario'}, | |
runTestRunFromAdvancedConfig: {isHubspot: true, action: 'Ran advanced test'}, | |
saveMembers: {isHubspot: true, action: 'Invited team member to org'}, // does not cover the invitation by updateOrganization | |
openProxyScenario: {isHubspot: true, action: 'Chose Proxy Recorder'}, | |
chromeScenario: {isHubspot: true, action: 'Chose Chrome Plugin'}, | |
chromeScenarioWithoutChrome: {isHubspot: true, action: 'Chose Chrome Plugin'}, | |
// those actions are better defined by "attempting", | |
// because we are just requesting the action to the server instead of track the event when the backend confirms the response | |
uploadDataStoreRequest: {isHubspot: true, action: 'Uploaded data store'}, | |
createProjectRequest: {isHubspot: true, action: 'Created project'}, | |
generateTokenRequest: {isHubspot: true, action: 'Created SMA Token'}, | |
regenerateTokenRequest: {isHubspot: true, action: 'Created SMA Token'}, | |
addNewRelicTokenRequest: {isHubspot: true, action: 'Added New Relic API Key'}, | |
changeNewRelicTokenRequest: {isHubspot: true, action: 'Added New Relic API Key'}, | |
registerCompleteRequest: {isHubspot: true, action: 'Registered & Confirmed'}, | |
cancelSubscriptionRequest: {isHubspot: true, action: 'Subscription cancelled'}, | |
cancelRetentionSubscriptionRequest: {isHubspot: true, action: 'Data Retention Subscription cancelled'}, | |
cancelSubscriptionBuyRetentionRequest: {isHubspot: true, action: 'Subscription cancelled and buy retention'}, | |
shorcutNewOrganization: true, | |
shorcutAddOrganizationMember: true, | |
shorcutNewProject: true, | |
shorcutAddProjectMember: true, | |
shorcutNewTest: true, | |
//projects | |
createProject: true, | |
editProject: true, | |
selectProject: true, | |
saveProjectRequest: true, | |
addOrganizationMemberFromProject: true, | |
upgradeFromOrganization: true, | |
//organizations | |
selectOrganization: true, | |
saveOrganizationRequest: true, | |
saveOrganization: true, | |
showNewUserScenario: true, | |
goToAdvanceMode: true, | |
openAdvancedSimulation: true, //@rg but we need to specify what should track | |
addURLVisualization: {action: 'selectMetric', category: 'url'}, | |
addPageVisualization: {action: 'selectMetric', category: 'page'}, | |
selectMetric: SelectMetricTracker, // add new visualization metric | |
openConfigureVisualization: OpenConfigureVisualizationTracker, | |
openInfo: OpenInfoTracker, | |
openPublicUrl: true, | |
generatePublicUrl: true, | |
shareFacebook: true, | |
shareTwitter: true | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment