Shopware Extensions
English
English
  • Shop Studio Docs
  • Extensions
    • Pixel Your Shop
      • Installation
      • Tracking
        • Google Analytics Tracking
        • Google Ads Tracking
        • Google Tag Manager
        • Facebook Tracking
        • Microsoft Advertising
        • Instagram Tracking
        • Pinterest Tracking
        • Hotjar Tracking
      • Cookie Consent
        • Shopware
        • Cookie Bot
      • Development
        • Debug
        • Change default events
      • Need help?
    • Resend order confirmation mail
      • Installation
      • Resend email
      • Need help?
    • Recipes
      • Installation
      • Setup
      • Create & publish recipes
      • Set up PDFs
      • Need help?
    • Blog/Magazine
      • Installation
      • Setup
      • Create & publish posts
      • Need help?
    • Advanced Search (Blog + Recipes)
      • Installation
      • Need help?
    • Hotjar
      • Installation
      • Setup
      • Need help?
    • Google Tag Manager
      • Installation
      • Setup
      • Events
      • Need help?
    • Personalized customer greeting
      • Installation
      • Setup
      • Change Snippets
      • Need help?
    • Google Ads
      • Installation
      • Setup
      • How to get Conversion ID and label
      • Dynamic remarketing setup
      • Conversions und events
      • Need help?
    • Back in stock notification
      • Installation
      • Setup
      • Common sources of errors
      • Need help?
    • Microsoft Advertising
      • Installation
      • Need Help?
    • Tree per order
      • Installation
      • Setup
        • TreeMates as provider
        • Custom provider
      • How it works
        • TreeMates as provider
        • Custom provider
      • Export
      • Common sources of error
      • Need help?
    • Health Check
      • Installation
      • Setup
      • Program additional checks
      • Need help?
    • Nutrition Labeling
      • Installation
      • Setup
      • Need help?
    • Product Mix Configurator
      • Installation
  • tracking
Powered by GitBook
On this page
  • Set up account
  • Activate tracking
  • Connect accounts
  • Enable tracking events

Was this helpful?

  1. Extensions
  2. Pixel Your Shop
  3. Tracking

Google Tag Manager

PreviousGoogle Ads TrackingNextFacebook Tracking

Last updated 10 months ago

Was this helpful?

The tracking setup works via the Google Tag Manager Pixel and is done in a few steps.

Tip

You can configure the following steps per sales channel & language individually, which ultimately gives you more tracking flexibility.

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 find the template here. If necessary you have to put the content of the page into a separate .json file (e.g. template.json): For Shopware 6.6 and newer:

For Shopware 6.5 and older:

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 ID

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

  • Google Ads - Conversion - Begin checkout - Conversion label

  • Google Ads - Conversion - Purchase - Conversion label

  • Google Ads - Conversion - View item - Conversion label

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

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

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

  • Google Ads - Remarketing - Purchase - Conversion label

  • Google Ads - Remarketing - View item - Conversion label

  • Google Analytics - Tracking ID

  • Hotjar - Site ID

  • Pinterest - Tag ID

Attention

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

Activate tracking

To activate the Google Tag Manager Pixel you have to go to "Your sales channel" > Pixel Your Shop > Google Tag Manager in Admin and activate the Opt-In switch.

Connect accounts

After activation, you simply need to add your Google Tag Manager Container ID. Note that you must can also connect multiple accounts at the same time by simply placing multiple IDs in the same input.

Enable tracking events

By default, all tracking events are disabled. To activate the individual events you simply have to activate the corresponding switch. If you do not know exactly which events you need, we recommend simply activate all tracking events. Collecting more data can never hurt!

181KB
gtm-template-2.0.0.json
166KB
gtm-template-1.5.0.json
Save the content of the file as gtm-template.json