Test Conversion Event (CAPI)
meta_test_conversion_eventsTest your Meta Conversions API setup by sending a test conversion event that does not affect production data. Use it to validate event configuration.
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pixel_id | Yes | Meta Pixel ID | |
| 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 | |
| event_source_url | No | URL where conversion happened | |
| user_data | Yes | User data for matching (at least one identifier required — more fields = better match rate) | |
| custom_data | No | Custom event data | |
| event_id | No | Deduplication ID (matches browser pixel) | |
| action_source | Yes | Where the conversion originated | |
| test_event_code | No | Test event code (won't affect production data) | |
| response_format | No | Output format: 'markdown' for human-readable or 'json' for machine-readable | markdown |