diff options
Diffstat (limited to 'ui/app/components/provider-page-container/provider-page-container.component.js')
-rw-r--r-- | ui/app/components/provider-page-container/provider-page-container.component.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ui/app/components/provider-page-container/provider-page-container.component.js b/ui/app/components/provider-page-container/provider-page-container.component.js index 30b6b02fc..ff063166d 100644 --- a/ui/app/components/provider-page-container/provider-page-container.component.js +++ b/ui/app/components/provider-page-container/provider-page-container.component.js @@ -15,15 +15,40 @@ export default class ProviderPageContainer extends PureComponent { static contextTypes = { t: PropTypes.func, + metricsEvent: PropTypes.func, }; + componentDidMount () { + this.context.metricsEvent({ + eventOpts: { + category: 'Auth', + action: 'Connect', + name: 'Popup Opened', + }, + }) + } + onCancel = () => { const { tabID, rejectProviderRequest } = this.props + this.context.metricsEvent({ + eventOpts: { + category: 'Auth', + action: 'Connect', + name: 'Canceled', + }, + }) rejectProviderRequest(tabID) } onSubmit = () => { const { approveProviderRequest, tabID } = this.props + this.context.metricsEvent({ + eventOpts: { + category: 'Auth', + action: 'Connect', + name: 'Confirmed', + }, + }) approveProviderRequest(tabID) } |