How to add order number to Klaviyo email for Shopify

Step 1: Ensure Klaviyo is Integrated with Your Ecommerce Platform

If your Klaviyo account isn’t properly integrated with your ecommerce platform, such as Shopify, WooCommerce, or Magento, you won’t be able to pull through the order numbers to Klaviyo emails.

Step 2: Identify the Order Number Variable (Platform Dependent)

Klaviyo uses dynamic data tags (also known as variables) to pull specific information into your emails. The order number is usually stored as a “variable” that can be inserted into your email templates. It’s exactly the same as using a person’s first name like {{ first_name }}

 

For Shopify, the order number is typically stored under a variable such as:

{{ event.extra.order_number }}

 

Step 3: Insert the Order Number Variable into Your Email Template

Once you have identified the correct variable, you can insert it into your email template.

Here’s how to do it:

  1. Go to the Email Template Editor: Navigate to the “Flows” or “Campaigns” tab in Klaviyo, and select the email you want to edit.
  2. Edit the Email Content: In the email editor, place your cursor where you want the order number to appear (e.g., in the subject line, body text, or footer).
  3. Insert the Order Number Variable: Your order number is: {{ event.extra.order_number }}
  4. Preview the Email: Use Klaviyo’s preview feature to see how the email will look with the order number dynamically inserted. This helps ensure the variable is correctly pulling the data.
  5. Save and Test: Save your changes and send a test email to verify that the order number is displaying correctly. Make sure to test with a real order to confirm accuracy. You should see an example order number populate from a previous customer. If this doesn’t work, to find the exact variable for your platform, refer to Klaviyo’s documentation or the integration settings in your Klaviyo account.

Step 4: Use Order Numbers in Various Email Flows

Order numbers can be used in several types of emails, including:

 

  • Order Confirmation Emails: Include the order number in the subject line and body to provide immediate reference for the customer.
  • Shipping Confirmation Emails: Let customers know their order has been shipped by referencing the order number.
  • Post-Purchase Follow-Ups: Use the order number in emails requesting reviews or providing additional product information related to the order.

Here are some other important variables to add into your Order Confirmation email:

Shipping Address:

{{ event.extra.shipping_address.name|title }}
{{ event.extra.shipping_address.address1 }}
{{ event.extra.shipping_address.city|title }},
{{ event.extra.shipping_address.province }}
{{ event.extra.shipping_address.zip }}
{{ event.extra.shipping_address.country }}

 

Billing Address:

{{ event.extra.billing_address.name|title }}
{{ event.extra.billing_address.address1 }}
{{ event.extra.billing_address.city|title }}
{{ event.extra.billing_address.province }}
{{ event.extra.billing_address.zip }}
{{ event.extra.billing_address.country }}

Why add the Order Number to klaviyo email flows?

  • Keep Everything In One Place: don’t have your marketing emails coming from Klaviyo and order confirmations coming from Shopify. You’ll spam people with too many messages and forget that there are more touchpoints to the customer journey than just your regular post purchase flow.
  • Customer Convenience: It helps customers easily track and reference their orders if they need to contact customer service.
  • Professionalism: It gives your emails a more professional and organized appearance.
  • Trust: It reassures customers that their order is being processed accurately.

struggling to add the order number to klaviyo emails? Get In Touch Today And We’ll Setup Your Order Confirmation Emails For You