alixemail

step by step guide to set up back in stock flow in klaviyo for shopify

Guide to set up back in stock flow klaviyo for shopify

Introduction:

Set up back-in-stock flow in klaviyo for shopify to analyze the demand of any product out-of-stock on your store. By analyzing the number of

customers who are excited to get it back, fill your stock for that specific product.

In this article, You’ll learn complete ‘Guide to set up back in stock flow klaviyo for shopify’.

Let’s dive in!

How to install back-in-stock snippet for shopify?

Install the snippet

First step in our guide to set up back in stock flow klaviyo for shopify is adding the code snippet below to your theme.liquid file. These instructions apply to both Shopify 2.0 users and those using vintage themes. 

  1. From your Shopify Admin click Online Store > Themes.
  2. Click your theme’s Actions dropdown and select Edit Code.
  3. Search for the theme.liquid file, and click to open it in the editor.
  4. Copy the JavaScript snippet below and paste it into your theme.liquid file directly above the </body> tag. 

<script src="https://a.klaviyo.com/media/js/onsite/onsite.js"></script>
<script>
var klaviyo = klaviyo || [];
klaviyo.init({
account: "PUBLIC_API_KEY",
platform: "shopify"
});
klaviyo.enable("backinstock",{
trigger: {
product_page_text: "Notify Me When Available",
product_page_class: "btn",
product_page_text_align: "center",
product_page_margin: "0px",
replace_anchor: false
},
modal: {
headline: "{product_name}",
body_content: "Register to receive a notification when this item comes back in stock.",
email_field_label: "Email",
button_label: "Notify me when available",
subscription_success_label: "You're in! We'll let you know when it's back.",
footer_content: '',
additional_styles: "@import url('https://fonts.googleapis.com/css?family=Helvetica+Neue');",
drop_background_color: "#000",
background_color: "#fff",
text_color: "#222",
button_text_color: "#fff",
button_background_color: "#439fdb",
close_button_color: "#ccc",
error_background_color: "#fcd6d7",
error_text_color: "#C72E2F",
success_background_color: "#d3efcd", 
success_text_color: "#1B9500"
}
});
</script>

 

You’ll need to replace the PUBLIC_API_KEY text [5ht lines in the above snippet] with your Klaviyo public

API key. Learn how to find your account’s public API key.

 

klaviyo public API key

 

If you use multiple Klaviyo accounts, make sure you are using the key from the correct account. Copy and paste your key into the snippet.

You can stop here and save your theme.liquid file to use the default configuration.

 

back in stock flow snippet shopify klaviyo

How to customize back in stock button and form?

1] Adjust the Back In Stock button margin:

If ‘Notify me when available’ button is touching with your main CTA then increase the margin from

ZERO [in your back in stock snippet code]to some number like

 

how to change the margin of back in stock button klaviyo

 

You can see the difference before and after changing the margin

 

how to change margin of back in stock button klaviyo shopify

 

2] How to sync the form [form you see when you click on notify me when available] CTA color with store

Go to ‘MODAL’ section in back in stock snippet

 

what is modal in back in stock flow snippet for shopify

By default button color is blue but you can customize its color to sync with your brand.

 

back in stock klaviyo shopify

 

Replace the button background color with the color you want.

how to chance color of back in stock klaviyo form shopify

You can also customize the form background color, body content, button text color, text color.

3] Allow your customers to opt in for your newsletter:

To capture those who do want to opt-in to receive marketing emails from you, you can add a checkbox like this one to your Back in Stock Form.

Just play with highlighted section

 

how to add opt in option back in stock klaviyo

 

To implement this, you’ll need to make one addition to your snippet by adding your List ID in the “klaviyo.init” section after your Account ID.

  • The “klaviyo.init” section will look like this:
    klaviyo.init({
            account: 'PUBLIC_API_KEY',
            list: 'YOUR_LIST_ID',
            platform: 'shopify'
    });
  • Replace YOUR_LIST_ID with the ID for the Klaviyo list you want to add subscribers to. Typically, this should be your main newsletter list.
  • The snippet with this addition (see Line 5) will look as follows:
    <script>
        var klaviyo = klaviyo || [];
        klaviyo.init({
            account: 'PUBLIC_API_KEY',
            list: 'YOUR_LIST_ID',
            platform: 'shopify'
        });
        klaviyo.enable('backinstock',{ 
           trigger: {
             ...
           },
           modal: {
             ...
           }
        });
    </script>

how to get consent for email marketing with back in stock snippet klaviyo shopify

How to create back-in-stock flow in klaviyo?

Follow the following steps:

  • Go to flows section in klaviyo
  • Search ‘Back-in-Stock flow’ in klaviyo flows library
  • Chose one of them

back in stock flow klaviyo

  • Then customize the content as per your strategy

OR

  • You can create back in stock flow from scratch

How to create klaviyo Back-in-Stock flow from scratch?

  • Navigate to ‘Create from scratch’
  • Chose metric ‘Subscribe to back in stock’ as trigger for this flow

 

back in stock flow trigger in klaviyo

 

  • Save
  • Drag and drop ‘Back in stock delay’ after the trigger

 

how to add delay for back in stock flow klaviyo

 

  • You will see an image like the below one

 

back in stock flow klaviyo

 

  • Before moving forward, update the settings by clicking on ‘back in stock delay’ and then ‘update settings’ from left side
  • You can set the number of items that should be in stock before any notifications are sent. You can choose any number based on your scenario.

back in stock flow klaviyo

 

 

Back in stock flow Email 1:

Now, drag and drop the email before the ‘Back in stock delay’ to thank your customers who subscribe to your back-in-stock list and keep them updated on their favorite items. You can also showcase some other best-selling products with reviews to entice them while they wait for their favorite item to be back in stock.

 

back in stock email klaviyo shopify

 

Email 2:

Now, add an email after the ‘Back in stock delay’ to let your back in stock list subscribers know that their dream item is back again.

Get it before it’s gone away again.

Also, offer them some kind of discount with urgency. Then, you can send a reminder email for the discount if they didn’t use it.

 

back in stock flow set up in klaviyo

 

Hope you love this article ‘Guide to set up back in stock flow klaviyo for shopify’.

Wanna take your E-commerce business to next level with proven email marketing strategies? You’re just ONE step away. DM ‘Klaviyo consultation’ at info@alixemail.com” or WhatsApp us at : +92302-7946841

Don’t forget to subscribe our YouTube channel [Marketing Chamber ] for klaviyo tutorials. For Urdu/Hindi klaviyo tutorialsclick here. For English klaviyo tutorials click here.”

FAQs:

1] How do you create a back in stock flow in Klaviyo?
Answer:
Create the flow
  1. In Klaviyo, select the Flows tab.
  2. Click Create Flow, then Create from Scratch.
  3. Name your flow, then click Create Flow.
  4. In the flow builder, choose the trigger option Takes an Action. …
  5. Directly after the trigger, drag in a Back in Stock Delay.
2] What is back in stock flow?
Answer: Back in Stock is an automated flow that informs customers when an out-of-stock product is available.

 

3] How do you set up back in stock flow?
Answer:
If you’d like to build a back in stock flow from scratch, you can do this as well.
  1. Click Create Flow and name your back in stock flow.
  2. Once in the Visual Flow Builder, choose the trigger option Takes an Action. …
  3. The next component you’ll want to drag in — directly after the trigger — is the Back in Stock Delay.
4] How do I add an email to my back in stock on Shopify?
Answer:
Drag and drop the trigger “On Shopify event” and select the event “Back in Stock.” Add the condition “Wait for Shopify event” and choose the product to be restocked. Next, select the email campaign. Create an email to send Back in Stock notifications.
5] How do I set up back in stock alerts on Shopify?
Answer: The configurable text fields for the back in stock button and popover support plain text only. To add the Back in stock alert button to your product pages, and set up the email alerts: Expand the User menu and go to Settings > Commerce > Product Notifications.
6] What are the benefits of back in stock flow?
Answer: Improve your store’s customer experience and drive sales with back-in-stock notifications. The benefits of setting up back-in-stock notifications for your WooCommerce products are significant. It improves the customer experience, helps to recover lost sales, and creates new marketing opportunities

 

7] How does Klaviyo’s back-in-stock flow work for Shopify?

Answer: This question seeks an explanation of the functionality and the process of setting up and using the back-in-stock flow within Klaviyo for a Shopify store.

8] Can I customize the notifications in Klaviyo’s back-in-stock flow?

Answer: People often want to know if they can tailor the messages and notifications to match their brand and communication style.

9] What is the best way to encourage subscribers to sign up for back-in-stock notifications?

Answer: Store owners want to know how to effectively build their subscriber list for back-in-stock notifications. This might include strategies to entice customers to subscribe.

10] How can I track the effectiveness of the back-in-stock flow in Klaviyo for Shopify?

Answer: Users often inquire about analytics and metrics to measure how well the back-in-stock flow is performing and making an impact on sales.

11] Are there best practices for managing inventory with Klaviyo’s back-in-stock flow on Shopify?

Answer: This question focuses on how to optimize inventory management and use the back-in-stock flow to prevent stockouts and maximize sales.

12] How to set up back in stock flow in klaviyo from scratch?

Answer: This is a complete guide to set up back in stock flow klaviyo for shopify.

1 thought on “Guide to set up back in stock flow klaviyo for shopify”

  1. Pingback: How to get list and segment id in klaviyo

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top