Skip to main content

good morning, I have a problem with the ‘added to cart’ flow, although the integration does not give any problems and the other flows work correctly, for this flow the image, name and price of the product cannot be displayed. What could this depend on? Thank you

 

 

Possible Solution for "Added to Cart" Flow Issue:

If the product image, name, and price are not displaying in your "Added to Cart" flow, despite the integration working properly, follow these steps to troubleshoot and fix the issue:

  1. Check Your Integration
    Ensure the integration between your eCommerce platform (e.g., Shopify, WooCommerce, BigCommerce) and Klaviyo is passing product data correctly. You can confirm this:

    • Go to Metrics > "Added to Cart" events in Klaviyo.
    • Check if the event payload includes product.image, product.name, and product.price.
      If any of these fields are missing, Klaviyo will not be able to display them.
  2. Event Trigger Configuration
    Verify that your Added to Cart flow is triggered by the correct event. Go to:

    • Flows > Edit Trigger > Ensure the event trigger is Added to Cart and matches the expected payload structure.
  3. Check Template Variables
    Ensure the email template correctly references dynamic variables:

    • For product name: {{ event.extra.line_items.0.product.title }}
    • For product price: {{ event.extra.line_items.0.product.price }}
    • For product image: Use the URL {{ event.extra.line_items.0.product.image.url }} If your data is structured differently, check the payload keys in the event data.
  4. Testing the Flow
    Trigger the "Added to Cart" flow manually by adding a test product to the cart:

    • Go to Klaviyo > Metrics > Find the Added to Cart metric > Click on a recent event.
    • Inspect the event data for product fields.
  5. Platform-Specific Settings

    • For Shopify: Check that your Shopify integration syncs the correct data fields.
    • For other platforms, ensure product properties are passed as part of the Added to Cart event.
  6. Event Payload Debugging
    If you're still not seeing data, you might need to review your website's JavaScript tracking snippet or the integration settings. Custom integration issues often stem from missing event properties.

By following these steps, you should identify and resolve the issue preventing product details from displaying in your "Added to Cart" flow.


Reply