Set up the Klaviyo integration
How to find the public and private API keys in Klaviyo, connect Klaviyo to your Shoporama store, and choose lists for newsletter subscribers and customers who create a profile.
With the Klaviyo integration, Shoporama sends newsletter sign-ups, customers who create a profile, and events from your store and your orders to Klaviyo. That lets you build automated email flows and segments in Klaviyo based on what your customers do in your store.
The setup has four steps: you find two keys in Klaviyo, paste them into Shoporama, choose which lists customers should be added to, and turn on tracking and events. You need a Klaviyo account.
Find your API keys in Klaviyo
Shoporama needs two keys from Klaviyo. The public key is used for Klaviyo's tracking code on the pages of your store. The private key is used to fetch your lists, subscribe customers, and send events to Klaviyo.
Klaviyo's screens are in English, so the buttons and menus below are given with Klaviyo's own names. The names may change if Klaviyo updates its design.
Open API keys
- Log in to Klaviyo and click your account name in the bottom left.
- Select Settings in the menu that opens.
- Select API keys in the submenu on the General tab.

If you are logged in to Klaviyo, you can also go directly to API keys in Klaviyo. On the Mailing list page in Shoporama, the same link appears below the key fields as Open API keys in Klaviyo once you have selected Klaviyo as your provider.
Copy the public key
At the top of the page, under Public API Key / site ID, the public key is shown in the Public API Key column next to your company name. It is six characters long. Copy it so you have it ready for the Public key field in Shoporama.

Create a private key
- Click Create Private API Key under Private API Keys.
- Give the key a name in Private API Key Name, for example Shoporama, so you can later see what it is used for.
- Select Full Access Key under Select Access Level.
- Click Create in the top right.
- Copy the new private key. It starts with pk_.

The private key gives full access to your Klaviyo account, so only share it where it needs to be used.
Paste the keys into Shoporama
- Go to Integrations → Mailing list.
- Select Klaviyo in the Provider field under Newsletter Provider, and click Save. The Klaviyo fields then appear.
- Paste the public key into Public key and the private key into Private key under Connection.
- Click Save.
- Shoporama now fetches your lists from Klaviyo and shows them under Lists. Choose your lists as described below.
- Turn on Automatically add tracking code to your theme and Use events under Tracking and Events, and click Save. If your theme has Klaviyo built in, such as Alaska, leave the tracking code turned off (see below).

If the lists do not appear and the page says Enter both keys and save, and Shoporama will retrieve your lists from Klaviyo., check that both keys have been pasted and saved, and that you have at least one list in Klaviyo. If the private key is wrong, a red error box appears above the Connection card. The public key is not checked here, so copy it carefully.
Choose which lists customers are added to
Under Lists, you choose which lists in Klaviyo your customers should be subscribed to. The dropdowns show the lists you have in Klaviyo, so create the lists in Klaviyo first (under Audience). There are two choices. The first one is required, and the second is optional. If you use both, they must point to two different lists.

Add newsletter subscribers to this list
This list gets the customers who check the box to receive your newsletter themselves: at checkout, in a sign-up form, or on the create profile page. The checkbox on the create profile page is available in the built-in themes with customer accounts. Shoporama sends the customer's email address and name to the list.
If you do not choose a list here, Shoporama cannot subscribe your newsletter subscribers, and you get a notification under the bell at the top of admin saying that a list ID is missing.
If you use Shoporama's own newsletter, meaning Use internal newsletter list under Newsletter → Setup, newsletter sign-ups go there and not to Klaviyo. The list for customers who create a profile works independently of that.
Add customers who create a profile to this list
With this list, you can keep, for example, a customer club list in Klaviyo updated automatically instead of exporting and importing customers by hand. In Shoporama, the customer club is typically your customers with a profile, for example if you use the loyalty program or customer groups. The customer is added to the list when they create a profile themselves:
- on the create profile page in your store
- at checkout, when they check the box to create a profile
Shoporama sends the customer's email address and name to Klaviyo in the background, typically within a minute. The customer does not wait for it.
This only happens when customers sign up themselves. Customers you create in admin, customers from an import or created via Shoporama's API, and colleagues invited by a company administrator in B2B are not added to the list.
The default is - None -, and then nothing happens. If you choose a list, it applies to new profiles from the moment you click Save. If you choose the same list as for newsletter subscribers, Shoporama does not save the choice, and the field goes back to - None -.
Tell customers when they sign up
The customer is added to the list whether or not they have checked the newsletter box. The list follows the profile. Shoporama does not change the customer's consent in Klaviyo: if the customer has previously unsubscribed from your emails, they stay unsubscribed and do not receive emails from the list. We therefore recommend that you state clearly, where customers create a profile, that they will be added to your customer club list and, for example, receive offers by email. Also include it in your privacy policy. At checkout, this happens at the address step, so the customer is added to the list even if the purchase is not completed. This is advice and not legal advice, so check for yourself what applies to your store, especially if you want to send marketing to the list. If you need help adding the text to your theme, write to us at support@shoporama.dk.
Does the customer need to confirm the subscription?
For the newsletter subscriber list, this is controlled by the list's settings in Klaviyo. If the list has double opt-in turned on, Klaviyo sends a confirmation email, and the customer is only added to the list once they have confirmed. With single opt-in, the customer is added to the list right away. At the bottom of the API keys page in Klaviyo, there are also Default opt-in settings, which apply to subscriptions made with API keys such as Shoporama's. Check this setting if customers do not get a confirmation email, or get one you did not expect. The Respect double opt-in switch in Shoporama does not change this.
The list for customers who create a profile never sends a confirmation email. The customer is added directly to the list without their consent being changed, so the list's double opt-in is not used here.
Do you already have a customer club?
Customers who already have a profile are not added to the list automatically. You can include them by importing them into Klaviyo once: go to Customers → Registered customers, click Download all customers, and import the file into the list in Klaviyo. The file contains all your registered customers, including those you created in admin or imported, so remove the ones who should not be on the list before you import. The customers in the file have not been told that they will be added to the list, so consider whether you are allowed to send marketing to them. From then on, Shoporama keeps the list updated with new profiles.
What is sent to Klaviyo?
Shoporama does not send your entire customer database or catalog to Klaviyo on its own. This is what is sent:
- Customers: when they subscribe to the newsletter, and when they create a profile, if you have chosen a list for that. With email address and name.
- Visits and orders: as events. Visits require the tracking code, and orders require Use events. Klaviyo links the events to the customer's profile via the email address. See which events below.
- Products: via a product feed that you can import as a catalog in Klaviyo and use for recommendations in your emails. Turn on Enable the Klaviyo feed under Products → Product feeds in the Klaviyo card. The feed is at yourstore.com/my-klaviyo-feed.xml on your own domain. The exact address is shown below the checkbox, and it changes if you protect the feed with a feed key. In addition, the Viewed Product event includes the product's data.
Which events does Shoporama send to Klaviyo?
Klaviyo builds flows and segments on events, which Klaviyo calls metrics. Shoporama sends two kinds: events from the store while the customer browses, and events from orders. Each kind has its own switch in the Tracking and Events card on the Mailing list page.
Events from the store
Sent when Automatically add tracking code to your theme is turned on:
- Viewed Product: the customer views a product page. With the product's name, price, brand, categories, image, and link.
- Viewed Category: the customer views a category page. With the category's name, ID, image, and link. The front page does not count.
- Added to Cart: the customer adds a product to the cart.
- Started Checkout: the customer is in the cart or at checkout. With the products, the amount, and a link back to the cart.
Once the customer has entered their email address at checkout, Klaviyo links the visit to the customer's profile. That means the events can also be used in flows for customers who are not logged in.
Events from orders
Sent when Use events is turned on. This requires that you have entered your private key:
- Placed Order: an order has been created.
- Ordered Product: one event for each product in the order.
- Paid: the order has been paid.
- Status: the order changes status. The status is part of the name, for example Status: sent.
- Add label and Remove label: an order label is added or removed, for example Add label: VIP.
- Added to Cart: also sent from here once the customer has provided their email address.
Does your theme use its own Klaviyo code?
Some themes, such as Alaska, have Klaviyo built in. In that case, the automatic tracking code should normally be turned off, and the theme itself only sends Added to Cart. Viewed Product, Viewed Category, and Started Checkout are therefore not included. If you need them, write to us at support@shoporama.dk.
Flows you can set up
With the Klaviyo integration, you can set up automated email flows such as:
- Welcome flow: a greeting for new customers
- Abandoned cart: a reminder for customers who did not complete their purchase
- Browse abandonment: a reminder for customers who looked at products or categories without buying
- Post-purchase: follow-up after a purchase
- Win-back: reactivating inactive customers
Tip
If you would rather send newsletters directly from Shoporama, read about the newsletter module.
Frequently asked questions
I have already set up Klaviyo. Do I need to do anything?
No. Your keys and your newsletter list work as before. The field is now called Add newsletter subscribers to this list. If you want to use the new list for customers who create a profile, choose it and click Save.
I have saved both keys, but I cannot choose any lists. What is wrong?
Check that the private key starts with pk_ and that you have not swapped the two keys. If the key has been deleted in Klaviyo, you need to create a new one. The dropdown only shows lists, not segments.
Does the private key really need full access?
We recommend a Full Access Key, because that is the key the integration has been tested with. With a more limited key, the lists may not be fetched, or customers may not be subscribed.
What if the customer both creates a profile and checks the newsletter box?
Then the customer is added to both lists: the newsletter list because of the checkbox, and the profile list because they created a profile. In Klaviyo, the customer is still one profile that is on both lists.
How do I test that the customer club list works?
Create a profile in your own store with an email address you have access to and that is not already a customer in the store. Wait a minute, since the subscription happens in the background. Then look at the list in Klaviyo. If the profile does not show up, write to us at support@shoporama.dk.
Can I start a welcome flow for the customer club in Klaviyo?
Yes. In Klaviyo, a flow can start when someone is added to a specific list, so you can use the profile list as the trigger. The subscription only sends the customer's email address and name, so it is the list that tells Klaviyo who is in the customer club.
I have several stores and one Klaviyo account. How do I set it up?
You set up the integration in each store separately under Integrations → Mailing list. You can use the same keys in all stores and choose which lists each store should use. If you want to be able to tell the customers apart in Klaviyo, give each store its own list.
Need help? Contact us at support@shoporama.dk.
Related articles
Set up the Heysender integration for transactional emails
How to set up the Heysender integration in Shoporama, so your transactional emails support DMARC and SPF and get better deliverability.
Brevo integration: send newsletter signups from your store
How to connect your Shoporama store to Brevo (formerly Sendinblue) so new newsletter signups are added to Brevo automatically. Learn what the...
HeyLoyalty integration for email marketing
A guide to setting up HeyLoyalty in Shoporama for email marketing with automatic sync of subscribers and order data.
Related features
Email marketing software
Email marketing software sends newsletters and automated campaigns. Shoporama has a built-in newsletter system with segmentation, A/B testing, and...
Email marketing
Integrate with Klaviyo, Brevo, Mailchimp, Ubivox, or Campaign Monitor, or use Shoporama's own newsletter system. Automatic syncing and event tracking.
Newsletter system: send professional newsletters directly from Shoporama
Built-in newsletters with A/B testing, segmentation, product blocks, and statistics. Integrates with Brevo, Klaviyo, and HeyLoyalty. Included in...