Skip to main content
Contributor II
March 30, 2021
Solved

Abandoned cart flow: emails not being sent when I test the flow

  • March 30, 2021
  • 16 replies
  • 2534 views

Hi all - can someone help me to work out if I have set up my abandoned cart flow properly? I have been testing it and haven’t received any abandoned cart emails after 4 hours.

My website is a Shopify site.

  • I placed a product in the cart and then left the website
  • 4 hours later (which is the timing of the delay) I didn’t receive any abandoned cart email, even though I just used the default flow that was in Klaviyo.
  • I set the filter to ‘placed order zero times since starting flow’.
  • Then it should send the “It looks like you left something behind” email.
  • (The 2nd email “Your cart is about to expire” I have intentionally left as a draft as I want to test just sending one abandoned email first)

I thought maybe the reason I wasn’t receiving any abandoned cart email might be because I wasn’t logged in to the Shopify site. But I tried it by logging in and I still didn’t receive anything. 

Thank you all for any help you can provide!


Cheers

 

This topic has been closed for replies.
Best answer by elisegaines

Hi @NomiaMarketing! The Started Checkout event (which triggers this flow) is triggered when you proceed past the first page of checkout. Simply adding an item to your cart without going through that first page of checkout won’t trigger the flow, since that is where Klaviyo is able to access the customer’s email address. 

There’s a bit more info available here: https://help.klaviyo.com/hc/en-us/articles/115005080447-Reviewing-Your-Shopify-Data#checkout-started2 

 

If you’d like to send a flow message after someone adds an item to their cart, you can set up the Add to Cart event + a Abandoned Checkout flow: https://help.klaviyo.com/hc/en-us/articles/115001396711-How-to-Create-a-Custom-Added-to-Cart-Event-for-Shopify 

16 replies

Customer Ed.
March 30, 2021

Hi @NomiaMarketing! The Started Checkout event (which triggers this flow) is triggered when you proceed past the first page of checkout. Simply adding an item to your cart without going through that first page of checkout won’t trigger the flow, since that is where Klaviyo is able to access the customer’s email address. 

There’s a bit more info available here: https://help.klaviyo.com/hc/en-us/articles/115005080447-Reviewing-Your-Shopify-Data#checkout-started2 

 

If you’d like to send a flow message after someone adds an item to their cart, you can set up the Add to Cart event + a Abandoned Checkout flow: https://help.klaviyo.com/hc/en-us/articles/115001396711-How-to-Create-a-Custom-Added-to-Cart-Event-for-Shopify 

Contributor II
April 19, 2021

Thank you so much for your help @elisegaines!

I’ve gone through the steps in this article: https://help.klaviyo.com/hc/en-us/articles/115001396711-How-to-Create-a-Custom-Added-to-Cart-Event-for-Shopify 

I added the tracking code to my website (and made sure my website’s add to cart button ID matches the tracking code).

However, when I use Klaviyo’s Abandoned Cart flow template (the one with the Add to Cart trigger), there is a red X next to “This flow requires setting up a special "Added to Cart" metric.” - it won’t let me Create the flow.

How can I configure the Added to Cart Trigger properly so I can set this flow up?

Thanks for your help!

 

David To
Klaviyo Employee
Klaviyo Employee
April 26, 2021

Hey @NomiaMarketing,

Building on what @elisegaines had highlighted, if you had recently applied the Add to Cart code to your website, but no one gone through and triggered this event; you may see this error when creating the flow. This is because Klaviyo hasn’t yet recognized an event within your account that meets this flow condition; in this case, an Add to Cart event. 

 

To resolve this, if there havn’t already been anyone that has triggered this event yet; you can cookie your own browser and add a product to your cart to trigger this Add to Cart event for your test profile. This would record the event, allowing Klaviyo to recognize it and clear the error you see when attempting to create your flow. 

You can cookie your own browser with your desired email by following these steps:

  1. Navigate to your website/homepage in an incognito browser
  2. Add the following to the end of your store URL, replacing example@gmail.com with your email address:
    ?utm_email=example@gmail.com
    • Example URL: wwww.ExampleWebsite.com/?utm_email=example@gmail.com
  3. After you reload the page your browser should be cookied with your desired email address, which would create a profile within Klaviyo
  4. Search in Klaviyo for your email address

I would also take a look at the following forum post where @dov.derin has highlighted some instructions on installing and using the Add to Cart code as well: 

Hope this helps!
David

Contributor II
May 12, 2021

Thank you @david.to for your help! This worked :)

Contributor I
May 12, 2021

Hello, I am having the same issue, I did the integration, web tracking and pasted also the add to cart code, and tried to use email address and added to cart and still does not let me to create the “add to cart trigger”, telling me there “This flow requires setting up a special "Added to Cart" metric”. How can I solve this issue. Thank you!

Contributor II
May 12, 2021

Hi @gymopath - it did take a day or two for Klaviyo to recognise the addition of the code. It was a little while ago but I think I just left it overnight and then it worked the next day.

Dov
Klaviyo Alum
May 13, 2021

Thanks @gymopath for your question.

Yes, @NomiaMarketing is correct!  

Hi @gymopath - it did take a day or two for Klaviyo to recognise the addition of the code. It was a little while ago but I think I just left it overnight and then it worked the next day.

 

It can take some time before the call-out in the flow builder “recognizes” that the snippet has been added.

Additionally, the best way to “tell” if the Added to Cart snippet has been acknowledged by Klaviyo is to navigate to the Analytics page under Metrics. You should see “Added to Cart” there immediately after adding an item to your cart. As long as the metrics is there, you can go ahead and create the flow, even if it still says “flow requires setting up the Added to Cart metric” and it will work as expected.

 

DD
Contributor I
May 15, 2021

Hello @NomiaMarketing, and @dov.derin, thanks for the reply. Apparently “Add to Cart” is not in the metrics for some reason, although did the coding and everything for integration and for add to cart and all that as instructed above in the forum. 

Dov
Klaviyo Alum
May 17, 2021

Hi @gymopath,

Thanks for your follow-up reply.

Have you had a chance to review my last comment in the bottom of the following thread?

 

I outline some steps for troubleshooting Added to Cart. 

Let me know if you’re still having trouble after reviewing.

DD
Contributor I
May 18, 2021

Hello @dov.derin, this code should be added in the product-template.liquid, in the asset folder or in the snippet folder?