Use our ROCKETFEED CSS and save up to 20% on your Google shopping costs.

CookieFirst: Instructions for the Tracking Plugin in Shopware 6

Contents

In dieser Anleitung verbinden Sie CookieFirst mit dem Tracking-Plugin „GA4, Google & ChatGPT Ads mit Google Tag Manager & Server-Side Tagging“ für Shopware 6. Sie richten das Consent Banner ein, aktivieren den Google Consent Mode V2 und binden GA4, Google Ads und weitere Kanäle über den Google Tag Manager an.

Video Tutorial

Set up CookieFirst Consent banner

Set up CookieFirst

Log in to your CookieFirst account and start the configuration.

Add domain

When you are logged in, go to the “Basic settings” area and add your domain.

CookieFirst Domain
Click on "Basic settings" in the navigation on the left and add your domain and the "Website URL". Then click on "Save"

Consent banner styling

We recommend that you select the “Banner box” option as the banner type and set the banner position to “Centered” so that the Consent Banner is positioned in the middle of the screen. This prevents a user from overlooking the consent banner and increases the likelihood of interacting with the consent banner.

CookieFirst Consent Banner Box mittig
We recommend the banner type "Bannerbox" and the banner position "centered"
CookieFirst Consent Banner Box alles akzeptieren
We recommend changing the order of the buttons so that "Accept all" is on the far right

Add tracking services

CookieFirst Consent Banner Box Tracking Service
Click on "Scripts" in the left-hand navigation and then on "Add services"

Add Tag Manager

CookieFirst Tag Manager hinzufuegen
Enter "Tag Manager" in the search and click on "Google Tag Manager"
CookieFirst Tag Manager
Click on "Load via Google Tag Manager"
CookieFirst Tag Manager Konfigurieren
Activate "Functional cookies" and set the Tag Manager to "activate", then click on Save

Add Google Analytics

CookieFirst Google Analytics hinzufuegen
Click on "+Add service"
CookieFirst Google Analytics Consent
Search for "Google Analytics" and select "Google Analytics".
CookieFirst Google Analytics Laden ueber Tag Manager
Click on "Load via Google Tag Manager"
CookieFirst Google Analytics aktivieren
Activate "Performance cookies" and set Google Analytics to "activate" then click on save

Add Google Ads

CookieFirst Google Ads hinzufuegen
Click on "+Add service"
CookieFirst Google Ads
Search for "Google Ads" and select "Google Ads".
CookieFirst Google Analytics Laden ueber Tag Manager
Click on "Load via Google Tag Manager"
CookieFirst Google Ads konfigurieren
Activate "Advertising / Tracking" and set Google Analytics to "activate" then click on save

CookieFirst Script

Now all you need is the Api key. You can find this in the navigation under “Your embed script”

CookieFirst API Key
Click on "Your embed script" and copy the "API key"

Install and Set Up the CookieFirst Plugin

Switch to the Shopware backend and install the plugin for CookieFirst or integrate the code directly into the source code of the website.

You do not necessarily have to implement the code via the plugin, but can also execute it via the source code or directly via the Google Tag Manager.

If you implement Cookiebot via the Google Tag Manager, make sure that you have selected “Advanced Consent Mode” in our plugin, otherwise the Tag Manager will only be loaded when someone agrees to the consent, which will not happen.

CookieFirst Plugin Shopware 6
Click on "Upload extension" in the Shopware backend and select your downloaded zip file

Install and activate the app.

CookieFirst Plugin Shopware 6 konfigurieren 1
Click on "Configure"
CookieFirst Plugin Shopware 6 konfigurieren API Key
Copy your API key and click on save

Test CookieScript in the store

The setup is now complete. Delete your store cache and open your store in the frontend. Your CookieScript consent banner should now appear.

CookieFirst Plugin Shopware 6 Vorschau
The CookieScript banner should appear when you open your store

Setup Shopware Plugin | GA4 & Google Ads with Google Tag Manager

Please deactivate all other Tag Manager, GA4 and Google Ads plugins, otherwise tracking errors may occur.
Also check the analysis tab in the sales channel – nothing should be filled in here.

Install the plugin from the Shopware Store and open the plugin in Shopware Backend.

Go to the backend of your Shopware store and go to the Extensions section

Backend Einstellung Shopware6 GA4
Click on the plugin "GA4 & Google Ads with Google Tag Manager"

Setting the sales channels

Our plugin is compatible with the sales channels. You have the option of using the same settings for all sales channels or making individual settings for each sales channel. For example, it is possible to use a different Tag Manager container for each sales channel. If you have selected all sales channels, the settings are valid for all your sales channels.

Verkaufskanaele Shopware aendern
You have the option of making individual settings for each sales channel

Activate and deactivate plugin

You can choose to deactivate the plugin for certain channels, in which case no source code of the plugin will be executed on the individual sales channel.

Shopware Plugin deaktivieren
You have the option to deactivate the plugin for, this is also possible for the different sales channels

Select your Consent Manager here. The plugin will then respond to changes in consent and, by default, will not load the Tag Manager until the user accepts the consent banner.

Google Tag Manager configuration

Google Tag Manager Container ID

Copy your Google Tag Manager ID from the Google Tag Manager. The Tag Manager ID starts with GTM-XXXXXX.

Google Tag Manager ID kopieren aus der Uebersicht
You can find the Tag Manager ID in the overview
Google Tag Manager ID kopieren aus dem Container
You can also find the Tag Manager ID directly in your Google Tag Manager container.
Shopware 6 Tag Manager Container ID
Paste your Google Tag Manager ID into the field

Manual Tag Manager Code

This feature allows you to integrate a custom Google Tag Manager code, for example, for a server-side tag manager. We recommend using the default code. If this feature is disabled, the custom script will not be loaded.

Shopware 6 Plugin Serverseitges Tracking
Leave the function deactivated if you use the standard Google Tag Manager.
Serverseitiger Google Tag Manager Shopware 6
If you are using a server-side tag manager, insert your script with "" tags

Please clarify in advance with your data protection officer whether you may use the “Advanced Consent Mode”, as the legal situation is not clear.

Consent settings

Consent Banner

With the “CookieFirst – Consent Banner” setting, the plugin responds to changes in consent in CookieFirst. By default, the Tag Manager is not loaded until the user accepts the consent banner.

CookieFirst Plugin Shopware 6 Google Tag Manager Einstellung
Select "CookieFirst - Consent Banner" for the setting

Google Consent Mode V2

With the CookieFirst setting, the plugin listens to event changes in CookieFirst. Also, the Tag Manager is only loaded by default if you agree to the consent banner.

ad_user_data: ‘granted’,
ad_personalization: ‘granted’,
ad_storage: ‘granted’,
analytics_storage: ‘granted’

More information on Consent Mode V2

Deactivate Google Consent Mode V2, as CookieFirst has already implemented a Consent Mode Manager by default.

CookieFirst Plugin Shopware 6 Google Consent Mode V2
Deactivate the option, as CookieFirst itself manages the Consent Mode V2

Please make sure that you have activated Consent Mode V2 in CookieFirst!

Google Advanced Consent Mode

By default, Google Tag Manager is not loaded until the user accepts the consent banner. With Advanced Consent Mode, Google Tag Manager is loaded even without consent, with the following consent status:

“ad_storage”: “denied”,
“ad_user_data”: “denied”,
“ad_personalization”: “denied”,
“analytics_storage”: “denied”

Please check with your data protection officer in advance to determine whether you are permitted to use Advanced Consent Mode, as the legal situation is unclear.

More information

CookieFirst Plugin Shopware 6 Advanced Consent Mode
We recommend "deactivating" the Advanced Consent Mode by default

Please clarify in advance with your data protection officer whether you may use the “Advanced Consent Mode”, as the legal situation is not clear.

GA4 configuration

You have the option of selecting which tracking tools you want to use. If you deactivate a tracking tool, the DataLayer will not be loaded. If you activate a tracking tool, please make sure that you have also imported the corresponding tags in the Tag Manager.

GA4 aktivieren oder deaktivieren
Activate GA4 if you want to use Google Analytics

GA4 Net or gross prices

GA4 has specified in the documentation that the “Price” and the “Value” should be net Tax and shipping should not be included in the “Value” and “price”:
“Set value to the sum of (price * quantity) for all elements in items. Do not include shipping or tax.” Learn more

GA4 Netto Wert Einstellung
We recommend using the net value for "Value" and "Price"

Selection of marketing channels

You have the option to choose which tracking tools you want to use. If you deactivate a tracking tool, the DataLayer is not loaded. If you activate a tracking tool, please make sure that you have also imported the corresponding tag in the Tag Manager. You have the choice of the following tracking tools: Google Ads, Meta Pixel, Microsoft Advertising (bing Ads), Pinterest Ads, TikTok Ads

Marketing Pixel Tracking
Select the channels you want to track.

Setting the sales (values) for the marketing channels

You can set the turnover for the marketing channels to be with tax, without tax, with shipping or without shipping. The setting applies to all marketing channels except GA4.

Google Ads Valiue
Select your desired configuration

Contact form value (conversion value)

You can define how valuable a completed contact form is for your company. Simply enter the value.

Shopware 6 generate lead Einstellung Value
Select the channels you want to track.

Coupons configuration

You can set whether graduated prices or RRP (strike prices) should be transferred to Google Analytics as coupons.

Shopware 6 Staffelpreise als Coupons
Activate the option if you want the scale prices to be transferred as a coupon
UVP als Coupon
Activate the option if you want the RRP (strike prices) to be transferred as a coupon

UTM parameter tracking for orders

You can activate this function so that you can see the source for every order in the Shopware backend. The “campaignCode” and “affiliateCode” parameters are now automatically described with the last-click attribution. If there is a “campaignCode” or “affiliateCode” in the URL, these will not be overwritten.

UTM Parameter Tracking
Activate the option if you want to see where the user came from for each order
UTM Parameter Tracking Anischt Einblenden
Show the view in "Orders" "Overview" at the top right of the "Burger navigation" "Affiliate code" and "Campaign code"

Google Tag Manager environment

If you use your own Google Tag Manager environment—for example, for your testing system—you can enter it here.

Google Tag Manager Umgebung
Insert the URL of your Tag Manager environment here

Download the container templates

You can download the respective container for each ad channel. All settings have already been made here.

All you have to do is enter your personal Pixel ID under Variables.

GA4 Import Google Analytics 4 Container

Download the GA4 container.

Open your Google Tag Manager container

Google Tag Manager Container importieren
Open your container and click "Management."
Google Tag Manager Tracking Container importieren
Click on "Import container" in the Container column
Google Tag Manager Container ID auswaehlen
Click on "Select container file" and select the file with the extension .json
GA4 Container Import Start
Select "Default Workspace" or your own workspace. Click "Merge" and "Rename conflicting tags, triggers, and variables."

If you click “Overwrite”, all your other tags will be removed.
If you want to keep the existing tags, click “Merge”.

GA4 Measurement ID

Now you just need to enter your GA4 measurement ID. You can find this in your GA4 account. Log in to Google Analytics 4.

Google Analytics GA4 EInstellung
Switch to the account you want to set up and click on "Settings" at the bottom left
Google Analytics 4 Datenstreams
Open "Data collection and ...." and click on "Data streams" and open your data stream
Google Analytics 4 Steam ID kopieren
Copy your GA4 measurement ID

Now switch back to the Tag Manager and open the Variables area

GA4 Mess ID Tauschen
In the Tag Manager overview, click on "Variables" and then on the variable "01-GA4 Mess ID"
GA4 Variable Mess ID
In the Tag Manager overview, click on "Variables" and then on the variable "01-GA4 Mess ID"

Now all that remains is to publish the container so that it can be displayed to users on the website.

Google Tag Manager veroeffentlichen
Click "Send" in the upper-right corner to publish your container.
Google Tag Manager Version veroeffentlichen
You can optionally enter a version name. Click on the "Publish" button at the top right

Import Google Ads Container

1

Download the Google Ads Container.

2

Open your container in Google Tag Manager.

3

Click “Administration” at the top.

4

In the “Container” column, click “Import Container.”

5

Click “Select Container File” and select the downloaded file with the .json extension.

6

Select “Default Workspace” or your own workspace. Click “Merge” and “Rename conflicting tags, triggers, and variables.”

Important: If you select “Overwrite,” all other tags in your container will be removed. To keep existing tags, select “Merge.”

Set the Conversion ID and Conversion Label

Now replace two more variables: the conversion ID and the conversion label for the purchase event.

1

Open Google Ads.

2

In the left-hand navigation pane, click “Target Campaign” and then “Summary.” Open your purchase conversion or create a new one.

3

Expand the “Tag Setup” section.

4

Select the “Use Google Tag Manager” option.

5

Copy the “Conversion ID” and the “Conversion Label.”

Note: If you use Enhanced Conversions, select the “Via Google Tag Manager” option instead of “Google Tag.”

6

Go back to Google Tag Manager.

7

Click “Variables” and then click the variable “02-01-Conversion-ID.”

8

Enter your conversion ID from Google Ads and click “Save” in the upper-right corner.

9

Open the “02-02-Conversion-Label-Purchase” variable, enter your conversion label, and click “Save.”

Publish a container

Finally, publish the container so that the tags are displayed in your store.

1

Click “Send” in the upper-right corner.

2

Optionally, enter a version name and click “Publish” in the upper-right corner.

Import Facebook Pixel Container

Download the Facebook Pixel Container for the Google Tag Manager.

Open your Google Tag Manager container

Google Tag Manager Container importieren
Open your container and click "Management."
Google Tag Manager Tracking Container importieren
Click on "Import container" in the Container column
Google Tag Manager Container ID auswaehlen
Click on "Select container file" and select the file with the extension .json
Facebook Pixel Shopware 6 Tag Manager Import
Select "Default Workspace" or your own workspace. Click "Merge" and "Rename conflicting tags, triggers, and variables." Then click "Add to Workspace."

If you click “Overwrite”, all your other tags will be removed.
If you want to keep the existing tags, click “Merge”.

Facebook Pixel ID

Now you just need to enter your Facebook Pixel ID. You can find this in your Meta account. Log in to the Meta Business Suite.

Facebook Pixel Shopware 6 Pixel ID
Open your Business Suite and copy the Facebook Pixel ID

Now switch back to the Tag Manager and open the Variables area.

Facebook Pixel Shopware 6 Tag Pixel Id eintragen
In the Tag Manager overview, click on "Variables" and then on the variable "04-Meta Pixel ID"
Facebook Pixel Shopware 6 Tag Pixel Id einfuegen
Insert your Facebook Pixel ID and click on save

Now all that remains is to publish the container so that it can be displayed to users on the website.

Facebook Pixel Shopware 6 Tag Tag Manager Container veroeffentlichen
Click "Send" in the upper-right corner to publish your container.
Facebook Pixel Shopware 6 Tag Tag Manager Container Versionnamen
You can optionally enter a version name. Click on the "Publish" button at the top right

Import Microsoft Ads UET tag

Download the Microsoft Ads Container for the Google Tag Manager.

Open your Google Tag Manager container

Google Tag Manager Container importieren
Open your container and click "Management."
Google Tag Manager Tracking Container importieren
Click on "Import container" in the Container column
Google Tag Manager Container ID auswaehlen
Click on "Select container file" and select the file with the extension .json
Microsoft Ads Shopware 6 UET Tag
Select "Default Workspace" or your own workspace. Click "Merge" and "Rename conflicting tags, triggers, and variables." Then click "Add to Workspace."

If you click “Overwrite”, all your other tags will be removed.
If you want to keep the existing tags, click “Merge”.

Microsoft UET Tag ID

You can now enter your Microsoft UET Tag ID. You can find this in your Microsoft Ads account.

Microsoft Ads Shopware 6 UET Tag ID
Open your UET tag and copy the ID. If none appears here, create a new UET tag

Create purchase/purchase conversion Microsoft UET tag

Microsoft Ads Shopware 6 UET Tag Purchase Conversion
Open your UET tag and copy the ID. If none appears here, create a new UET tag
Microsoft Ads Shopware 6 UET Tag Purchase Conversion Website
Select "Website" as an option and click on "Next"
Microsoft Ads Shopware 6 UET Tag Purchase Conversion Zieltyp
Select "Buy" as the target type. Select "Result" as the interaction type and click next.
Microsoft Ads Shopware 6 UET Tag Purchase Conversion Ereignisziel
Assign a conversion name. For income, you should select the option ".... may vary...". Then select your currency and click on "Next"
Microsoft Ads Shopware 6 UET Tag Purchase erweiterte Conversions
We recommend that you activate "Extended conversions". You must then click on accept and then on "Save and continue"
Microsoft Ads Shopware 6 UET Tag Purchase Tagging einrichten
Click on the option "Yes, the UET tag has been..." and then on "Save and continue"
Microsoft Ads Shopware 6 UET Tag Purchase Einrichtung Erweiterte Conversions
Here you just have to click on "Next"
Microsoft Ads Shopware 6 UET Tag Purchase Einrichtung Tag installieren
Click on "Manual installation" and then on Next
Microsoft Ads Shopware 6 UET Tag Purchase Einrichtung Tag installieren inline 1
IMPORTANT: Write "pruchase" in lower case in the Action field! Select "Event on inline action". Then click on "Save and continue"
Microsoft Ads Shopware 6 UET Tag Purchase Fertigstellung 1
You have now successfully created the conversion.

Enter Microsoft UET Tag ID in Tag Manager

Now switch back to the Tag Manager and open the Variables area.

Microsoft Ads Shopware 6 UET Tag in Tag Manager eintragen
In the Tag Manager overview, click on "Variables" and then on the variable "03-UET-Tag ID Microsoft Ads"
Microsoft Ads Shopware 6 UET Tag Variable
Insert your Microsoft UET ID and click on save

Now all that remains is to publish the container so that it can be displayed to users on the website.

Microsoft Ads Shopware 6 Tag Manager Veroeffentlichen
Click "Send" in the upper-right corner to publish your container.
Microsoft Ads Shopware 6 Tag Manager veroeffentlichen Version
You can optionally enter a version name. Click on the "Publish" button at the top right

Import TikTok Pixel Container

Download the TikTok Pixel Container for the Google Tag Manager.

Open your Google Tag Manager container

Google Tag Manager Container importieren
Open your container and click "Management."
Google Tag Manager Tracking Container importieren
Click on "Import container" in the Container column
Google Tag Manager Container ID auswaehlen
Click on "Select container file" and select the file with the extension .json
TikTok Pixel Container Import Google Tag Manager 1
Select "Default Workspace" or your own workspace. Click "Merge" and "Rename conflicting tags, triggers, and variables." Then click "Add to Workspace."

If you click “Overwrite”, all your other tags will be removed.
If you want to keep the existing tags, click “Merge”.

TikTok Pixel ID

Now all you have to do is enter your TikTok Pixel ID. You can find it in your TikTok account: To do so, log in to TikTok Ads Manager.

TikTok Pixel ID TikTok Ads Manager
Open your TikTIok Ads Manager and copy the TikTok Pixel ID

Now switch back to the Tag Manager and open the Variables area.

TikTok Pixel ID TikTok Ads Manager einfuegen in Google Tag Manager
In the Tag Manager overview, click on "Variables" and then on the variable "06-TikTok Pixel ID"
TikTok Pixel ID TikTok Ads Manager einfuegen in Google Tag Manager speichern
Insert your TikTok Pixel ID and click save

Now all that remains is to publish the container so that it can be displayed to users on the website.

TikTok Pixel ID Tag Manager Veroeffentlichen
Click on the "Send" button at the top right and publish your container
TikTok Pixel ID Tag Manager Veroeffentlichen Version
You can optionally enter a version name. Click on the "Publish" button at the top right

Import Pinterest Pixel Container

Download the Pinterest Pixel Container for the Google Tag Manager.

Open your Google Tag Manager container

Google Tag Manager Container importieren
Open your container and click on "Administration"
Google Tag Manager Tracking Container importieren
Click on "Import container" in the Container column
Google Tag Manager Container ID auswaehlen
Click on "Select container file" and select the file with the extension .json
Pinterest Ads Shopware Google Tag Manager Import
Select "Default Workspace" or your own workspace. Click "Merge" and "Rename conflicting tags, triggers, and variables." Then click "Add to Workspace."

If you click “Overwrite”, all your other tags will be removed.
If you want to keep the existing tags, click “Merge”.

Pinterest Pixel ID

Now all you have to do is enter your Pinterest Pixel ID. You can find these in your Pinterest account. Log in to the Pinterst Business Hub.

Pinterest Ads Pinterest Pixel ID
Open the Pinterest Business Hub and copy the Pinterest Tag ID.

Now switch back to the Tag Manager and open the Variables area.

Pinterest Ads Pinterest Pixel ID Variable 2
In the Tag Manager overview, click on "Variables" and then on the variable "05-Pinterest Tag ID"
Pinterest Ads Pinterest Tag ID Google Tag Manager
Insert your Pinterest Tag ID and click on save

Now all that remains is to publish the container so that it can be displayed to users on the website.

Pinterest Ads Tracking Tag Manager
Click on the "Send" button at the top right and publish your container
Pinterest Ads Tracking Tag Manager veroeffentlichen
You can optionally enter a version name. Click on the "Publish" button at the top right

We'll set up tracking together with you

Free via video call: We’ll walk you through the setup step by step and check the configuration right in your store.

Format

Teams or Zoom meeting

Costs

Free

“I just had the free design consultation with Mr. Kern. Now there’s someone who knows what he’s doing.”

Henrik W., Review on the Shopware Store