G
GHL SOPKnowledge Base
Search
← All topics

Meta Ads — Pixel + CAPI Setup and Creative Flywheel

runnable

How to configure Meta Pixel + Conversion API for deduplicated attribution, pass UTMs through GHL custom fields, scrape competitor ads, and run the Mark Builds Brands creative flywheel.

meta-adspixelcapicreativeattributionutm
Agent trigger phrases: meta ads setup · facebook pixel capi · conversion api · meta ads library · utm attribution ghl · creative flywheel · meta ads scraping · mark builds brands

Meta Ads — Setup + Creative Flywheel

Pixel + Conversion API

  • Pixel on site via GTM (browser events)
  • CAPI via server endpoint (FastAPI or Vercel function) for deduped server events
  • Deduplication key: event_id sent on both browser + server
  • Events to fire: PageView, ViewContent, Lead (form submit), CompleteRegistration (booked call), Purchase (closed deal)

Iron Funnels Integration

Astro perspective-funnel passes UTMs through as GHL custom fields:

  • utm_source, utm_campaign, utm_adset, utm_ad, fbclid, gclid Maps to GHL contact custom fields so attribution survives into the CRM.

Ad Library Scraping

  • Meta Ads Library API (official, limited) + Amplify or Foreplay (paid, richer)
  • Filter: competitor ads running > 30 days = proven winners
  • Download creative, strip branding, log to Notion DB

Mark Builds Brands Flywheel

  1. Find 5-10 longest-running competitor ads in vertical
  2. Duplicate each as a concept (not a swipe — rebuild the hook/angle)
  3. Ad set minimum spend: 1× target CPA × 7 days
    • Example: $29 CPA target → $203/wk minimum per ad set
  4. Measure incremental ROAS (Meta experiments or GeoLift), not last-click
  5. Kill losers at day 7, iterate winners with 3 new variations

Creative Production

  • Seedance 2 — video gen for UGC-style ads
  • Nano Banana — image gen (fast, cheap)
  • Higgsfield — motion/cinematic b-roll
  • CapCut Dreamina — script → avatar video
  • Prefer real UGC > AI when budget allows; AI for concept validation