create_custom_pixel
Create a custom pixel in Shopify to track customer events like checkout started and completed. Provide title, unique handle, and JavaScript source code.
Instructions
Create a new custom pixel
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": {
"title": "<title>",
"handle": "<handle>",
"source": "<source>"
},
"name": "create_custom_pixel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Pixel title | |
| events | No | Events to subscribe to (e.g., ['checkout_started', 'checkout_completed']) | |
| handle | Yes | Unique handle for the pixel | |
| source | Yes | JavaScript source code for the pixel | |
| settings | No | JSON settings for the pixel |