Hey @cbzhu,
Firstly, make sure your Klaviyo account is properly integrated with ShipBob. This integration should sync shipment status from ShipBob to Klaviyo, allowing you to use this data in your emails.
In your email template, you can include the merge tag for the tracking URL. Unfortunately, there isn't a straightforward merge tag provided out-of-the-box for this specific purpose. However, you can typically find the correct event variable by checking the event data that ShipBob sends to Klaviyo. This will often be under the event name such as "In Transit" or "Label Created" which includes the tracking number or URL.
To identify the correct merge tag:
- Trigger a shipping event from ShipBob.
- Go to your Klaviyo account and locate the event data for the shipping confirmation.
- Use the event variable (e.g., {{ event|lookup:'tracking_url' }}) in your email template.
Here’s an example of how it should look like:
<a href="{{ event|lookup:'tracking_url' }}">Track your shipment</a>
This should create a clickable button or link that your customers can use to track their orders directly.
If you run into issues with the ShipBob API not passing the correct data, you might need to explore using an integration tool like Zapier to ensure the tracking information is correctly passed to Klaviyo.