ListenLayer Static HTML Test Site

Comprehensive form testing scenarios for tracking script development

86
Total Pages
74
New Pages
27
Redirect Tests
11
Test Suites

Ecommerce Tracking Test Stores 5 stores

Purpose: Test different methods of sending ecommerce data to the ListenLayer SDK. Each store is a fully functional mock ecommerce site with the same products, cart, and checkout flow.

How it works: The base store emits custom events (store:view_item, store:add_to_cart, etc.). Each variant adds a tracking.js that listens for these events and translates them to the appropriate tracking format.

Events covered: All 13 GA4 ecommerce events including promotions, product views, cart actions, checkout steps, purchase, and refund.

Base Store (No Tracking)

The foundation store with no tracking implementation. Emits custom store:* events that tracking layers consume.

// No tracking.js
// Emits: window.dispatchEvent(
// new CustomEvent('store:purchase', {...})
// )
View Base Store
GA4 via SDK API

Uses ListenLayer SDK ecommerce methods with GA4-style field names (transaction_id, item_id, price).

_ll.ecommerce.purchase({
  transaction_id: 'ORD-123',
  items: [{ item_id, price, ... }]
});
View GA4 SDK Store
ListenLayer via SDK API

Uses ListenLayer SDK ecommerce methods with native field names (order_id, sku, unit_price).

_ll.ecommerce.purchase({
  order_id: 'ORD-123',
  items: [{ sku, unit_price, ... }]
});
View LL SDK Store
GA4 via gtag()

Uses standard Google Analytics gtag() calls. ListenLayer SDK intercepts these automatically.

gtag('event', 'purchase', {
  transaction_id: 'ORD-123',
  items: [{ item_id, price, ... }]
});
View gtag Store
GA4 via dataLayer

Uses GTM-style dataLayer.push() with GA4 ecommerce format. ListenLayer SDK intercepts these.

dataLayer.push({
  event: 'purchase',
  ecommerce: { transaction_id, ... }
});
View dataLayer Store
Events: view_promotion select_promotion view_item_list select_item view_item add_to_cart remove_from_cart view_cart begin_checkout add_shipping_info add_payment_info purchase refund