Question
How does Twilio Segment map Order Completed events to Google Ads for purchase deduplication, transaction_id, and conversion value?
Product
Twilio Segment
Answer
When you send an Order Completed event to the Google Ads (Gtag) destination, Twilio Segment automatically maps your event properties to semantic parameters in Google Ads to prevent duplicate conversions and record purchase values:
-
Transaction ID and duplicate prevention: Segment maps your
properties.order_idto the Google Adstransaction_idparameter. Google Ads uses thistransaction_idto recognize unique transactions, automatically preventing duplicate conversions if your customers refresh an order confirmation page or trigger multiple events for the same purchase. -
Conversion value mapping: For
Order Completedevents, Segment maps the Google Ads conversionvalueto your payload'sproperties.revenueorproperties.total. If you send both properties in the same payload,properties.revenuetakes precedence overproperties.total.
To ensure your conversion data deduplicates and records accurately in Google Ads:
- Include a unique order identifier in
properties.order_idon everyOrder Completedevent you trigger. - Include a numeric purchase amount in
properties.revenue(orproperties.total).
Additional Information
Google Ads requires each conversion transaction to provide a unique transaction_id within your designated conversion window. If you send enhanced conversions or offline conversion adjustments in parallel with Gtag, you must use the same order_id across both data streams to ensure Google Ads properly deduplicates the records.
Below you will find references to useful documents: