Facebook CAPI demo

Show your support

How it works

  1. User clicks ad
  2. Facebook appends fbclid parameter to end of landing page URL (facebook click ID)
  3. User taken to this landing page with Meta pixel installed
  4. Meta pixel runs:
    • If fbclid URL parameter is present, _fbc cookie is created which stores the fbclid value in the format the CAPI requires
    • _fbp cookie is created which stores the browser ID (this happens regardless of the fbclid parameter being present or not)
    • Pixel fires 'pageView' event
  5. All available metrics are passed to the embedded survey:
    • _fbc and _fbp values (primary identifiers for attribution)
    • all UTM parameters
    • landing page URL
  6. User completes survey, clicks submit:
    • Workflow triggered → values sent from Survey Sparrow to CAPI server-side endpoint on Meeting Place code repo
    • CAPI endpoint checks all data, formats it correctly and sends to facebook as 'lead' event

Note: There is no need for de-duplication as Meta pixel and CAPI integration fire off different events ('pageView' vs 'lead').