Keeping your marketing contact lists ‘clean’ and up to date is extremely important for your deliverability reputation. We know it’s not ideal when someone wants to unsubscribe from your amazing marketing communication, but it’s a lot better to let them leave on their own accord than complain to an Email Service Provider (Gmail, Yahoo, Orange.fr, O2, etc.) that you are sending them unsolicited emails.
That is why it is best to make sure your lists and master database always stay up to date with those customers who want to receive your news and those who don’t. We’ve tried to make this easy for you by automating much of the contact synchronization process. When a recipient unsubscribes from your newsletter, the newsletter option in their customer profile within PrestaShop will automatically be unchecked! It’s fast and efficient.
Now, you can still manually unsubscribe anyone from receiving your newsletter by going to the individual’s profile and unchecking the newsletter checkbox. And if you manually disable a contact, this will automatically unsubscribe that person from your Mailjet contact list as well.
Enabling List Cleanup / Unsub Event¶
From the Home screen, click on ‘List Cleanup’.
Activating the ‘List Cleanup’ is a simple copy, click, paste and click! Copy the ‘Endpoint Url’ as highlighted below. Afterwards click on the URL, which will take you to the Events API section in your Mailjet account.
If needed, you may need to log into your Mailjet account first. Once logged in, click on ‘My account’ in the top right corner, then go to ‘Event tracking (triggers)’.
Event tracking simply means whenever there is an event, a specific action is done on a server. In this case, when a recipient unsubscribes from your newsletter (the event), that information is pushed to PrestaShop and that recipient’s profile’s newsletter checkbox is automatically unchecked (the action).
As you can see on the page, there are many other events available for tracking. For PrestaShop, the Unsubscribe event will be used to streamline all newsletter unsubscribes.
- Tick the checkbox next to the ‘Unsub’ event.
- Paste the previously copied URL into the ‘Endpoint URL’ field for the ‘Unsub’ event.
- You can test the URL by clicking on the ‘Send’ button – if it is correct, you will receive a ‘OK, Code 200’ response.
- Click on ‘Save’ to submit the changes.
A message will appear at the bottom of your screen, saying your event tracking preferences have been saved and you are now tracking the Unsub event!
Testing the Unsub Event¶
Let’s walk through an example of the unsub event in action. From the ‘Customers’ → ‘Customer Settings’ page, the selected contact is currently receiving the newsletter as you can see below.
When you, the Merchant, send a marketing campaign and the end user wishes to unsubscribe, they click on the unsub link at the bottom of the email.
The customer is then redirected to the Mailjet website to confirm by clicking on ‘Yes, unsubscribe’.
A ‘thank you’ message will appear for the recipient confirming their unsubscribe request.
As a Merchant, you’ll see that they have been unsubscribed from the Newsletter from the Customer grid view.
Manually Unsubscribe a client from your Newsletter¶
Remember, you can still manually unsubscribe anyone from receiving your newsletter by going to the individual’s profile and unchecking the newsletter checkbox. Doing this will prevent the recipient from ever receiving a future marketing email from your PrestaShop again. From the Customer page, you can quickly click on the ‘Newsletter’ checkbox to toggle the status.