Linking to your tracking page from email, SMS, or other systems

You can directly link to your Wonderment Order Tracking Page from email, SMS, or other channels using our integrated event data. In each event we send to another system, the path to that package's tracking page is included. You can use this reference in communications sent by Klaviyo, Shopify, or other integrated platforms.

Include the link in Shopify notifications

If you're using Shopify's notifications for events like Shipment Confirmed, Out for Delivery, or Delivered, you can include a reference to your customized tracking page instead of the default order status link from Shopify.

You can edit the Shopify notifications to provide the Wonderment link by changing this section. This changes nothing else about the look or functionality of the message except to direct customers to your new page, instead of the carrier's tracking page.

1) Go to your Shopify Settings -> Notifications -> Shipping Confirmation. This same process applies for Shipping Update, Out for Delivery, or Delivered - the code is very similar for each, with different copy for each version.

Search for this code in the body:

{% if fulfillment.tracking_numbers.size == 1 and fulfillment.tracking_company and fulfillment.tracking_url %}{{ fulfillment.tracking_company }} 
 tracking number: <a href="{{ fulfillment.tracking_url }}">{{ fulfillment.tracking_numbers.first }}
</a>
{% elsif fulfillment.tracking_numbers.size == 1 %}
Tracking number: {{ fulfillment.tracking_numbers.first }}
{% else %}
Tracking numbers:<br />
{% for tracking_number in fulfillment.tracking_numbers %}
{{ tracking_number }}<br />
{% endfor %}
{% endif %}

2) Replace it with this code:

{% if fulfillment.tracking_numbers.size == 1 and fulfillment.tracking_company and fulfillment.tracking_url %}{{ fulfillment.tracking_company }}
 tracking number: <a href="{{shop.url}}/apps/wonderment/tracking?search={{ fulfillment.tracking_numbers.first }}">{{ fulfillment.tracking_numbers.first }}
</a>
{% elsif fulfillment.tracking_numbers.size == 1 %}
Tracking number: {{ fulfillment.tracking_numbers.first }}
{% else %}
Tracking numbers:<br />
{% for tracking_number in fulfillment.tracking_numbers %}
{{ tracking_number }}<br />
{% endfor %}
{% endif %}

If you haven't made any other changes to your Shopify templates, the resulting code will look like this:

shopify notification code example

Using the Wonderment Tracking Page in Klaviyo

The specific tracking link for each fulfillment is passed through in all Klaviyo events from Wonderment.

If you send your Shipping Confirmation, Delivery, or other messages out of Klaviyo, you can reference the Tracking Page link from any event-driven flow by using {{ event.WondermentTrackingURL }}.

Klaviyo WondermentTrackingURL Example

Using the Wonderment Tracking Page in Postscript

The tracking link for each fulfillment is passed through in all Postscript events from Wonderment. You can use the variable {wonderment_tracking_url} to insert the link to the package's tracking page in a message.

Wonderment Delivery Tag

Using the Wonderment Tracking Page with webhooks

The Wonderment Tracking URL is also exposed in our Webhook data as wondermentTrackingURL. You can use this as a reference in workflows powered by Zapier, Drip, or other platforms that you connect via webhook.

Have questions or need help? Reach us at help@wonderment.cc for assistance.

Your cart
    Checkout