Create Custom Conversion
meta_create_custom_conversionCreate a custom conversion to track specific user actions on your website by defining a URL rule, associating it with a pixel, and selecting an event type.
Instructions
Creates a custom conversion for tracking specific actions.
Args:
ad_account_id (string): Ad account ID
name (string): Conversion name
pixel_id (string): Pixel ID to associate with
custom_event_type (string): Event type — CONTENT_VIEW, SEARCH, ADD_TO_CART, ADD_TO_WISHLIST, INITIATED_CHECKOUT, ADD_PAYMENT_INFO, PURCHASE, LEAD, COMPLETE_REGISTRATION, OTHER
rule (string): URL rule as JSON (e.g., {"url":{"i_contains":"thank-you"}})
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ad_account_id | Yes | ||
| name | Yes | ||
| pixel_id | Yes | ||
| custom_event_type | Yes | ||
| rule | Yes | URL rule as JSON string | |
| response_format | No | Output format: 'markdown' for human-readable or 'json' for machine-readable | markdown |