tl;dr
Setting up the Klar Pixel for Shopware 6 involves four steps:
Add the Klar Pixel datasource in Klar and configure domain validation
Validate your domain via two DNS records with your hosting provider
Install the Klar extension in your Shopware 6 store and connect it to the pixel
Add URL parameters to your ad accounts so conversions and costs can be matched
⚠️ Important: This guide uses the Klar Shopware extension together with Shopware's native consent manager. If you use a third-party consent tool (CookieBot, UserCentrics, etc.), use the Klar Pixel via Google Tag Manager instead.
If you have multiple Shopware 6 stores, create a separate Klar Pixel datasource for each.
To power our fully integrated attribution solution, you need to configure the Klar Pixel datasource in Klar and implement a tracking script on your site. This should only take a few minutes.
1️⃣ Add the Klar Pixel datasource
In the left sidebar, go to Store Configurator → Data Sources and click Add New Data Source
Select Klar Pixel
Enter a name (e.g.
Klar Pixel DE)Select Other as your Shop System (Shopware 6 uses a custom frontend — do not select Shopify)
Choose your tracking type:
Domain Validated Pixel (recommended) — We strongly recommend using a domain-validated tracking script as these cannot be blocked by the browser
Basic Tracking Script — a third-party script, simpler to set up but less accurate
If you selected Domain Validated Pixel, enter your domain (exclude
https://andwww.), then click ConfigureIf you selected Basic Tracking Script, skip ahead to Step 3
2️⃣ Validate your domain (Domain Validated only)
Klar provides two DNS records to copy and paste into your hosting provider's DNS settings.
⚠️ WebGo, All Inkl, Strato users: When adding the records, remove your domain from the Name field. Only enter the numeric prefix.
Correct format:
Record type | Wrong ❌ | Correct ✅ |
CNAME |
|
|
CNAME IPv4 |
|
|
Copy and paste both DNS records using the copy icon next to each field
Click Validate DNS Records
⚠️ Note: DNS propagation can take a few hours to 2 days. Once verified, a green check icon appears next to each record. If you need help, reach out via the support chat — we're happy to assist.
Once both records are validated, the Tracking Script and your Pixel Domain appear in the datasource. Keep this tab open — you'll need the Pixel Domain in Step 3.
3️⃣ Install the Klar extension in Shopware 6
This only applies to you if you're using the Shopware 6 consent manager. If you're using any other consent management provider such as CookieBot, UserCentrics etc. you need to setup the Klar Pixel via Google Tag Manager.
Download the Klar Shopware 6 extension: Download Klar Pixel Attribution extension (.zip)
In your Shopware 6 Admin, go to Extensions → My Extensions (Shopware guide: My Extensions)
Click Upload Extension and upload the
.zipfile you downloadedActivate the Klar Pixel extension
Go back to Klar → Store Configurator → Data Sources → open your Klar Pixel datasource → copy the Pixel Domain (the highlighted part of the tracking script URL)
In your Shopware 6 Admin, open the Klar Pixel extension settings and paste the Pixel Domain into the Klar Pixel Domain field
🚨 Rebuild your Shopware 6 storefront. This step is required — without it the extension will not be active. Log in to your server via SSH and run:
bin/build-storefront.sh
4️⃣ Add the Data Privacy snippet
Add the Klar Data Privacy snippet to your privacy policy. You'll find a German and English version inside the Klar Pixel datasource under the Data Protection Snippet section.
5️⃣ Implementing Klar URL Parameters
To ensure that conversions and costs can be matched as accurately as possible, you need to implement the pre-defined Klar tracking codes in your ad accounts.
Here are guides on how to do that for each marketing channel:
What happens next?
From now on, Klar tracks visitors and purchase activity on your Shopware 6 store. Data will appear in your Attribution reports from the next day onwards — historical data before the script was added is not available.
🎉 Your Klar Pixel is live — you're ready to start using the Attribution reports!






