send_conversion_event
Send a conversion to every ad platform at once destructive
Description
Send ONE conversion event (a sale, sign-up, lead or your own event) to EVERY ad platform conversions API the brand saved as a destination, in one call: Meta, TikTok, LinkedIn, Snapchat, Reddit, Pinterest, X, Microsoft Advertising, ChatGPT Ads, AppLovin, Amazon Ads, Google Ads, Taboola, Outbrain, The Trade Desk, Attentive, Impact, Awin, Campaign Manager 360, Klaviyo and Google Analytics. Pass PLAIN identifiers: each platform’s sender normalises and SHA-256 hashes them to that platform’s own rules, and every platform receives the same eventId as its dedup key (match it to the browser pixel’s). Click ids in sourceUrl or user.clickIds (gclid, fbclid, ttclid, twclid, msclkid, li_fat_id, tblci for Taboola, ob_click_id for Outbrain, irclickid for Impact, awc for Awin, dclid for Campaign Manager 360, tdid / uid2 / uid2_token for The Trade Desk, ga = the _ga cookie …) are read automatically, and a click id the same person carried on an earlier stored page view rides along with a server-side sale. Each destination answers on its own, read back from what the PLATFORM said (accepted, refused, skipped and why); one failing never blocks another. DRY RUN: validateOnly:true and/or testCode reach only the platforms with a mode that records nothing (Pinterest, Snapchat, ChatGPT Ads, Google Ads, Campaign Manager 360 and Google Analytics validate, Awin takes test orders; TikTok and Reddit take a test code from their Events Manager) and skip the rest by name, so nothing real is counted. Meta keeps events sent with a test code, so a dry run never reaches Meta. forward:false only RECORDS the events (page views and other touches for journeys) and sends them nowhere. Every non-test event is stored with its identifiers hashed, for conversion_insights and campaign_profit. Free.
Parameters
| Parameter | Type | Description |
|---|---|---|
eventsrequired | object[] | 1 to 1,000 events |
events[].eventNamerequired | string | Purchase, Lead, QualifiedLead, CompleteRegistration, AddToCart, InitiateCheckout, AddPaymentInfo, Subscribe, StartTrial, ViewContent, Search, Contact, SubmitApplication, Schedule, PageView, AddToWishlist, or your own name |
events[].eventIdrequired | string | the ONE dedup id every platform receives: your order or lead id, the same one the browser pixel sends |
events[].eventTime | number | string | unix seconds, ms or ISO; default now |
events[].value | number | conversion value |
events[].currency | string | ISO code, e.g. USD; needed with a value |
events[].actionSource | "web" | "app" | "offline" | "crm" | "phone_call" | "system_generated" | "business_messaging" | "email" | "chat" | "other" | where it happened; default web when sourceUrl is given, else other |
events[].sourceUrl | string | the page URL; its gclid / fbclid / ttclid / utm_* parameters are read |
events[].referrer | string | the referring page, for organic and referral touches |
events[].user | object | who converted: send every identifier you have |
events[].user.email | string | plain email; each platform hashes it to its own rules on Hermoso’s server, never hash it yourself |
events[].user.phone | string | with its country code, e.g. +14155550100 |
events[].user.firstName | string | first name |
events[].user.lastName | string | last name |
events[].user.externalId | string | your own customer id (CRM / user id) |
events[].user.ipAddress | string | visitor IP |
events[].user.userAgent | string | visitor browser user agent |
events[].user.country | string | 2-letter country code |
events[].user.city | string | city |
events[].user.state | string | state or region code |
events[].user.zip | string | postal code |
events[].user.dob | string | date of birth YYYY-MM-DD |
events[].user.gender | string | f or m |
events[].user.leadId | string | a Meta or TikTok lead id, for CRM lead events |
events[].user.visitorId | string | your anonymous visitor / cookie id: ties page views to a later sale for journeys and paths |
events[].user.clickIds | object | ad click ids captured on the landing page: fbc, fbp, gclid, gbraid, wbraid, ttclid, ttp, li_fat_id, epik, rdt_cid, twclid, msclkid, sccid, oppref, aleid, axwrt. Ids in sourceUrl are read automatically |
events[].items | object[] | products in the order |
events[].items[].idrequired | string | sku or product id |
events[].items[].name | string | product name |
events[].items[].price | number | unit price |
events[].items[].quantity | number | units |
events[].items[].category | string | category |
events[].campaign | object | the ad campaign behind it, when you know it; counts the sale toward that campaign in campaign_profit |
events[].campaign.id | string | platform campaign id |
events[].campaign.name | string | campaign name |
events[].campaign.platform | string | meta, tiktok, linkedin … |
events[].consent | object | EU/UK consent signals, forwarded where a platform takes them |
events[].consent.adUserData | "GRANTED" | "DENIED" | consent to use the person’s data for ads |
events[].consent.adPersonalization | "GRANTED" | "DENIED" | consent to personalised ads |
events[].limitedDataUse | boolean | the person opted out of data sale (US state privacy laws) |
destinations | string | object[] | send to these instead of the saved ones: saved destination ids, or destination objects shaped like conversion_destinations action add |
validateOnly | boolean | dry run: platforms with a validate mode check the events and record nothing; the rest are skipped |
testCode | string | dry run for TikTok and Reddit: the test code from their Events Manager |
forward | boolean | false records the events for journeys and sends them nowhere |
carryClickIds | boolean | false stops click ids from the same person’s earlier page views riding along |
source | string | where these came from, e.g. crm, shopify, stripe (shown on stored events); default api |
Example call
Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/send_conversion_event.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"send_conversion_event","arguments":{"events":"<array>"}}}
CLI
hermoso call send_conversion_event --json '{"events":"<array>"}'
Credits
Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.
Related tools
conversion_insightsCustomer journeys, touch paths and lifetime valuecampaign_profitProfit per ad campaignconversion_destinationsAd platforms a conversion goes toconversion_eventsStored conversion eventsupload_campaign_resultsUpload your own results per campaignset_profit_settingsSet margin and cost per order for profit