Conversion snippet
conversion_snippetThe five-line snippet to drop into the product's signup or payment handler so it reports conversions to Hustlin with the visitor's tracking code (JavaScript, Swift and curl), plus a venture key for it, minted on demand and shown once. Put the key in the product's secrets as the env var named in the result, never in the repo. Owner only.
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": {
"productId": "<productId>"
},
"name": "conversion_snippet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mint | No | Mint a new venture key for the snippet and return it once (default true). false returns the snippet with the env var only, for a product that already has a key in its secrets. | |
| label | No | A name for the key, e.g. 'production signup handler'. | |
| productId | Yes | The product id. |