Analytics site transaction record
post/analytics/site/transactions
Record an outcome from the project's own records (a form, booking, order, review or chat) with the source class that travelled with it. Used by the modules that hold those records.
Before you call
- Credential
Authorization: Bearer $KEY- Scope
analytics:write- Graphql
Mutation.analyticsSiteTransactionRecord- Sdk
analytics.siteTransaction.record- Cli
analytics site transaction record
Request bodyapplication/json, required
- projectstringAt most 80 characters.
- kindstringrequiredOne of: form, booking, order, review, chat.
- sourcestringOne of: ai, search, social, email, paid, referral, direct, unknown.
- itemstringAt most 80 characters.
- pagestringAt most 200 characters.
- valueMinorintegerAt least 0.
- currencystringAt most 3 characters.
- canaryboolean
- visitorstringAt most 40 characters.
Responses
- 201application/jsonSuccess
object - 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring