Report Sales From Your CRM
Postbacks that tell the ad network when a lead closes.
Often you only learn that a lead became a sale days later. Tom Reed asks for a roof quote on Monday, and your CRM marks the job sold on Friday. A postback is how your CRM tells EventsIQ, so the ad network hears about it and can find more people like him.
This guide sets that up from start to finish.
- A campaign that is already sending leads. If you do not have one, start with Set up paid traffic.
- An ad account connected under Connect → Connections.
- Your CRM set up as a destination, so it receives each lead.
- A way to make your CRM call a link when a lead's stage changes. Ask whoever manages it.
What happens to one lead
Here is Tom's lead from click to sale, once everything below is set up. The ids and the key are made up.
-
Monday, the click. Tom clicks your ad. EventsIQ gives the click an id, for example
abc123, and he fills in your form. -
Monday, the lead reaches your CRM. Your routing sends the lead to your CRM with
"click_id": "abc123"in the body. Your CRM stores it with Tom's record. -
Friday, the sale. Your CRM marks the job sold for $250 and calls your postback link:
https://app.eventsiq.io/cv?click_id=abc123&event=sold&value=250&key=YOUR_KEY -
The reply. EventsIQ finds the click, its campaign and the campaign's integration, and answers:
json{"ok":true,"event":"sold","reported":"Purchase","sentAs":"conversion","value":250} -
What you see. Measure → Activity → Conversion logs shows a Postback: Sale closed row, and the same line appears on Tom's lead in Lead logs. The ad network receives
Purchaseworth $250.
Reports do not change. Revenue there is what your destinations paid when they bought the lead, not what your CRM reports later.
For an instant form lead there is no click, so step 2 sends {{system.lead_id}} and step 3 uses
lead_id= in place of click_id=.
Add your events
Events are your own names for the stages your CRM reports.
- Go to Settings → Postbacks and click Add event.
- What to call it here: a readable name, for example
Sale closed. - Name your CRM sends: the word in the postback, for example
sold. - Value: pick What the CRM sends if the amount changes per sale, Same every time if it does not (then fill in Amount), or No value.
- Click Save event.
Add one event for each stage you want to report, for example appointment as well as sold.
Say what the ad network receives
An event only reaches the network once a Conversion API integration has a row for it, and the campaign has picked that integration.
- Go to Connect → Integrations and open the Conversion API tab.
- Open your integration. If you do not have one, click New integration, then Set up beside your network under Conversion API, and work through the steps.
- On the step where you choose the pixel or ad account, find Postback events and click Add.
- On the left, pick your event. On the right, set what the network should receive, for example
Purchaseon Meta. - Click Save changes. On a new integration, click Next, give it a Name on Test and name, and click Create.
Each network takes something different on the right. See Integrations.
Then point your campaign at the integration:
- Go to Capture → Campaigns, open your campaign and click Edit.
- On the General tab, pick the integration under Report sales to.
- Click Save changes.
Connect your CRM
Your CRM can only report a click id it was given, so send it along with each lead first.
- Go to Destinations, open your CRM and click the Sending tab.
- Under What to send, click Add a field.
- Under Name, type the name your CRM expects, for example
click_id. - Pick Text and details and enter
{{runtime.eiq_click_id}}. - Click Save. The button may name how many routing setups the change reaches.
Now give your CRM the link:
-
Go back to Settings → Postbacks.
-
Under Your postback link, click Copy link. It looks like this, with your real key in it:
https://app.eventsiq.io/cv?click_id={click_id}&event=sold&value={value}&key=YOUR_KEY -
In your CRM, have this link called when the lead's stage changes. Replace
{click_id}and{value}with however your CRM writes those, and seteventto one of your event names.
Facebook, TikTok, Google and Snapchat instant form leads never pass through a link, so they have no
click id. For those, use the link under For instant form leads, which have no click, send
{{system.lead_id}} in place of the token above, and pick the Ad campaign on your EventsIQ
campaign.
Anyone with your key and a click id could report fake sales. If it leaks, click Change key. The old link stops working at once, so update your CRM straight after.
Test it
A successful test sends the event to your ad network. Use a test lead of your own, and a small value.
-
Go to Measure → Activity → Lead logs and open a test lead that came through your campaign's link.
-
Under The click it came from, copy the id at the bottom of the panel.
-
Run this, using your id and your key, or paste the same address into a browser:
bashcurl "https://app.eventsiq.io/cv?click_id=PASTE_CLICK_ID&event=sold&value=250&key=YOUR_KEY" -
Read the reply.
"ok":truewith"reported":"Purchase"means EventsIQ accepted it and is sending it to the network."ok":falsecomes with areasonthat says why it was not sent. -
Go to Measure → Activity → Conversion logs. You should see a Postback: row with your event's name.
The reply has "ok":true, and Measure → Activity → Conversion logs shows a Postback: row with your
event's name, for example Postback: Sale closed. Open the row to see what the network was sent.
Run the same call again if you like. Each click reports each event once, so the second call sends nothing, and the reply says it has already been reported. That is what stops a CRM that retries from counting one sale twice.
Troubleshooting
The key is wrong, or it was changed. Copy the link again from Settings → Postbacks.
Some refusals happen before EventsIQ knows which account the call is for, so only the reply says so.
Run the same call with curl and read reason. The postback carried no click id or lead id
means the CRM did not fill it in. No click here matches that id means the id is wrong, or from
another account. That click produced no lead here means the visitor clicked but never submitted.
The row names the missing piece:
- No event of that name is set up here. Add the event, or fix the spelling in the CRM.
- That event exists but is turned off. Open it and turn on Accept this event.
- The campaign this click came from has no conversion integration. Pick one under Report sales to.
- The campaign's conversion integration has no row for this event. Add it under Postback events.
The event's Value is set to No value, or the CRM is not filling in value. Networks may
refuse Purchase without a value, and EventsIQ warns you about this on the row.
Where to go next
- Build your first waterfall (routing): add destinations and set what a sale looks like.
- Route leads by state: send each state to the destinations that serve it.
- Postbacks: other names for each part of the link, and every log reason.
- Integrations: what each network receives.