How it works: Shopify to Meta Conversions API (CAPI)
Which Shopify events and parameters Littledata sends to Meta through the browser and the Conversions API, and how they help event match quality.
This page explains which events Littledata sends from your Shopify store to Meta, and which parameters come with them. Use it to check what to expect in Meta Events Manager.
What you can track
Here's what you can track with Littledata's Meta connection for Shopify.
All the events below are tracked by default. You can turn events off in the Event Editor. More purchase events are available as recipes. See New customer vs returning customer conversions.
Client-side events
Event name
Description
PageView
A visit to any page of your store
ViewContent
A visit to a web page such as a product page or landing page
AddToCart *
The addition of an item to the cart
InitiateCheckout *
The start of a checkout process. For example, clicking the Checkout button
AddPaymentInfo *
The addition of customer payment information during a checkout process
Purchase *
Completing the checkout and viewing thank you page
* Only for stores with the Littledata Pixel connected
Server-side events
Event name
Description
AddToCart
The addition of an item to a shopping cart or basket. For example, clicking an Add to Cart button.
InitiateCheckout
The start of a checkout process. For example, clicking the Checkout button.
AddPaymentInfo
The addition of customer payment information during a checkout process. For example, a customer clicks to save their billing information.
Purchase
Completing the checkout and receiving an order confirmation
Post Purchase Upsell
The completion of an upsell purchase, that will contain only the newly added products.
Profit Signal
If you enable Profit Signal, Littledata adds the estimated profit of each order to the purchase event as net_revenue. The value parameter is not changed and still carries the order revenue, so Meta receives both numbers and you choose which one to optimize for in Ads Manager.
See How to use Profit Signal for how profit is calculated and how to enable it.
New customer vs returning customer conversions
Littledata sends the standard Purchase event by default. Four more purchase events are available as recipes in the Meta Event Editor. Add them from the Recommended for your store section. For the steps, see New and Returning Customer Purchase in Meta Ads.
Event name
How to get it
What it tracks
Purchase
Tracked by default
Every order from any customer is counted, except recurring orders.
New Customer Purchase - Littledata
Recipe: New customer purchase
Counts only the first time a customer purchases on Shopify
Returning Customer Purchase - Littledata
Recipe: Returning customer purchase
Counts every purchase of a customer, except the first one. This event also includes recurring orders.
Subscribe
Recipe: First recurring purchase
Only the first recurring purchase of a subscription customer. Older connections receive it as First Recurring Purchase - Littledata.
Recurring purchase
Recipe: Recurring purchase
The completion of an automatic recurring purchase, such as a recurring order from Recharge subscriptions.
How Littledata improves the event match quality score
Littledata sends the customer parameters Meta uses to match events to people. Our Conversions API integration follows Meta's hashing requirements, ensuring that all parameters are received and processed to increase the event match quality.
The most important parameters are the user parameters. If an event does not have at least one user parameter, Meta will not accept said event.
Littledata sends all the parameters with the exception of:
fb_login_id(the ID issued by Meta when a person first logs into an instance of an app)lead_id(the ID associated with a lead generated by Meta's Lead Ads)ge(gender parameter)db(date of birth)
Action_source parameter
The action_source parameter is an indicator of where the conversion was made. Knowing this is a great way to ensure your ads are targeted in the right direction.
Littledata can send this parameter with only 3 values:
Value
Source
website
Online Store
system_generated
Subscription App
physical_store
POS Order
Fbp and fbc parameters
The most important parameters that we send are the fbp and fbc cookies, which are the equivalent of the Google client ID. These parameters are vital in the event match quality score. Littledata captures them in the browser and adds them to server-side events whenever they're available.
User agent and IP address
User agent and IP address are automatically added to the browser events, but we pass them to the server-side events as well so the event match quality can increase.
Besides fbp, fbc, user agent and IP address, there are other parameters that we send:
em: email of the user (hashed)ph: phone number of the user (hashed)fn: first name (hashed)ln: last name (hashed)ct: city (hashed)st: state (hashed)zp: zip code (hashed)country: country of the user (hashed)external_id: a unique ID for the user (hashed). Server-side events use the Littledata ID. Browser events use the Shopify customer ID when the customer is known.subscription_id: sent with a recurring order
Littledata combines browser data with your Shopify customer data so the right user is attributed to the event.
For a more detailed schema and parameters, reach out to help@littledata.io.
Custom parameters
The following parameters are included with every event sent to Meta.
market_handle
The handle of the Shopify Market for this event. Fixed as unassigned\_market for orders not attributed to a market.
market_id
The internal Shopify Market ID for this event. Fixed as 0 for orders not attributed to a market.
Market parameters in Littledata events
All events sent to Meta include the Shopify Market handle by default. This allows you to break down ad performance by Shopify market in Meta's reporting, build market-specific Custom Audiences for retargeting, and allocate budgets more effectively across regions. For example, you can create separate audiences for customers from different markets, or exclude certain markets from campaigns entirely. This requires Shopify Markets to be active on your store, but does not require any per-market destination configuration within Littledata.
Related articles
Last updated
Was this helpful?