You will learn
Learn how to integrate with Shopware 6 in order to bring site activity, order, catalog, and subscriber data into Klaviyo.
Before you beginBefore you begin
Before integrating, make sure:
- You’ve logged in to the Klaviyo account you wish to integrate.
Shopware 6 is not listed on the integrations tab in Klaviyo. Typically, integrations not listed in the tab are third-party integrations not supported by Klaviyo. The Shopware 6 integration is an exception: it is supported by Klaviyo through our partner Overdose Digital. If you need to contact support, see the section below on how to do so.
Download and install the extension
You can install via of one of two methods: via Composer, or via downloading our extension from Github and then uploading to Shopware.
Install via ComposerInstall via Composer
When installing via Composer, you'll need to specify the Klaviyo extension version; not all extensions work for all Shopware versions.
Are you using a Shopware version between 6.4.4.0 and 6.4.20.2? Run the command with the following extension version:
composer require klaviyo/shopware-klaviyo:1.13.2
Are you using a Shopware version between 6.5.0.0 and 6.5.8.10? Run the command with the following extension version:
composer require klaviyo/shopware-klaviyo:2.15.2
Are you using a Shopware version 6.6.0.0 or above? Run the command with the following extension version:
composer require klaviyo/shopware-klaviyo:3.2.2
Install via uploadInstall via upload
- Find Klaviyo's free extension at these links, and click the Download button:
- Using a Shopware version between 6.4.4.0 and 6.4.20.2? Download Klaviyo extension version 1.13.2.
- Using a Shopware version between 6.5.0.0 and 6.5.8.10? Download Klaviyo extension version 2.15.2.
- Using Shopware version 6.6.0.0 or above? Download Klaviyo extension version 3.2.2.
- Log in to your Shopware admin for the store you wish to integrate.
- Click Extensions > My extensions.
- Click Upload extension.
- Select the Klaviyo extension from your files.
- Once the extension appears on your extension list, click Install.
- Toggle on the Klaviyo extension.
Configure the extension in Shopware
- In your Shopware store admin, navigate to Settings, and click the Extensions tab.
- Select Klaviyo. You will be brought to the Klaviyo extension settings page.
- Under Sales Channels, select the sales channel you wish to integrate with Klaviyo from the dropdown. Only integrate one sales channel with Klaviyo per Shopware store. You must also configure your settings for each sales channel individually.
- Under Interaction settings, select the cookie consent tool you’d like to use with this integration. Note that visitors who do not accept Klaviyo cookies will not be tracked by Klaviyo, nor will they be able to view Klaviyo forms. The cookie consent tool options are:
-
Nothing
If this option is selected, Klaviyo has free access to store cookies. -
Shopware Default
If this option is selected, cookie management will be implemented via Shopware's default method, given that it's turned on. To turn it on, navigate to Settings > Shop > Basic information, find the Security and Privacy section, and then toggle on Use Default Cookie Notification. -
CookieBot
If this option is selected, cookie management will be implemented by CookieBot. If you wish to select CookieBot, you must already have it installed on your Shopware store. - Consent Manager
- If this option is selected, consent management will be implemented via Consent Manager. If you wish to select Consent Manager, you must already have it installed on your Shopware store.
-
Usercentrics CMP
If this option is selected, consent management will be implemented via Usercentrics CMP. If you wish to select Usercentrics CMP, you must already have it installed on your Shopware store.
-
Nothing
- If you do not use a cookie management tool (which already blocks Klaviyo’s script from loading) and want to speed up page load times, toggle on the setting Initialize Klaviyo After First Interaction With Page. This will enable the following behavior:
- After the client starts interacting with the page, the Klaviyo scripts will be initialized.
- On subsequent page transitions, the scripts will be initialized immediately.
- To continue, obtain your public and private API keys from Klaviyo. To do this, open a new tab and log in to the Klaviyo account you want to integrate with Shopware.
- Click your account name in the lower left and select Settings.
- Select API keys.
- Click Create Private API Key. Give the key a name, then select Full Access Key and click Create. On the next page, click Copy Key.
- Paste the private API key into the corresponding setting within Shopware.
- Back in Klaviyo, click Done. Then, copy your public API key from the page.
- Paste the public API key in Shopware in the corresponding box.
- Next, pick a Klaviyo list from the dropdown for profiles who subscribe via a Shopware form to be added to.
- Select an identifier to use for Back in Stock variant field mapping. You should use the identifier that matches the one you use in your catalog.
- Toggle on all the metrics you want to sync from Shopware to Klaviyo.
- If you choose to track Back in Stock, you can customize the text color and background of the Back in Stock pop-up opening button, pop-up close button, and subscribe button. Click the square, then use the selector to choose a color, or, if you have the hex color codes for your brand’s colors, paste it in the corresponding box.
- Under Snippet names, you’ll find a reference for how to refer to different Back in Stock components in HTML. You can choose to customize them within your site code.
- Custom Field Mapping: Here, you’ll see custom fields you’ve set up in Shopware (with the technical name in gray). Any field assigned to the Customer object can be synced to Klaviyo. To sync these custom fields to Klaviyo profiles, toggle the individual field to Active. Then, under Field Name, type the corresponding name you’d like the field to have in Klaviyo.
- When you are finished, click Save.
- To run a sync of historical events, click Synchronize historical events at the top of the page.
- To run a sync of existing subscribers, click Synchronize subscribers at the top of the page.
After you initially run these syncs manually, they will run automatically going forward. The subscriber and transactional event syncs run every 5 minutes. Onsite events (Active on Site, Viewed Product, and Started Checkout) sync in real-time.
Sync your catalog feed
To complete your integration with Klaviyo, you must generate a feed of your product catalog, then sync it to Klaviyo. To generate the feed:
- Log in to your Shopware store admin.
- Click + next to Sales Channels to add a new channel.
- Next to Product comparison, click Add Sales Channel.
- Under Template, choose Klaviyo XML.
- Give the channel a name, such as Klaviyo Export.
- Under Tax collection, select Line by line (horizontal) calculation.
- Under Storefront Sales Channel:
- Select the Storefront Sales Channel this catalog is for.
- Select the Storefront domain.
- Select the currency.
- Select the language.
- Select the Customer Group.
- Under Product export:
- Name the file (e.g., klaviyo.xml).
- Select the encoding UTF-8.
- Select the file format XML.
- Leave Export variants as discrete products toggled off.
- Select the interval: 1 day.
- Leave Generate via scheduler toggled off.
- Select your dynamic product group.
- Under Status, toggle on Active.
- Click Save in the upper right.
- Scroll down and copy the Export URL, which you will use for the Klaviyo sync.
- Now that the feed is generated, you must sync it to Klaviyo. Follow the instructions to sync a custom catalog feed to Klaviyo.
Data synced from Shopware
To learn all about the data synced from Shopware and how to access it in Klaviyo, read our Shopware data reference.
Klaviyo sign-up formsKlaviyo sign-up forms
You can add Klaviyo sign-up forms to your Shopware store in order to collect subscribers. Note that only site visitors who accept Klaviyo cookies will be able to see Klaviyo sign-up forms.
How to contact supportHow to contact support
The Klaviyo Shopware 6 integration is supported by Klaviyo through Overdose Digital. If you have questions about the integration and need support, you can contact integration-specific support by filling out our form.
If you need general support for Klaviyo-related questions, contact Klaviyo support.
OutcomeOutcome
You’ve integrated Shopware 6 with Klaviyo to bring site activity, order, catalog, and subscriber data into Klaviyo. You can now start using Klaviyo for your owned marketing needs.
Additional resources