Skip to content
Contact
  1. Home
  2. xt:Commerce agency
  3. xt:Commerce tracking: Google Analytics 4 and cookie consent
Setup

xt:Commerce tracking: Google Analytics 4 and cookie consent

Without reliable tracking you do not know which advertising brings in orders. We set up Google Analytics 4 and cookie consent in your xt:Commerce shop so that the two work together.

  • Google Analytics 4 with purchase data
  • Tracking only after consent
  • Cost estimate before we start
01

xt:Commerce and Google Analytics 4: figures you can rely on

Without reliable tracking you do not know which ad, which newsletter and which channel brings in orders. You then allocate your advertising budget by gut feeling.

At the same time, tracking services may only load once your visitors have given their consent. If you set the two up separately, you end up with either incomplete figures or services that run without consent. We set up tracking and consent in your xt:Commerce shop so that they work together.

  • Figures that are right

    We check that orders are counted completely and not twice. That gives you a sound basis for deciding on your advertising budget.

  • Consent and tracking aligned

    Services only load once your visitors have agreed. We set up tracking and cookie consent together.

  • Purchase data in your analytics

    Product views, basket and purchase arrive in Google Analytics 4. You see at which point visitors drop out.

  • Extendable as needed

    We connect further events or additional services as a custom extension.

02

What we set up

The setup includes these services:

  • Google Analytics 4 with e-commerce data: Product views, basket and purchase arrive in your analytics.
  • Conversion tracking for your advertising channels: Orders are attributed to the channels you advertise on.
  • Cookie consent: Services only load once your visitors have agreed.
  • Check of the order data: We check that orders are counted completely and not twice.

The result is a measurement you can reconcile with the orders in your shop.

Before the setup we carry out a review: which services does your shop load today, where are they embedded and what arrives in your analytics? This shows what has to be set up from scratch and what only needs correcting. We tell you the effort before we start.

03

Switching to Google Analytics 4 in xt:Commerce

For xt:Commerce, the plugin xt_ga4 replaces the earlier plugin xt_googleanalytics. It requires xt:Commerce version 5.1.0 or later and PHP 7.4.

If your shop still works with the old plugin, we take care of the switch and then check that the purchase data arrives in Google Analytics 4. If it does not meet the requirements, we first bring it up to the required version with an update or a PHP update.

04

Cookie consent: tracking only after consent

In many shops, scripts have found their way directly into the template over the years: a pixel for a campaign, a chat, an embedded video. Services like these often load without regard to consent.

We check which services your shop actually loads and tie them to the cookie consent. If a visitor declines, the service stays off. If they agree, measurement is correct. You can read which other requirements we implement technically under legal requirements in the shop. We do not give legal advice.

05

When the figures do not match the orders

If the orders in your analytics differ markedly from those in the shop, the cause usually lies in how tracking is embedded. Typical causes are:

  • a tracking script that is embedded twice
  • an order confirmation page that is not reached with certain payment methods
  • services that no longer load after an update or a template change

We go through the checkout with test orders and fix the cause. If you then want to use the figures to improve the checkout, our conversion optimisation helps.

06

Custom measurement and further services

If further events are to be measured or other services connected, we extend the tracking as a custom plugin. You will find ready-made plugins for tracking and consent at a fixed price in our plugin shop.

We are not a marketing agency: analysing the data and planning your campaigns stays with you. We supply the technical basis for it. As an official xt:Commerce Solution Partner since 2015, we tell you the scope before we start. Write to us via our contact page.

Process

How we work together

  1. Review

    We check which tracking services your shop loads today and what arrives in your analytics.

  2. Estimate

    You receive an overview of the steps required with the effort for each.

  3. Setup

    We set up Google Analytics 4, conversion tracking and cookie consent.

  4. Check

    We use test orders to check that the data is transmitted completely and only after consent.

Shop of our client Gorilla Sports France SARL
What our clients say
We commissioned the 4TFM e-commerce agency to develop a payment plugin for the French market […]. The result was very satisfying. We can recommend Mr Scherbaum and his team without reservation.
Nicolai Tolski, Directeur généralGorilla Sports France SARL
See all client references →
FAQ

Frequently asked questions

Which plugin do I need for Google Analytics 4 in xt:Commerce?

For xt:Commerce, the plugin xt_ga4 replaces the earlier plugin xt_googleanalytics. It requires xt:Commerce version 5.1.0 or later and PHP 7.4. We take care of the switch and the setup.

My shop does not meet the requirements. What now?

Then we first bring the shop up to the required version with an update or a PHP update. We tell you the effort for that together with the tracking setup.

Why do the figures in Analytics differ from the orders in my shop?

A certain difference is normal, because only visitors who have given consent are measured. Larger differences are often caused by scripts that are embedded twice or by an order confirmation page that is not reached with every payment method. We look for the cause in your shop.

Do you also advise on analysis and advertising strategy?

No. We provide the technical basis, which means making sure the data is recorded correctly and in line with consent. Analysing it and planning your campaigns stays with you or your marketing agency.

What does it cost to set up tracking?

The effort depends on the shop version, the template and the number of services. You know it before we start.