Google Analytics 4 in PrestaShop: from a visit to a correctly measured purchase

This is the first of five articles in Google in PrestaShop: from sales measurement to remarketing.

More people are visiting your shop, but orders are barely increasing. Are your ads attracting the wrong customers, is the offer unconvincing, or does the problem appear at payment? Session counts alone cannot answer those questions. You need product, cart and purchase data, followed by a check that the data reflects what customers actually do.

In PrestaShop, the starting point is a working connection between your shop and Google Analytics 4. Your first check should be to follow the entire purchase journey and compare the purchase event with the order in your shop’s back office. Do this before judging advertising performance using the revenue shown in Analytics.

What do you want the data to help you decide?

Open a report with a practical question: what will you change based on the result? If you are planning a category promotion, it helps to know which products people view and add to their carts. When shoppers leave after starting checkout, you can investigate delivery charges, payment options and the checkout form. Measurement will not automatically reveal why they left, but it can point you towards the area that needs attention.

Do not judge a product by views alone. A popular product page may attract traffic that rarely leads to a purchase. A less frequently viewed item might sell consistently. Purchase data makes that difference visible before you increase its advertising budget or change its position in the shop.

Connect the right shop to the right GA4 property

Check the Analytics property, its web data stream and the measurement ID beginning with G-. That ID must belong to the shop whose sales you want to analyse. With several domains, a staging site or multistore, it is easy to paste a valid ID into the wrong configuration and end up comparing data from different environments.

Enter the ID in the module settings, following the instructions for the version you use. If the shop already has an integration through another module or Google Tag Manager, establish where events are currently being sent from. Pay particular attention to purchases: two independent implementations of the same measurement make it harder to verify data and track down errors.

You can use Google Analytics 4 PRO for PrestaShop for e-commerce measurement. The module’s product listing covers events related to products, carts, checkout and purchases. When choosing your configuration, check the available features for your PrestaShop version and checkout setup.

Follow the journey from product to order

A Google tag on the page does not by itself mean that the shop sends sales data. GA4 e-commerce measurement requires events describing specific actions together with product details. Start by checking four stages:

Customer actionGA4 eventWhat to check
Views a productview_itemThe correct product and selected variant
Adds a product to the cartadd_to_cartThe product and quantity added
Starts checkoutbegin_checkoutThe contents of the cart
Makes a purchasepurchaseThe transaction ID, products, value and currency

Follow this journey for a product with combinations as well. Size, colour or capacity can change the price and the identity of the item. After selecting a different variant, check that the event still describes what the customer actually added to the cart.

Also establish when the purchase is sent. Confirmation that an order has been created and confirmation of payment from the payment provider happen at different points. If the integration records the first, do not compare its results directly with a list containing only paid orders.

Each purchase needs the correct value and its own ID

The purchase event requires transaction_id and an items array. When sending value, include currency as well. According to the purchase event specification, the value is the sum of item prices multiplied by quantities, excluding tax and shipping. Those costs have separate fields.

Suppose a customer orders two units at PLN 80 each excluding tax, with PLN 36.80 in tax and PLN 15 for shipping. The product value is PLN 160. Compare value with that amount, rather than the final PLN 211.80 payable. Also check that the product list contains a quantity of 2 and the correct unit price. This comparison helps reveal confusion between an item’s value and the total order amount.

The transaction ID must be unique for each order. GA4 uses it to deduplicate purchases in web data streams. A fixed ID or an empty string can understate the result because different purchases may be treated as repetitions of the same transaction. Do not include customers’ personal information in the ID.

The customer’s consent choice must reach the integration

During your check, record which consent options you selected. Closing the banner does not prove that Google received the right consent state. The implementation should set the default state before measurement data is sent, then update it when the user makes a choice. The Consent Mode documentation explains this sequence.

Check a fresh visit with no saved choice, acceptance, refusal and a later change of preferences. In each case, see whether the banner remembers the choice on the next page and whether the integration responds according to your configuration. In PrestaShop, Cookies PRO provides consent groups and controls when modules run. Check the banner, analytics and advertising scripts together.

Make a test purchase before assessing your ads

Start a diagnostic session in Tag Assistant and inspect events in DebugView. Select your device, open a product, add it to the cart and complete checkout. For the purchase, read the parameters rather than stopping when you see the event name.

Next, refresh the confirmation page and compare the transaction ID. Note what the integration sends again, then check how the purchase is reflected in the reports. If DebugView shows no events, also check analytics consent: Google notes that events may not appear in this view when consent has not been granted.

Once those checks are complete, you have a basis for working with advertising data. The next article explains how to use GA4 purchases as Google Ads conversions. After measurement is in place, we will also look at the product catalogue in Merchant Center and how to use it in advertising.

Comments (0)

No comments yet.
Product added to wishlist