TagSpy

generate_lead

Recommended

Log 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.
Official docs

Parameters (4)

ParameterTypeRequiredDescriptionExample
currencystringYes*Currency of the event value in 3-letter ISO 4217 format. Required when value is set.USD
valuenumberYes*Monetary value associated with the lead event. Currency is required when value is set.30.03
lead_sourcestringNoThe source of the lead.Trade show
itemsArray<Item>NoItems 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 }],
});

Also see