Google Ads
Google Ads conversion tracking
enables you to track conversions and measure the effectiveness of your Google
Ads campaigns. The destination automatically sends events to Google Ads via
gtag
function. All you need to do is install the destination, and optionally
map events to GA4's format. walkerOS takes care of loading the script and the
function calls.
Installation
npm install @walkeros/web-destination-gtag
Setup
import { startFlow } from '@walkeros/collector';
import { destinationGtag } from '@walkeros/web-destination-gtag';
const { elb } = await startFlow();
elb('walker destination', destinationGtag, {
settings: {
ads: {
conversionId: 'AW-XXXXXXXXX', // Required
currency: 'EUR', // Default currency for conversions
},
},
mapping: {
order: {
complete: {
settings: {
ads: {
label: 'purchase_conversion', // Conversion label for order complete
},
},
},
},
},
});
// Track an order complete event
elb('order complete', {
id: 'order-123',
value: 49.99,
currency: 'EUR',
items: 2,
});
Configuration reference
Property | Type | Description | More |
---|---|---|---|
conversionId* | string | Google Ads conversion ID from your Google Ads account | |
currency | string | Default currency code for conversion values |
* Required fields
Event Mapping
For custom event mapping (mapping.entity.action.settings.ads
):
Property | Type | Description | More |
---|---|---|---|
label | string | Conversion label for this specific event |
Live Demo
Try the Google Ads destination with real events:
Initialize Google Ads
Settings
Result
Track a Conversion Event
Event
Mapping
Result
💡 Need Professional Support?
Need professional support with your walkerOS implementation? Check out our services.