Skip to main content

Google Gtag

Web Source code Package

The Google Gtag destination provides a unified interface for sending events to Google Analytics 4 (GA4), Google Ads, and Google Tag Manager (GTM) through a single destination configuration. Loads gtag script dynamically, initializes the gtag function with your config, handles Consent Mode v2 commands automatically, and pushes mapped events to Google services.

Where this fits

Gtag is a destination in the walkerOS flow:

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

Event
Mapping
Out

ads init

Event
Out

consent mode v2

Event
Out

ga4 init

Event
Out

ga4 with include all

Event
Mapping
Out

google ads conversion

Event
Mapping
Out

gtm data layer push

Event
Mapping
Out

gtm init

Event
Out

multiple tools simultaneous

Event
Mapping
Out

page view

Event
Out

purchase

Event
Mapping
Out

Next steps

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