generate_lead
RecommendedLog when a lead is generated, such as through a form, request, or offline lead capture.
- Platforms
- web, app
- When it fires
- You send it when the action happens.
Parameters (4)
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| currency | string | Yes* | Currency of the event value in 3-letter ISO 4217 format. Required when value is set. | USD |
| value | number | Yes* | Monetary value associated with the lead event. Currency is required when value is set. | 30.03 |
| lead_source | string | No | The source of the lead. | Trade show |
| items | Array<Item> | No | Items associated with the lead event. | - |
Example
gtag.js
gtag('event', 'generate_lead', {
currency: 'USD',
value: 30.03,
lead_source: 'Trade show',
items: [{ item_id: 'SKU_12345', item_name: 'Stan and Friends Tee', price: 9.99, quantity: 1 }],
});GTM dataLayer
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
event: 'generate_lead',
currency: 'USD',
value: 30.03,
lead_source: 'Trade show',
items: [{ item_id: 'SKU_12345', item_name: 'Stan and Friends Tee', price: 9.99, quantity: 1 }],
});