kowal.info

Kowal Data Layer Hyvä

Product page

Kowal Data Layer — kowal.co

Description

Keep ecommerce tracking in sync when a Hyvä storefront refreshes private customer data or replaces a product list after filtering.

For whom

For analytics implementers validating product list impressions and cart events on dynamic Hyvä pages.

Features

  • Collect pending events when Hyvä loads private content.
  • Detect updated list markers after AJAX filtering and suppress repeated impressions for identical list data.
  • Preserve the product’s list context, including position zero, when the add-to-cart form is submitted.

Installation

This component is included in Kowal Data Layer. Follow the module installation instructions. Enable the base module and its adapter, then apply the release:

bin/magento module:enable Kowal_DataLayer Kowal_DataLayerHyva
bin/magento setup:upgrade
bin/magento cache:clean

Configuration

  1. Enable the base module. In the Hyvä store view, open Stores → Configuration → Kowal → Data Layer → Hyva Compatibility and turn on Enable Hyva Integration.
  2. For a custom grid or slider, render the base module’s list marker with the displayed products and a unique list ID. For custom fetch forms, supply the product field and the data-kowal-datalayer-add-to-cart attribute.

Requirements / notes

The adapter uses the base module’s event payloads. The supported checkout path includes standard Magento REST checkout; a custom Magewire or headless flow needs its own verification.

FAQ

Why is a dynamically updated grid missing its list impression?

Inspect the HTML fragment returned after filtering. It must include an updated list marker with product data for the items actually shown.

Verify the installation

bin/magento module:status Kowal_DataLayerHyva

On a test category, inspect view_item_list before and after applying a filter that changes the products. Add the first displayed product and check its list ID and index in the cart event. Refresh private content and check for a duplicate event.