Skip to main content

Google Analytics 4 (GA4)

Web Source code Package

Google Analytics 4 (GA4) is configured within the unified gtag destination. walkerOS loads the gtag script and forwards mapped events to GA4.

Installation

Loading...
Loading...

Configuration

This destination uses the standard destination config wrapper (consent, data, env, id, ...). For the shared fields see destination configuration. Package-specific fields live under config.settings and are listed below.

Settings

PropertyTypeDescriptionMore
comoboolean | objectConsent mode configuration: false (disabled), true (use defaults), or custom mapping
ga4objectGA4-specific configuration settings
adsobjectGoogle Ads specific configuration settings
gtmobjectGoogle Tag Manager specific configuration settings

Mapping

Per-event rules under config.mapping. For the standard rule fields (consent, condition, data, batch, name, policy) see mapping.

PropertyTypeDescriptionMore
ga4objectGA4-specific event mapping
adsobjectGoogle Ads-specific event mapping
gtmobjectGTM-specific event mapping

Examples

Add to cart

A product add event is mapped to the GA4 add_to_cart event with item details and value.

Event
Mapping
Out

Google Ads init

The destination bootstraps gtag and configures a Google Ads account via its conversionId.

Event
Out

Consent Mode v2

A walker consent command with marketing and functional granted updates gtag Consent Mode v2 parameters.

Event
Out

GA4 init

The destination bootstraps gtag and configures a GA4 property via its measurementId.

Event
Out

GA4 include all

Include flattens every event section into prefixed GA4 params, exposing data, context, user, source, and event fields.

Event
Mapping
Out

Ads conversion

An order complete event is sent as a Google Ads conversion with a configured label and transaction value.

Event
Mapping
Out

GTM dataLayer push

A page view event is pushed to window.dataLayer for GTM with the mapped event name and parameters.

Event
Mapping
Out

GTM init

The destination initializes the dataLayer and pushes the gtm.js start event for a GTM container.

Event
Out

Multi-tool push

A single order event fans out to GA4, Google Ads, and GTM from one mapping rule with per-tool settings.

Event
Mapping
Out

Page view

A page view event is forwarded as a GA4 page_view event with no additional mapping.

Event
Out

Purchase

An order complete event is mapped to the GA4 purchase event with transaction details and nested product items.

Event
Mapping
Out
💡 Need implementation support?
elbwalker offers hands-on support: setup review, measurement planning, destination mapping, and live troubleshooting. Book a 2-hour session (€399)