Tracking new events

This commit is contained in:
Amine Ben hammou
2017-08-24 10:19:03 +00:00
parent d92b1f57bd
commit 609f1b5e67
9 changed files with 1139 additions and 1075 deletions

View File

@ -6,7 +6,7 @@
<div>
<p class="mailpoet_sending_methods_help help">
<%= __('<strong>Tip:</strong> we have a [link]list of plugins[/link] that work with MailPoet if you need fancier forms.')
|replaceLinkTags('http://beta.docs.mailpoet.com/article/198-list-of-forms-plugins-that-work-with-mailpoet?utm_source=plugin&utm_medium=settings&utm_campaign=helpdocs', {'target' : '_blank'})
|replaceLinkTags('http://beta.docs.mailpoet.com/article/198-list-of-forms-plugins-that-work-with-mailpoet?utm_source=plugin&utm_medium=settings&utm_campaign=helpdocs', {'target' : '_blank', id: 'mailpoet_helper_link'})
|raw
%>
</p>
@ -68,3 +68,13 @@
'new': __('Add New'),
}) %>
<% endblock %>
<% block after_javascript %>
<script type="text/javascript">
jQuery('#mailpoet_helper_link').on('click', function() {
MailPoet.trackEvent('Forms page > link to doc page', {
'MailPoet Free version': window.mailpoet_version
});
});
</script>
<% endblock %>