www/apps/bloom/app/features/integrations/guides/klaviyo/page.mdx
import { InProductAction, getOsShortcut } from "docs-ui"
export const metadata = {
title: Klaviyo Integration,
}
Add Klaviyo to build email lists and send marketing campaigns to your customers.
Klaviyo lets you send automated emails for abandoned carts, order confirmations, and marketing campaigns. Bloom sets it up for you in minutes.
Integrate Klaviyo if you want to:
Before adding Klaviyo, you need a Klaviyo account and API keys.
Your Klaviyo Private API Key allows Bloom to send data from your store to Klaviyo. To get your Private API Key:
Your Klaviyo List ID is where Bloom will add subscribers from your store. To get your List ID:
/list/). For example, if the URL is https://www.klaviyo.com/lists/abc123, your List ID is abc123.To add Klaviyo using the <InProductAction product={"bloom"} type={"MEDUSA_AI_OPEN_PANE"} data={{ pane: "integrations" }}>Integrations</InProductAction> panel:
Bloom will start setting up Klaviyo and ask you questions about which features you want to enable.
After you click "Build," Bloom asks questions to configure Klaviyo:
After you answer these questions, Bloom asks for your Klaviyo credentials:
After you provide this information, Bloom will complete the Klaviyo integration setup for you.
<Note title="Technical Information">Bloom stores your Klaviyo credentials as environment variables in your store. They're never exposed in your code or logs. See Environment Variables for more details.
</Note>After Bloom finishes the setup, test Klaviyo in your preview store:
If you enabled the product feed, Bloom will share the URL to that feed (for example, https://your-store.com/product-feed?currency_code=usd&country_code=us) in the chat after setup.
The product feed will include your product information for a specific currency and country. You can use this feed in Klaviyo to create dynamic email content that shows your products.
To add the product feed to Klaviyo:
You can now use the product feed in your Klaviyo email templates to show dynamic product content.
Once you've tested Klaviyo and it's working correctly, publish your store to make it live with production credentials.
To publish your Klaviyo integration:
Your Klaviyo integration is now active on your live store. You can track real customer events and send marketing campaigns.
After publishing, make sure to update the product feed URL in your Klaviyo source to use your live backend URL instead of the preview URL. This ensures that your product feed continues to work correctly after publishing.
The backend URL is your admin URL without the /app path. For example, if your admin URL is https://your-store.com/app, your backend URL is https://your-store.com. Update the product feed URL in Klaviyo to https://your-store.com/product-feed?currency_code=usd&country_code=us.
If you face any issues while adding Klaviyo to your Bloom store, contact support or submit feedback.