Setup

Setting up tracking is done in a few steps on the Shopware site.

Set up account

The first step is, as always, to set up the account. Of course, you can do it manually OR you import a ready-made template with all variables, triggers & tags for Facebook, Google Ads, Google Analytics, Pinterest & Hotjar, which we have prepared especially for you 😃

You can download the template here:

To import the template, you have to go to Admin > Import Container in your Google Tag Manager container (Web) and upload the JSON file.

Make sure you change all the tracking IDs with the value "CHANGE_IT". This includes:

  • Facebook - Pixel ID

  • Google Ads - Conversion - Add to cart - Conversion ID

  • Google Ads - Conversion - Add to cart - Conversion label

  • Google Ads - Conversion - Purchase - Conversion ID

  • Google Ads - Conversion - Purchase - Conversion label

  • Google Ads - Conversion - View item - Conversion ID

  • Google Ads - Conversion - View item - Conversion label

  • Google Ads - Conversion - View item list - Conversion ID

  • Google Ads - Conversion - View item list - Conversion label

  • Google Ads - Conversion - View search results - Conversion ID

  • Google Ads - Conversion - View search results - Conversion label

  • Google Ads - Dynamic remarketing - Add to cart - Conversion ID

  • Google Ads - Dynamic remarketing - Add to cart - Conversion label

  • Google Ads - Dynamic remarketing - Purchase - Conversion ID

  • Google Ads - Dynamic remarketing - Purchase - Conversion label

  • Google Ads - Dynamic remarketing - View item - Conversion ID

  • Google Ads - Dynamic remarketing - View item - Conversion label

  • Google Ads - Dynamic remarketing - View item list - Conversion ID

  • Google Ads - Dynamic remarketing - View item list - Conversion label

  • Google Ads - Dynamic remarketing - View search results - Conversion ID

  • Google Ads - Dynamic remarketing - View search results - Conversion label

  • Google Analytics - Tracking ID

  • Hotjar - Site ID

  • Pinterest - Tag ID

Attention

Use at least Google Tag Manager version 1.2.0 so that everything works smoothly with the GTM template. Previous versions have less data for Google Tag Manager.

Enable tracking

To activate the Google Tag Manager, you have to go to Extensions > My Extensions > Apps in the admin and then at the app "Google Tag Manager" right click on ... > Configuration on the right.

Now you are in the settings for the app. Next, you need to complete the following two steps: First you have to check the checkbox Enable tracking and then you have to enter the Container ID. If you now click on the Save button, the tracking should be active.

Tip

If necessary, it might make sense to explicitly clear the store cache again if no data is transferred at first attempt.

Enable event debugging

To understand exactly which data is sent to Google Tag Manager at which point, there is the possibility to get a detailed view in the Javascript console.

Simply activate the checkbox Enable Pixel Event Debug in the Javascript Console and then press the button Save.