Email Events Zap
General information¶
The Email Events trigger allows you to set up a Zap, which will activate upon a certain email event - e.g. the mail is opened, a link within it is clicked, it bounces and cannot be delivered etc. This allows you to transfer information back to your Pipedrive account for the respective emails you are interested in.
Note
The events currently supported by this trigger are email sent, opened, clicked, bounced, spam and blocked. You can see a description for all events in the Mailjet Email Statuses page.
Naturally, the ways to configure the Zap depend on the Zapier actions available for your Action App. Here as an example we will configure a Zap to leave a note in a Pipedrive contact every time this contact ‘clicks’ an email.
Trigger Phase¶
- Click on ‘Make a Zap!’, enter the name of your zap and choose Mailjet as the Trigger App.
-
Select the ‘Email Events’ trigger, then click on ‘Continue’.
-
Choose a Mailjet account to use, or link a new one to Zapier, if needed. For more information click here.
-
You will now need to select the events you want to automatically track for this trigger. Event Tracking simply means whenever there is an event, an event is dispatched to the provided Endpoint URL, containing meaningful context about the event (like the recipient email, timestamp, etc). From here, the customer can script actions to be done following it.
Note
Mailjet allows you to track each event from one URL at a time, so it will not be possible to track a Click event simultaneously from Zapier and a custom URL, for example.
We will use the URL provided to allow Zapier to recognize when a link in an email was clicked, and subsequently trigger the Zap. To do that, first please copy the provided URL to your clipboard.
Then go to the Trigger Events section of your Mailjet account.
Follow the below instructions to configure the Endpoint URL for the Click trigger.
A. Tick the checkbox next to the ‘Click’ event.
B. Paste the previously copied URL into the ‘Endpoint URL’ field for the ‘Click’ event.
C. You can test the URL by clicking on the ‘Send’ button – if it is correct, you will receive a ‘OK, Code 200’ response.
D. Click on ‘Save’ to submit the changes.
Note
In order to track email Clicks or Opens, you need also to have the respective options turned on in your Account Settings as well.
-
Once you have done this, go back to Zapier and click on ‘Continue’.
-
You will be given the option to select a contact list for the zap. Call up the drop-down menu and choose the list you want to use.
Note
If you do not select a contact list, the trigger will activate for all contacts linked to your Mailjet account. This will allow you to track transactional emails as well.
Once you have made your selection, click on ‘Continue’.
-
You will be asked to review your selections - make sure that you have added the Endpoint URL link and selected the proper contact list.
-
The system will now want to test the trigger. Make sure that you have recent events matching your selections so far. In this case, we need a contact from the ‘Mail Events List’ contact list, who has clicked on a link in a Mailjet campaign recently.
-
Once the test is successful, click on ‘Continue’ to complete the trigger configuration.
Action Phase¶
-
Search for and select Pipedrive as the Action App.
-
Choose the action you want the Zap to perform. In our example this will be a ‘Create Note’ action. Then click on ‘Continue’.
-
Select a linked Pipedrive account you want to use, then click on ‘Continue’. If you don’t have a Pipedrive account linked to Zapier, or want to select a new one to use, click on ‘Create a New Account’.
For this example, we will connect a new Pipedrive account to use.
In the pop-up window enter your Pipedrive API Key and click on ‘Yes, Continue’. You can find your API Key by clicking on the link provided in the pop-up.
Go back to the Zapier page and you will see the new ‘Pipedrive Account #’ account. If you wish to change this default name, just click on the pencil icon and enter a new name.
Select the account and click on ‘Save + Continue’.
-
You will now need to configure the note. Once you have configured it on your end, click on ‘Continue’.
-
Zapier will now ask you to test the zap - click on ‘Create & Continue’ to do that, or on ‘Skip Test & Continue’ to skip it. Afterwards simply Finish the Zap and turn it on and you are all set!