Learn how to track sales conversion events with Google Tag Manager and Dub
sale
event happens when a user purchases your product or service. Examples include:
/dub/track
dub_
)customerExternalId
from the event dataamount
from the event data (in cents)currency
from the event data (e.g., “usd”)eventName
from the event data (e.g., “Purchase”)paymentProcessor
from the event data (e.g., “stripe”)invoiceId
from the event data (optional)leadEventName
from the event data (optional)metadata
from the event data (optional)dub_conversion
Property | Required | Description |
---|---|---|
customerExternalId | Yes | The unique ID of the customer in your system. Will be used to identify and attribute all future events to this customer. |
amount | Yes | The amount of the sale in cents. |
paymentProcessor | No | The payment processor that processed the sale (e.g. Stripe, Shopify). Defaults to “custom”. |
eventName | No | The name of the event. Defaults to “Purchase”. |
invoiceId | No | The invoice ID of the sale. Can be used as a idempotency key – only one sale event can be recorded for a given invoice ID. |
currency | No | The currency of the sale. Defaults to “usd”. |
metadata | No | An object containing additional information about the sale. |