This is a proof of concept (POC) for Meta Pixels & Conversions API integration in a basic ReactJS Application.
Set the environment variables in the .env file.
META_ACCESS_TOKEN=<YOUR_ACCESS_TOKEN>
PIXEL_ID=<YOUR_PIXEL_ID>
TEST_EVENT_CODE=<TEST_EVENT_CODE> // Used for the meta pixel testing sandbox
Install the dependencies and devDependencies and start the server.
cd meta-pixels-conversions-api-poc
npm install
npm run dev
Navigate to the different tabs in the application and the events will be sent to the Meta Pixels & Conversions API.