Google Analytics GA4

Measure Store Performance with Full Google Analytics GA4 E-Commerce Tracking

Price: €0.00
Tax included

Add Google Analytics 4 (GA4) to your PrestaShop store — completely free. This module implements GA4 via the official gtag.js library with enhanced ecommerce tracking including purchase events with full order data, product-level parameters, and automatic page view tracking across your entire store.

GA4 is Google's current analytics platform, replacing Universal Analytics. It uses an event-based data model that provides deeper insights into customer behavior across devices and sessions. With Consent Mode v2 support built in, this module is ready for the privacy-first future of analytics.

  • GA4 ecommerce events — purchase event with items array, revenue, tax, shipping, and transaction ID
  • User ID tracking — sends logged-in customer IDs to GA4 for cross-device analysis
  • Google Consent Mode v2 — compatible with the latest consent framework required by Google
  • gtag.js implementation — uses Google's recommended modern tracking library
  • Zero cost — both this module and Google Analytics 4 are completely free
  • PrestaShop 1.7 – 9.x compatible — works across all modern PrestaShop versions
Product availability: Instant download after purchase
Share
2 viewed
1 watching now

Google Analytics 4 for PrestaShop — The Foundation of Data-Driven Ecommerce

Google Analytics 4 is Google's analytics platform, built on an event-based model that provides a fundamentally different (and more powerful) approach to understanding your website visitors compared to the now-retired Universal Analytics. GA4 uses machine learning to fill data gaps, works across devices and platforms, and is designed from the ground up for a world where cookies are increasingly restricted.

For PrestaShop store owners, GA4 is non-negotiable. It's the analytics backbone that tells you where your traffic comes from, how visitors behave on your store, which products and categories perform best, and ultimately where your revenue is being generated. This module installs GA4 properly, with ecommerce events and User ID tracking, at zero cost.

What the Module Implements

Core Tracking via gtag.js

The module uses Google's official gtag.js library — the recommended implementation method for GA4. The tracking snippet is loaded asynchronously in the <head> section of every page, ensuring:

  • Every page view is captured with full URL, page title, and referrer data
  • Google's enhanced measurement features (scroll tracking, outbound clicks, site search, file downloads) work automatically
  • The global gtag() function is available for any additional custom events you want to fire

Ecommerce Purchase Tracking

On the order confirmation page, the module fires a GA4 purchase event with the complete ecommerce data structure:

  • transaction_id — PrestaShop order reference for deduplication
  • value — total order amount
  • tax — tax amount
  • shipping — shipping cost
  • currency — order currency code (EUR, USD, GBP, etc.)
  • items[] — array of purchased products, each with item_id, item_name, price, quantity, and item_category

This data populates GA4's ecommerce reports, giving you revenue by source/medium, product performance, and conversion funnel analysis out of the box.

User ID Tracking

When a customer is logged in, the module sends their PrestaShop customer ID as a User ID to GA4. This enables cross-device and cross-session analysis — you can see the full journey of a customer who first visits on mobile, then returns on desktop to purchase. Without User ID, these would appear as two separate users in your reports.

Google Consent Mode v2

As of March 2024, Google requires Consent Mode v2 for any site using Google services and collecting data from EEA users. This module is compatible with Consent Mode v2, meaning it can:

  • Load gtag.js with default consent states (denied for analytics and advertising until the visitor consents)
  • Update consent states dynamically when the visitor interacts with your cookie consent banner
  • Enable Google's conversion modeling — even when a visitor doesn't consent, Google can model conversions using machine learning, preserving some campaign optimization data while respecting privacy

This is not optional — Google has stated that without Consent Mode v2, remarketing audiences and conversion data from EEA users will be significantly degraded. This module has you covered.

How GA4 Helps Your Store

  • Traffic source analysis — know exactly which channels (organic search, social media, paid ads, email, referrals) drive revenue, not just visits.
  • Product performance — identify your best-selling and highest-revenue products, and understand how product views convert to purchases.
  • Audience insights — understand your visitors' demographics, interests, devices, and geographic distribution.
  • Funnel analysis — track the path from landing page to purchase and identify where potential customers drop off.
  • Integration with Google Ads — GA4 audiences can be shared directly with Google Ads for remarketing and campaign optimization.
  • Predictive metrics — GA4's machine learning provides "purchase probability" and "churn probability" metrics that help you focus marketing on the right segments.

Technical Details

  • Async loading — gtag.js loads asynchronously and never blocks page rendering. Google's CDN ensures fast delivery worldwide.
  • No jQuery dependency — pure JavaScript implementation compatible with any theme.
  • Multistore compatible — configure different GA4 Measurement IDs for different shops.
  • Server-side compatible — if you run a GA4 server-side tagging container, you can point the gtag.js requests to your own endpoint.
  • Debug mode — works with GA4 DebugView for verifying events in real-time during setup.

Setup

  1. Create a GA4 property at analytics.google.com and set up a Web data stream.
  2. Copy your Measurement ID (format: G-XXXXXXXXXX).
  3. Install this module, paste the Measurement ID, and save.
  4. Verify data flow using GA4's Realtime report or DebugView.

Why is this module unique?

  • Completely free — both the module and Google Analytics 4 cost nothing
  • Full ecommerce purchase event with items array, revenue, tax, shipping, and transaction ID
  • User ID tracking for cross-device customer journey analysis
  • Google Consent Mode v2 ready — future-proof for EU privacy requirements
  • gtag.js implementation following Google's latest best practices
  • Works with GA4 DebugView for easy verification
  • Compatible with PrestaShop 1.7 through 9.x

Use Cases

  • Revenue attribution — understand which traffic sources and campaigns actually generate sales, not just visits.
  • Google Ads integration — share GA4 audiences with Google Ads for smarter remarketing and bidding optimization.
  • Product analytics — identify top-performing products, underperforming categories, and optimize your catalog based on real data.
  • Customer journey mapping — with User ID tracking, see the full multi-session, multi-device path to purchase.
  • Conversion funnel optimization — pinpoint exactly where in the shopping process visitors drop off and focus your optimization efforts.
  • Regulatory compliance — Consent Mode v2 ensures your Google data collection meets EU requirements while preserving campaign performance through conversion modeling.
  • Reference
    mprgoogleanalytics
  • In stock
    999 Items
  • PrestaShop Compatibility
    PS 1.6 – 9.x
  • Pricing Model
    One-time Purchase
  • Module Type
    Front-office
  • GDPR Relevant
    Yes
  • Business Goal
    Marketing & Retargeting
  • External Account Needed
    Yes
  • Module Complexity
    Lightweight Widget
  • Customer Journey Stage
    Attract Visitors
  • Works With Platform
    Google Services

Google Analytics

Google Analytics tracking integration for PrestaShop.

Features

  • Google Analytics tracking code integration
  • Purchase event tracking on order confirmation
  • Enable/disable toggle without uninstalling

Compatibility

  • PrestaShop 1.6 / 1.7 / 8.x / 9.x

Installation

  1. Upload the module ZIP via Back Office > Modules
  2. Enter your Google Analytics Tracking ID
  3. Enable the module

Development

yarn install
yarn release    # Build release ZIP

License

Proprietary - mypresta.rocks

v1.3.0 — 2026-01-10

  • PrestaShop 9 Hummingbird theme compatibility for GA4 data streams
  • Server-side measurement protocol event validation
  • Optimized gtag.js loading with partytown worker thread support
  • Debug mode with GA4 DebugView real-time event inspection
  • Fixed enhanced measurement conflict with manual event tracking

v1.2.0 — 2025-06-25

  • Full PrestaShop 8.x compatibility with updated admin controllers
  • Google Consent Mode v2 integration with granular storage signals
  • Customer group exclusion from GA4 measurement
  • Async/deferred gtag.js loading for improved page speed scores
  • Added cross-domain measurement linking support

v1.1.0 — 2024-10-30

  • Enhanced ecommerce events: view_item, view_item_list, select_item, and begin_checkout
  • Dynamic remarketing parameters with item-scoped custom dimensions
  • Configurable GA4 event parameters and user properties
  • Added data stream filtering by hostname
  • Search term tracking via view_search_results event

v1.0.0 — 2024-06-12

  • Initial release with Google Analytics GA4 integration
  • Automatic page_view event with enhanced measurement
  • Add-to-cart event (add_to_item) with product-level data
  • Purchase event with full ecommerce transaction payload
  • Back office configuration for GA4 Measurement ID
0.0
0 reviews
5 ★
0
4 ★
0
3 ★
0
2 ★
0
1 ★
0

No reviews yet. Be the first to leave a review!

Write a Review

Rate specific aspects (optional)
Quality
Price / Quality
Stability
Compatibility
Support
30 days return right
Easy return - no questions asked
Plug & Play Modules
Install, set up and take profit
Dedicated Support First
Priority Help & Satisfaction Over Sales

More From This Category

Loading...
Back to top