Skip to content

Commit 77ccbf9

Browse files
committed
Add tracking of errors in creating subscriptions
1 parent d7823e6 commit 77ccbf9

File tree

1 file changed

+6
-0
lines changed
  • packages/app/src/app/overmind/namespaces/patron

1 file changed

+6
-0
lines changed

packages/app/src/app/overmind/namespaces/patron/actions.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,15 @@ export const createSubscriptionClicked: AsyncAction<{
3737
state.patron.error = null;
3838
} catch (e) {
3939
state.patron.error = e.message;
40+
effects.analytics.track('Create Subscription Error', {
41+
error: e.message,
42+
});
4043
}
4144
} else {
4245
state.patron.error = error.message;
46+
effects.analytics.track('Create Subscription Error', {
47+
error: error.message,
48+
});
4349
}
4450
}
4551
state.patron.isUpdatingSubscription = false;

0 commit comments

Comments
 (0)