Google Analytics · Schema

TransactionData

Represents details collected when the visitor performs a transaction on the page.

AnalyticsDataGoogleMetricsReportingWeb AnalyticsMachine LearningAttribution

Properties

Name Type Description
transactionId string The transaction ID, supplied by the e-commerce tracking method, for the purchase in the shopping cart.
transactionRevenue number The total sale revenue (excluding shipping and tax) of the transaction.
transactionShipping number Total cost of shipping.
transactionTax number Total tax for the transaction.
View JSON Schema on GitHub

JSON Schema

google-analytics-transactiondata-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/TransactionData",
  "title": "TransactionData",
  "description": "Represents details collected when the visitor performs a transaction on the page.",
  "properties": {
    "transactionId": {
      "description": "The transaction ID, supplied by the e-commerce tracking method, for the purchase in the shopping cart.",
      "type": "string"
    },
    "transactionRevenue": {
      "description": "The total sale revenue (excluding shipping and tax) of the transaction.",
      "format": "double",
      "type": "number"
    },
    "transactionShipping": {
      "description": "Total cost of shipping.",
      "format": "double",
      "type": "number"
    },
    "transactionTax": {
      "description": "Total tax for the transaction.",
      "format": "double",
      "type": "number"
    }
  },
  "type": "object"
}