I am using PHP with Laravel to create an E-commerce and integrating Facebook pixel and everything was working properly,
then after IOS 14 update, the pixel integration isn’t working properly, so I heard that if we integrated the Facebook conversion APIs and add the domain verification code it would solve the problem
so I tried to add this
<meta name="facebook-domain-verification" content="myCode" />
so my question is: is it correct that integration conversion APIs would solve the problem,
and if it is correct – I don’t know where and how to integrate these conversion APIs
2
Answers
The Facebook Conversion API events are more powerful than the Facebook Web Pixels. The Conversion API event gets fired through backend logic. you can use the ajax call from the front end, and check the event triggers on the Facebook panel
Facebook Pixel Conversion API
https://developers.facebook.com/docs/marketing-api/conversions-api/
you can generate the access token from https://business.facebook.com/event_manager select your site and generate the Facebook pixel
javascript ajax function and you can simply call this ajax function where you want to trigger pixel
Function Call
Function Definition
I just use this package
https://github.com/facebook/facebook-php-business-sdk
PHP API
I think the easiest way to integrate FB CAPI is through Google Tag Manager.
This integration is much easier to maintain and develop if you don’t have your own developers.
Also, Facebook recently launched a new type of integration – via CAPI Gateway. It costs more, but is set up literally in a few clicks in 30 minutes. Here’s a video with detailed instructions: https://stape.io/facebook-conversions-api-gateway-the-easiest-way-to-implement-fb-capi/