You will learn
Learn how to display an interactive Add to Cart Widget on your Product Detail Pages. The customizable widget encourages shoppers to make a purchase or save a product for later when they have scrolled below the top of the Product Detail Page when the traditional Add to Cart button is no longer visible.
Customer Hub currently supports Shopify storefronts, including Shopify Headless. Additional eCommerce platform support is planned.
For feedback about Customer Hub functionality, email customerhub@klaviyo.com.
Before you begin
This guide covers how to enable the Add to Cart Widget on your site. Before proceeding, ensure that you have the Customer Hub feature enabled in Klaviyo and the Favorites Extension enabled.
Learn more about Customer Hub.
Overview
How to set up Add to Cart Widget
- Navigate to Customer Hub in Klaviyo's left-hand navigation.
- Select Design.
- Select Widget and then the Add to Cart view at the top of the preview
- From the Display menu you can toggle on the Add to Cart banner and select how far down the page a shopper must scroll before the widget appears (measured as a percentage of page height).
-
From the Targeting menu you can control which shoppers see the Add to Cart Widget based on their relationship with your brand:
All shoppers (recognized, logged in, and logged out) – show the widget to everyone who visits a product detail page.
Recognized or Logged in shoppers – show the widget to shoppers recognized by Klaviyo (via a
_kxtoken) or those fully logged into their account. This is the recommended setting to provide a personalized experience while excluding first-time anonymous visitors.Logged in shoppers only – restrict the widget strictly to users who have completed a full account login.
Logged out/Anonymous shoppers – First-time visitors or those with no tracking history will see the widget but will be prompted to identify themselves or log in to save items to a profile.
-
Specific-shopper groups – target the widget to shoppers who belong to designated groups (e.g., VIP customers, newsletter subscribers)
- Click Save to set your changes live.
Additional Resources
- How to style your Customer Hub
- Getting started with web chat
- How to show favorite buttons on your site and in Customer Hub