This article will walk you through integrating Aftership with Klaviyo. After completing the steps in this guide, you'll be able to personalize and target emails based on the shipping events and status of orders Aftership tracks. Here's some of the data we sync from Aftership:
- When a shipment is marked as shipped, and the tracking code and order ID for that shipment
- When a shipment has been marked as delivered, and the tracking code and order ID for that shipment
Enable Klaviyo's Aftership Integration
Click on the Integrations tab in the left sidebar.
After you select the Integrations tab, your page will be reloaded and will present you with a large grid of integration options. Select the Aftership integration, and then click the button to Enable Synching with Aftership.
You will be brought to a page that looks like this:
Once you've enabled syncing, Klaviyo will provide you with a webhook URL to use inside Aftership for your webhook integration.
Update the AfterShip Webhook URL
From your AfterShip account navigate to Settings > Triggers > Webhook. Enter the webhook URL generated in your Klaviyo account into the Webhook URL field.
Select "All" to send all events to Klaviyo.
Monitor the Klaviyo Sync
To check on your integration, navigate to your account's Metrics tab. Click on the Received Delivery metric and click on the activity feed icon. Aftership data is sent to Klaviyo via webhooks, so all data is near real-time.
If your integration has begun syncing data, you will start to see Received Delivery events being added to this Activity Feed. When your Aftership integration has a green border in your account's Enabled Integrations list, your historic data sync has completed.
If you aren't seeing data, make sure you've selected a trigger for the webhook in your Aftership account at your Settings > Triggers > Webhook page. Select "All" to send all events to Klaviyo.
The Aftership Metrics
This metric records an event every time a delivery is marked as received inside of Aftership. With this metric, you can filter Product Review flows to send to only people who have received delivery, or trigger a flow when a delivery was received letting that customer know their package has arrived. Each event includes information about an orders tracking number and order ID.
This metric records an event every time an order is marked as shipped in Aftership. With this metric, you can trigger flows to send emails out confirming that a package has been shipped to a customer, and provide them the tracking number to track their shipment. Each event includes information about an orders tracking number and order ID.