Add tracking of automatic email type selection [PREMIUM-84]

This commit is contained in:
Rostislav Wolny
2018-06-29 11:55:10 +02:00
parent a8f75fb927
commit edea5ecece

View File

@@ -14,6 +14,11 @@ class AutomaticEmailEventsList extends React.Component {
}
eventsConfigurator(eventSlug) {
MailPoet.trackEvent('Emails > Automatic Type selected', {
'MailPoet Free version': window.mailpoet_version,
'MailPoet Premium version': window.mailpoet_premium_version,
'Email type': eventSlug,
});
this.props.router.push(`new/${this.email.slug}/${eventSlug}/conditions`);
}