Set up EasyAdsFlow
About 20 minutes. You need access to your site's HTML (for the script) and, for revenue, a place in your backend where payments are recorded.
1. Creative codes and ad names
In Creatives, create a code for every creative file or script, e.g. EA-0128. Codes are never reused; if you change a creative, make a new code (a variant) and record what changed. In Ads Manager, start each ad name with its code; anything after it is up to you:
EA-0128 cozy evening v2Campaign names can be anything, but keep them stable: EasyAdsFlow matches campaigns by name.
2. URL parameters
In each ad's URL parameters field, add this template (keep any parameters you already use):
utm_content={{ad.name}}&utm_campaign={{campaign.name}}Meta replaces the placeholders with the ad and campaign names, so your landing page receives the creative code.
3. Tracking script
Paste this before </head> on every page ads can land on. Your public key is in Data → Tracking.
<script async src="https://easyadsflow.com/t.js" data-key="pk_your_public_key"></script>On a landing with ad parameters, the script records a touch: the utm_* parameters, the landing path, the visitor's country and a random visitor ID kept in the browser. It does not set cookies, read form fields or store click IDs. In the browser you can read:
easyadsflow.visitor() // "v_3f2a…", send it with checkouts
easyadsflow.attribution() // { touch, touch_at, params } of the last ad landing
easyadsflow.identify("acct_123") // link this visitor to your account ID4. Events API
Send sign-ups, checkouts, payments and refunds from your server with your secret key (Data → Tracking; keep it on the server). Amounts are in cents. Each event needs an id unique for its type; sending the same event twice is safe.
curl https://easyadsflow.com/api/v1/events \
-H "Authorization: Bearer sk_your_secret_key" \
-H "Content-Type: application/json" \
-d '{"events": [
{"type": "signup", "id": "u_981", "data": {"account": "u_981", "visitor": "v_3f2a…"}},
{"type": "checkout", "id": "ord_77", "data": {"order": "ord_77", "account": "u_981", "visitor": "v_3f2a…", "amount": 4900, "currency": "USD"}},
{"type": "payment", "id": "pay_77", "data": {"order": "ord_77", "amount": 4900, "currency": "USD"}}
]}'| type | When | data |
|---|---|---|
signup | An account is created | account, visitor |
checkout | An order is created | order, visitor or account, amount, currency; optionally attribution from easyadsflow.attribution() |
payment | A payment succeeds (including renewals) | order, amount, currency |
refund | A refund is issued | order, amount, currency |
identify | A visitor signs in | visitor, account |
A checkout is credited to the last ad landing of the same visitor (or account) before it. Don't send names, emails, phone numbers or IP addresses; fields with those names are dropped. Optional at (RFC 3339) sets the event time; the default is when we receive it. Up to 500 events per request.
5. Spend: screenshots and manual entry
In Data, add the day's numbers at two levels, taken at about the same time:
- Campaign level: campaign name, budget, amount spent, impressions, link clicks.
- Ad level: ad name, campaign name, amount spent, impressions, link clicks.
Upload screenshots of those Ads Manager tables (AI reads them; you check each row, then confirm) or type the numbers in. Include the totals row in screenshots so the numbers can be checked. Use the same date range and time zone as your ad account. Purchases and purchase value columns are optional and are shown as Meta's numbers. A good rhythm is two or three updates during the day and a final one the next morning for yesterday.
6. How the numbers are calculated
- Spend, budget, clicks: from the latest confirmed numbers for that day, stamped with the time they were captured.
- T0 revenue: payments from visitors whose ad landing was on that day and who paid the same day, up to the capture time, minus refunds on those orders.
- T0 ROAS: T0 revenue ÷ spend. D1/D3/D7: the same visitors' revenue within 1, 3 or 7 days ÷ the same spend.
- Verdict: below the workspace's minimum spend → not enough data; otherwise winning if T0 ROAS ≥ your target, else losing. Change both in Settings.
- Days without spend numbers show "no spend data", not zero. Revenue whose ad name has no code shows as "unknown code".
Need help? Contact support.