The purchase event occurs when a user completes the checkout process. If these purchase events are for in-app purchases, then use our in-app purchase verification with this event as well. Each SKU or line item in the shopping cart should have its own event item. Note: You can also setup the SDK to collect in-app purchase validation receipts from both the Apple® iTunes® App Store and Google Play™ Store.

  • User ID (recommended)
  • Facebook User ID (recommended if authentication with Facebook)
  • Twitter User ID (recommended if authentication with Twitter)
  • Google User ID (recommended if authentication with Google)
  • Latitude (optional)
  • Longitude (optional)
  • Altitude (optional)
  • Event Items Array of event items passed into measureEvent (recommended)
    • Event item (SKU) for a purchase should include:
      • Name – name of the item
      • Product ID – SKU
      • Unit Price – individual price of one unit
      • Quantity – number of items purchased
      • Revenue – total value of the purchase
  • Order or Receipt ID (recommended; passed as referenceID into measureEvent)
  • Revenue (recommended; passed into measureAction)
    • NOTE: You can also pass a negative purchase value to reflect transactions like refunds. This negative value will also be included in the Sum total in reporting.
  • Currency Code (recommended if Revenue set; passed into measureEvent)
Select a preferred platform.

Note: In-App Marketing does not support events or event item data for Purchase. Please see our Event Measurement and the Event Tags documentation for more information.