How to create an auto email for multiple web forms?

by default, InSend offers to send trigger (auto) emails after events:

  • made a purchase
  • left the shopping cart
  • viewed the product and exited the page
  • filled a webform
  • changed the status of the order

In order for your email to work with multiple web forms, we need a custom event.

Take this situation, for example - your website has a few different "save to cart" web forms, and you need to email based on each of them.

1. Go to the "Website events" section and create a new event.

Fill in the fields:

  • Name - any name. It will be used when displaying the event in the Visitor Timeline and in the Filter and Segment forms.
  • Key - unique identifier of the event (Latin letters, numbers and underscores only). It should be transferred from your website as an event parameter.
  • CSS selector - optional field - selector of the element you need in your website HTML markup, clicked when the event is triggered (more about it below).
  • Description - optional field - a clear description of the event. It will be displayed in the event list for your convenience.

You have created a custom event. Its JavaScript code looks like this:

insend('event', 'custom', {key: 'event_key'});

In my example, the code looks like this. If you add InsendSettings.visitor_info the event will send data from the form. 

insend('event', 'custom', {key: 'cart_save'}, InsendSettings.visitor_info);

Now you need to write the JS code of your event for the button of each widget. Here is an example.

After writing the JavaScript code for each web form, go to your auto email and choose a custom event and the name of your event.

Now the auto email will work on all selected web forms.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.