{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "bighadj22-codflow--optimize-meta-ads-for-real-deliveries",
 "repo": "bighadj22/codflow",
 "repo_url": "https://github.com/bighadj22/codflow",
 "repo_slug": "bighadj22-codflow",
 "title": "Optimize Meta ads for confirmed deliveries, not form fills",
 "page_title": "How to optimize Meta ads for confirmed deliveries, not form fills with Codflow",
 "summary": "Send a Purchase event to Meta only when an order is delivered, so ads learn from real buyers.",
 "who": "A merchant running Meta ads who sees many orders refused at the door and wants ads tuned to delivered sales.",
 "problem": "Meta Pixel fires on checkout submit, so ads are optimized for orders that may be refused at delivery.",
 "outcome": "Meta receives a Purchase event at confirmed delivery, with a test stream available to verify events before going live.",
 "steps": [
  "In the dashboard, open the Meta Pixel and CAPI configuration and enter your pixel details.",
  "Choose Purchase at confirmed delivery as the conversion event.",
  "Turn on Test Mode so CAPI events go to Meta's test stream (test_event_code) while you verify them.",
  "Review the CAPI event audit log (capi_event_log) to confirm each send attempt and its result, then turn Test Mode off."
 ],
 "agent_prompt": "In the CodFlow repo at https://github.com/bighadj22/codflow, check the Meta CAPI configuration for store <store name> with Purchase set at delivery. Expected output: the current conversion event, the Test Mode state and the last five entries in the CAPI event log. Verify that Test Mode is on before any live traffic is sent.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "1 hour",
 "basis": "readme",
 "caveat": "The README says a production deployment with Worker-to-Worker fetch needs a custom domain for cod-server, so verify your CAPI sends after that is in place.",
 "category": "Sales and marketing",
 "tags": [
  "Sales and marketing"
 ],
 "lang": "typescript",
 "requirements": [
  "Node.js 22.12+ and npm",
  "Wrangler CLI (npm install -g wrangler)",
  "A free Cloudflare account",
  "Carrier and Meta credentials if you connect delivery or ads (optional)"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "Meta access settings are entered in the dashboard, so keep the token limited to the pixel and restrict who on your team can change it."
  }
 ],
 "best": false,
 "score": 0.7,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/bighadj22-codflow/optimize-meta-ads-for-real-deliveries/",
 "md": "https://dedupedai.com/use-cases/bighadj22-codflow/optimize-meta-ads-for-real-deliveries/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/bighadj22-codflow--optimize-meta-ads-for-real-deliveries.json",
 "api_version": "v1"
}
