What Facebook CAPI Events and User Parameters Are Used In Server-Side Tracking?

Overview

This document addresses the integration of Facebook's Conversion API (CAPI) within Facebook Business Manager, especially concerning city, state, and country warnings. As Facebook's iOS policies evolve, our integration might trigger these warnings. This guide provides clarity on the data sent through our integration and steps to resolve common issues.

🚧

If you encounter warnings about missing city, state, or country data in non-purchase events, please upgrade to the latest version of the Facebook Conversion API template.


Events

The CAPI events operate concurrently with pixel events and are deduplicated using an event ID data layer variable. For information on standard events, refer to the Facebook documentation.

Default Events:

  • ViewContent (Product Detail View)
  • AddToCart
  • InitiateCheckout
  • Purchase
  • Lead (Email/SMS Signup)
  • Account

Also Available:

  • Subscription (this enables a Purchase event for subscription purchases - like ReCharge)
  • Subscribe (this enables a Subscribe event for subscription purchases - like ReCharge. See Facebook documentation on this standard event)
  • Pageview
  • Search
  • CompleteRegistration
  • AddPaymentInfo
  • ViewItemCategory (aka Product List View)

The reason we don't enable all by default is to keep load down from your server side container.

User Parameter Data

Website events shared using the Conversions API require the following data parameters: client_user_agent, action_source and event_source_url which we enable by default.

We also send the following user parameter data when it's available, per Facebooks documentation

Parameter name
emhashed email address
external_idhashed user_id from Elevar's Data Layer - typically Shopify customer ID is currently used
ga_idthis is the GA cookie value set on all users
phhashed phone number
fnhashed customer first name
lnhashed customer last name
cthashed customer city - (if not available from customer we use AppEngine data)
sthashed customer state - (if not available from customer we use AppEngine data)
zphashed customer postal code
countryhashed customer country code - (if not available from customer we use AppEngine data)
valueorder values as defined by revenue, subtotal, or product subtotal
contentsan array of product data ex: [{"id":"9005846987058","name":"The Collection Snowboard: Liquid","content_category":"snowboards","item_price":"749.95","quantity":"1"}]
content_idsproduct identifier selected, this could be product ID, SKU, or Variant ID
order_idorder ID
fbpbrowser ID
fbcFacebook click id - only available when user has followed a FB click ID
client_ip_addressclient IP address
client_user_agentclient user agent
customer_typenew or returning based on order count

In general for non-purchase events you should expect to see:

  • IP
  • User Agent
  • fbp
  • City
  • State
  • Country
  • Smaller %'s for the remainder of values.
  • Purchase events typically have a much higher match rate.


👍

Looking for more FB CAPI resources?

Check out our CCPA / Limited Data Use integration guide here.

Complete FB CAPI Setup Guide