Test Conversion Event (CAPI)
meta_test_conversion_eventsValidate Meta CAPI setup by sending a test conversion event that doesn't affect production data, auto-generating a test event code for safe verification.
Instructions
Tests CAPI setup by sending a test event that won't affect production data.
Same args as meta_send_conversion_event but auto-sets a test_event_code if not provided. Use the test_event_code from Events Manager > Test Events tab.
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": {
"pixel_id": "<pixel_id>",
"event_name": "<event_name>",
"event_time": "<event_time>",
"user_data": "<user_data>",
"action_source": "<action_source>"
},
"name": "meta_test_conversion_events"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| event_id | No | Deduplication ID (matches browser pixel) | |
| pixel_id | Yes | Meta Pixel ID | |
| user_data | Yes | User data for matching (at least one identifier required — more fields = better match rate) | |
| event_name | Yes | Conversion event name. Standard events: Purchase, Lead, AddToCart, CompleteRegistration, ViewContent, Search, InitiateCheckout, AddPaymentInfo, AddToWishlist, Subscribe, StartTrial, Contact, CustomizeProduct, Donate, FindLocation, Schedule, SubmitApplication, PageView. Custom event names are also accepted. | |
| event_time | Yes | Unix timestamp of the event | |
| custom_data | No | Custom event data | |
| action_source | Yes | Where the conversion originated | |
| response_format | No | Output format: 'markdown' for human-readable or 'json' for machine-readable | markdown |
| test_event_code | No | Test event code (won't affect production data) | |
| event_source_url | No | URL where conversion happened |