Facebook Conversion API Integration
Written By Stefan S.
Last updated About 22 hours ago

Vendors can connect Facebook Purchase conversion pixels to our Facebook Conversion API integration, allowing them to send related purchase data to Facebook pixel reporting once a customer makes a purchase.
Follow the instructions below to connect your FB ad/pixel account and trigger data events to send when a customer makes a transaction via a checkout.
NOTE:
This integration ONLY handles purchase conversion events.
To track visits to the checkout BEFORE purchase, add your FB tracking pixel script to the product CSS field.
Important Note
Passing Facebook Click Identifiers (Crucial Step)
For the Conversion API to accurately attribute a purchase back to a specific Facebook ad, you must pass Facebook's tracking parameters from your landing page to the PayKickstart checkout page.
When a visitor clicks your ad and lands on your website, Facebook provides two key identifiers:
_fbp(Browser ID): Usually stored in a browser cookie._fbc(Click ID): Usually stored in a browser cookie after a user clicks an ad. If the cookie is not present, this value must be constructed from thefbclidURL parameter.
Your responsibility is to capture these values and pass them to the PayKickstart checkout URL.
Passing the Parameters Correctly
The fbc parameter you send to PayKickstart is not simply the raw fbclid value from the URL. It must be correctly formatted according to Meta's specifications.
There are two primary scenarios for getting the correct value:
From the
_fbcCookie (Recommended): The easiest and most reliable method is to retrieve the value directly from the_fbcbrowser cookie on your landing page and pass it as thefbcparameter.From the
fbclidURL Parameter: If the_fbccookie is not available, thefbcvalue must be constructed in a specific format:version.subdomainIndex.creationTime.fbclid. This is a technical task that requires a script on your website to assemble the value correctly.
Example of a Correctly Formatted URL
Your website's logic should dynamically build the checkout URL. It should prioritize grabbing the _fbc and _fbp cookie values first, for example:https://app.paykickstart.com/checkout/sample-product-123?fbc={value_from_the_fbc_cookie}&fbp={value_from_the_fbp_cookie}
Note for Your Developer: Please ensure that the script on our landing page captures the values from the
_fbcand_fbpcookies and appends them to the PayKickstart checkout URL query string asfbcandfbp. If the_fbccookie is not present, thefbcparameter must be constructed using thefbclidfrom the URL, formatted as per Meta's Conversions API documentation.
Important: If these parameters are missing or incorrectly formatted, PayKickstart cannot link the purchase event back to the specific ad click. This will significantly impact your campaign's reporting and optimization capabilities.
ADDITIONAL NOTES:
Conversion pixels are ONLY triggered on up-front purchases.
This will NOT trigger an event for subscription rebills.
For deduplication in your conversion pixel, please use the PayKickstart Transaction ID as the event ID (where applicable).