Skip to content

Commit 14a0c82

Browse files
authored
Merge pull request #72 from back4app/add-amplitude-mixpanel
Add amplitude mixpanel
2 parents 93daa9b + 4ae02ec commit 14a0c82

File tree

5 files changed

+13
-1
lines changed

5 files changed

+13
-1
lines changed

src/dashboard/Analytics/Performance/Performance.react.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ export default class Performance extends DashboardView {
102102
}
103103

104104
componentWillMount() {
105+
// Send track event
106+
back4AppNavigation && back4AppNavigation.atAnalyticsPerformanceEvent()
107+
105108
this.handleRunQuery(this.context.currentApp);
106109
}
107110

@@ -156,7 +159,7 @@ export default class Performance extends DashboardView {
156159
renderContent() {
157160
let toolbar = (
158161
<Toolbar
159-
section='Analytics'
162+
section='Analytics'
160163
subsection='Performance' />
161164
);
162165

src/dashboard/Data/Browser/Browser.react.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,8 @@ export default class Browser extends DashboardView {
228228
this.state.counts[className] = 0;
229229
history.push(this.context.generatePath('browser/' + className));
230230
}).then(() => {
231+
// Send track event
232+
back4AppNavigation && back4AppNavigation.createClassClickEvent()
231233
this.setState({ showCreateClassDialog: false });
232234
}).catch(error => {
233235
let errorDeletingNote = 'Internal server error'

src/dashboard/Data/Config/Config.react.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ class Config extends TableView {
178178
ActionTypes.SET,
179179
{ param: name, value: value }
180180
).then(() => {
181+
// Send track event
182+
back4AppNavigation && back4AppNavigation.createConfigParameterEvent()
181183
this.setState({ modalOpen: false });
182184
}, () => {
183185
// Catch the error

src/dashboard/Data/Logs/Logs.react.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ export default class Logs extends DashboardView {
7676
}
7777

7878
renderContent() {
79+
// Send track event
80+
back4AppNavigation && back4AppNavigation.atParseLogsEvent()
81+
7982
let toolbar = null;
8083
if (subsections[this.props.params.type]) {
8184
toolbar = (

src/dashboard/Data/Webhooks/Webhooks.react.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ export default class Webhooks extends TableView {
159159
iconSize={30}
160160
open={this.state.showNewWebhookModal}
161161
onSubmit={() => {
162+
// Send track event
163+
back4AppNavigation && back4AppNavigation.createWebhookEvent()
162164
return this.props.webhooks.dispatch(WebhookActionTypes.CREATE, hookRequestData(this.state));
163165
}}
164166
onClose={() => {

0 commit comments

Comments
 (0)