Install Google Tag Manager and measure conversions

Steven Veenstra
Written by Steven Veenstra
Modified on: Fri, 6 Dec, 2024 at 10:55 AM

What is Google Tag Manager

Google Tag Manager (GTM) is a free tool that allows you to manage all the tags on your website in one place. Think of tools like Google Analytics, Meta Pixel, and chat functions. With GTM, you only need to configure it once, after which you can make adjustments without altering your website's code.


Key benefits:


  • Centralized tag management: One place for everything, from conversion tracking to cookie notifications.
  • Improved loading speed: Tags are loaded asynchronously, making your website faster.
  • Free: Start without extra costs and optimize your conversions.

 

Why use GTM for conversions?

Conversions are one of the most critical metrics for your webshop. Think of:


  • The number of quotes or orders placed.
  • The total order amount.
  • Specific product information such as price, quantity, and category.


With GTM and a data layer, you can gain detailed insights into customer behavior and sales performance. PromoCat provides a ready-made GTM integration to make this as simple as possible.

 

Getting started with Google Tag Manager setup

Follow our step-by-step guide:


  1. Create an account and container via Google Tag Manager. When creating the container, select the 'web' type. Read more: https://support.google.com/tagmanager/answer/14842164?hl=en&ref_topic=15191151&sjid=1933108073395454029-EU
  2. Copy your container ID (which starts with GTM):
  3. Go to 'Settings' via your CMS (Back-end).
  4. Open the "SEO" tab.
  5. Enter your container ID (from Google Tag Manager) in the 'Google Tag Manager code' field.
  6. Check 'Ecommerce (GA4) tracking'.
  7. Click "Save and continue".

 

Now link your tags and scripts

Now that you’ve set up Google Tag Manager, you can directly link your favorite tools. Here are some helpful links to get you started:


 

How does conversion tracking work?

At PromoCat, we track conversions via a purchase event that uses a data layer. This is a package of information that is automatically activated on the thank-you page after an order or quote.

 

What is measured?

The data layer contains important parameters, such as:


  • Transaction ID: A unique identification for the purchase.
  • Order value: Including VAT, shipping costs, and any discounts.
  • Product details: Name, category, price, and quantity.


Example of a data layer:

gtag("event", "purchase", {
  "transaction_id": "177",
  "value": "368.294500",
  "tax": "63.344500",
  "shipping": "12.000000",
  "currency": "EUR",
  "items": [
     {
       "item_id": "LT90442_N0002",
       "item_name": "Rolmaat 3m - Zwart",
       "affiliation": "Order",
       "item_category": "Rolmaten",
       "price": "3.460600",
       "quantity": "100"
     }
  ]
});

 

Measuring orders vs. quotes

PromoCat distinguishes between orders and quotes through:


  • Data layer parameters: The affiliation field shows "Order" or "Offer".


With this data, you can set specific goals and conversions in Google Analytics, allowing you to precisely understand what happens in your webshop.