
Configuring Google Tag Manager for Shopware 6
18.01.2022
Do you haveaShopware 6 online shop and want to use Google Tag Manager to track all your data? To ensure you get valid data, it’s importantthat Tag Manager is integrated correctly. Only with accurate data can you gain valuable insights into your Shopware 6 shop and your users. Before we start integrating Tag Manager, you should have a basic understanding of what Google Tag Manager actually is.
First of all, enter your company name here and select the relevant country. Next, you’ll move on to configuring the container. Here, you simply need to enter the URL of your Shopware 6 shop and select the target platform ‘Web’. You’ll then be shown the Google Tag Manager Terms of Service. Please read these carefully first. If you agree to the Terms of Service, simply accept them. You will then be redirected to your Google Tag Manager container. A window titled ‘Install Google Tag Manager’ will appear.
In this window, you’ll see the two code snippets that need to be inserted. Google explains how to install these snippets in a quick guide.
Open the plugin via this link and click on ‘Edit Container IDs’. Here, enter your container ID. You can find the ID of your Google Tag Manager container in the overview of your containers. Alternatively, ifyou’re inside the container, you’ll find it in the ‘Administration’ section and in the container’s navigation bar. 

What is Google Tag Manager used for?
Google Tag Manager enables you to track specific events on your Shopware 6 online shop. By using Tag Manager, you can incorporate so-called tags into your shop. Tag Manager makes this possible without having to modify the website’s code. This means you can track all the events users carry out on your online shop without needing any coding knowledge.What data can be collected using Google Tag Manager?
With Google Tag Manager, you can track all events and the entire user behaviour on your Shopware 6 shop. For example, you can measure which pages were visited and how often. Or you can see which products users have purchased or which elements your users clicked on. You can also track any other events. However, some prior knowledge is occasionally required for advanced tag configuration. You should familiarise yourself with Google Tag Manager and your online shop. This is the only way to integrate event tracking correctly.What are tags, triggers and variables?
You can collect data via Google Tag Manager. You can then send this data to tools such as Google Analytics, Google Ads, AWIN and many more. Within Google Tag Manager itself, so-called tags, triggers and variables are used. These are needed to track an event and determine which tool the data should be sent to. I’d like to briefly explain exactly what a tag, a trigger and a variable are. A tag is the snippet of code in which you define which tool the collected data should be sent to. With a trigger , you determine when the respective tag is fired, so that the data is then collected and sent. A variable is a value that you can use, for example, to output the data. Google Tag Manager already has a number of predefined variables that you can use. However, you can define your own variables at any time, as required.How to set up Google Tag Manager for Shopware 6
Before you can start setting up tags, triggers and variables, you must create a Google Tag Manager account. You can create a free Tag Manager account via the Google Marketing Platform . When you click on ‘Get started for free’, you’ll be automatically taken to the following screen.
First of all, enter your company name here and select the relevant country. Next, you’ll move on to configuring the container. Here, you simply need to enter the URL of your Shopware 6 shop and select the target platform ‘Web’. You’ll then be shown the Google Tag Manager Terms of Service. Please read these carefully first. If you agree to the Terms of Service, simply accept them. You will then be redirected to your Google Tag Manager container. A window titled ‘Install Google Tag Manager’ will appear.
In this window, you’ll see the two code snippets that need to be inserted. Google explains how to install these snippets in a quick guide. Integrating Google Tag Manager via a Shopware 6 plugin
However, the easiest way to integrate Google Tag Manager into your Shopware 6 shop is via a plugin. We recommend the ‘Google Tag Manager & Google Analytics Enhanced E-Commerce Tracking for Shopware 6’ plugin. By using this plugin, you won’t even need to touch your online shop’s code during installation. Install the plugin in your Shopware 6 backend. You can now access the Google Tag Manager plugin via the ‘Marketing’ section in your Shopware 6 backend.
Open the plugin via this link and click on ‘Edit Container IDs’. Here, enter your container ID. You can find the ID of your Google Tag Manager container in the overview of your containers. Alternatively, ifyou’re inside the container, you’ll find it in the ‘Administration’ section and in the container’s navigation bar. 
