No image available

Free GA4 Integration

Open-source GA4 module that injects the Google Analytics 4 tag and fires e-commerce events (view_item, add_to_cart, purchase) using PrestaShop's native hooks — no external libraries.

Developed by Tecnoacquisti.com

Get This Module Free on GitHub
License: MIT Status: Active Health: Very Outdated

Info updated 1 month ago

Sources
Last commit: Jan 23, 2026
Type
Module

Info checked: Mar 2, 2026

Free GA4 Integration is an open-source PrestaShop module that adds Google Analytics 4 (GA4) tracking to your storefront without requiring external libraries or third-party dependencies. It injects the GA4 global site tag (gtag.js) and, optionally, fires standard e-commerce events using PrestaShop's native hook system, giving store owners clean, lightweight GA4 tracking with full visibility into the implementation.

  • GA4 global tag injection: Loads the GA4 gtag.js snippet via the header hook and configures it with your Measurement ID, which is set from the Back Office configuration panel.
  • E-commerce event tracking (beta): When enabled, fires view_item on product pages, add_to_cart when the cart is updated via PrestaShop's JS events, and purchase on the order confirmation page.
  • Vanilla JS option: For themes that do not load jQuery, the add_to_cart event listener can be switched to a plain Vanilla JS implementation from the Back Office settings.
  • Configurable from Back Office: Allows enabling or disabling the module output, setting the GA4 Measurement ID, and toggling e-commerce tracking and the Vanilla JS mode independently.

This module is suited for PrestaShop store owners who want a transparent, no-frills GA4 integration without black-box plugins or paid solutions. It requires a GA4 property and a valid Measurement ID. Developers who want to inspect or customize the tracking implementation will benefit from its clean, library-free codebase.

  • Reference
    freega4

  • License
    MIT
  • Status
    Active

Comments (0)

No customer reviews for the moment.
Loading...