How do I track back in stock signups in Klaviyo using Early Bird?
Early Bird provides native back in stock functionality, but also allows you to sync with your Klaviyo account, for those who prefer to manage everything from an external system.
App Installation
To get started with tracking back in stock signups, make sure you have the Shopify Flow and Klaviyo apps installed on your Shopify store.
Creating the Flow
Once you have everything installed and connected, create a new workflow, and select the Early Bird trigger "Customer signed up for back in stock alerts".
Create a new action and select the Klaviyo action "Track an Event".
Fill in the form fields, including your Klaviyo Public API Key (can be found in your Klaviyo settings). Name your event however you'd like, and enter the following variables to pass through the relevant customer information:
Customer Email Address: {{customer.defaultEmailAddress.emailAddress}}
Customer First Name: {{customer.firstName}}
Customer Last Name: {{customer.lastName}}
You can optionally pass along custom properties for your Customer record. We're going to skip the custom properties, and just add a few Event Properties.
Enter the following JSON-formatted code to pass Event Properties to Klaviyo:
{"productId":"{{product.id}}","variantId":"{{variantId}}"}
This will send the Product ID and Variant ID for the signed up product to Klaviyo, and can be used later to create dynamic segments for each product.
Once you're happy with your Flow, you can Save and Turn on the workflow.
Testing the Flow
Now that the Flow is created, we can test it by signing up for a Sold Out product on our storefront. Make sure Early Bird is configured for Back in Stock notifications, then sign up to be notified for a sold out product.
After a few moments, the Flow should run and be visible within Shopify's Recent runs section. You can check this to ensure the Flow was triggered correctly.
If this all looks correct, login to Klaviyo and find the Profile for this customer (it should have recent activity and appear at the top of the list by default).
Our custom event "Back in Stock Signup" should appear in the activity feed and have our custom data included.
Congratulations on syncing back in stock signups with your Klaviyo account!
Creating a Dynamic List of Signups (Segment)
You may now want to create dynamic lists within Klaviyo, and have them group customers together who have signed up for a specific product.
You can do this by going to Audience > Lists & segments and creating a segment in Klaviyo. Name your segment, then select the following conditions to build your segment:
What someone has done (or not done)
- Person has
Back in Stock Signup
at least once over all time- where
productId
equalsgid://shopify/Product/XXXXXXXXXXXX
- where
AND
If someone can or cannot receive marketing
- Person can receive email marketing
You can tweak these conditions as needed, and make them more (or less) specific, depending on how you wish to group customers and manage restocks, but this is a basic example to get you started.
This is how you can use the Klaviyo app to integrate with Early Bird and sync customer signups, by utilising Shopify Flow as a connector.
If you have any questions about the above process, please contact our support team through the Early Bird app, or via email at support@shopside.com.au.