Solved

Dynamic tag for woo commerce tracking information

  • 14 October 2021
  • 1 reply
  • 14 views

Badge

I am trying to include the tracking information in my shipping confirmation emails. however i cannot find a dynamic tag anywhere. Can you please provide a dynamic tag for the tracking number after an order is completed in woo commerce.

icon

Best answer by david.to 14 October 2021, 20:33

View original

1 reply

Userlevel 6
Badge +4

Hello @whutson6,

Great question!

At present, the integration between WooCommerce and Klaviyo does not pass a tracking number as part of the events payloads synced from WooCommerce. For this reason, you would not be able to find a dynamic tag when previewing your event metadata when building out your Shipping Confirmation email. 

In order to push a tracking number for a user's order from WooCommerce to Klaviyo, you would have to use a 3rd party app such as AfterShip or ShipStation. Because these two apps have a direct integration with Klaviyo, you can find a guide on how to connect and use these two applications with Klaviyo from the How to Integrate with AfterShip and How to Integrate with ShipStation Help Center articles.

Once you have either one of integration up and running or a third party shipping integration you prefer, the way you would bring the tracking number into your Klaviyo emails is by creating a new flow triggered off of an event that contains the tracking number i.e. "Shipped Package", drag and drop an email into the flow and preview that email. That will present you with a modal where you can click and select a tag. Copying and pasting the tag for shipping number anywhere in your email will dynamically display the shipping number for each recipient. We also offer a full guide on using dynamic data in our About Using Event Variables to Personalize Flows Help Center article which may prove helpful in further understanding how to leverage dynamic event data in an email.

Alternatively, instead of using a third party shipping application integrated with Klaviyo, you can custom code your own metric/event to replace the WooCommerce Fulfilled Order event. Because this would be a custom event, you can program it to pass your desired information; including a tracking number if it was recorded within your WooCommerce backend. If you do decide to go this route, I would strongly suggest working with a developer you are familiar with or finding and working with one through our Klaviyo Partner Directory. I’ve also included some Help Center articles and documents that may be helpful in building your own custom event below:

I hope this helps!

David

Reply