Merge pull request #1420 from mailpoet/mpre84

Automatic email type selected tracking [PREMIUM-84]
This commit is contained in:
Michelle Shull
2018-07-10 14:18:03 -04:00
committed by GitHub
2 changed files with 13 additions and 0 deletions

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`);
}