Search by

hryvinskyi / magento2-data-layer-frontend-ui

hryvinskyi

Storefront surface of the GA4 data layer: the Tag Manager and gtag.js loaders, the page bootstrap and its browser module (with the gtag.js destination), product list data, the endpoint that hands server-detected events to the browser, and the content security policy for Google's tag, analytics and a

Package info

github.com/hryvinskyi/magento2-data-layer-frontend-ui

Type:magento2-module

pkg:composer/hryvinskyi/magento2-data-layer-frontend-ui

Statistics

Installs: 1

Dependents: 2

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2026-10-20 14:14 UTC

This package is auto-updated.

Last update: 2026-10-20 15:11:35 UTC


README

Storefront part of the GA4 data layer: Google Tag Manager and gtag.js loaders, page events, list and click tracking, the queue endpoints and Content Security Policy entries. Plain ES modules, no RequireJS, jQuery or Knockout.

Part of the GA4 Data Layer for Magento 2. The full user guide, covering setup, every setting and how to check what the store sends, is in docs/ga4-data-layer-guide.md of hryvinskyi/magento2-data-layer.

Installation

Install all GA4 Data Layer modules with the metapackage:

composer require hryvinskyi/magento2-data-layer-pack
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento cache:flush

or this module alone:

composer require hryvinskyi/magento2-data-layer-frontend-ui

Requirements

  • PHP ~8.3.0 or ~8.4.0
  • hryvinskyi/magento2-data-layer-api
  • hryvinskyi/magento2-data-layer
  • hryvinskyi/magento2-head-tag-manager
  • Magento 2.4.x