ga_send_purchase
Send ecommerce purchase events to Google Analytics with transaction details and item data, enabling accurate tracking of completed purchases.
Instructions
Send an ecommerce purchase event to Google Analytics.
Standard event for tracking completed purchases with transaction details and items.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"transaction_id": "<transaction_id>",
"value": "<value>",
"currency": "<currency>",
"items": "<items>"
},
"name": "ga_send_purchase"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tax | No | Tax amount | |
| items | Yes | Purchased items | |
| value | Yes | Total purchase value | |
| coupon | No | Coupon code used | |
| user_id | No | ||
| currency | Yes | Currency code (e.g., USD, EUR) | |
| shipping | No | Shipping cost | |
| client_id | No | ||
| affiliation | No | Store or affiliation | |
| transaction_id | Yes | Unique transaction ID | |
| user_properties | No | User properties (e.g., {subscription_tier: {value: "premium"}}) |