With the iOS 14 release, Facebook has become more particular about how the data will be sent over to its servers. Earlier it was only via the user's browser but now Facebook requires it to be also sent via the server.
In this post, we have covered the following points:
- Configure the conversion API events
- Perform testing against the server-side events
- Log purchase events on the website for troubleshooting
Let's get started.
How to configure the Conversion API events?
To send pixel events directly to Facebook servers without using a visitor’s browser, you have to set up Conversions API for WooFunnels.
Step #1: Log in to your Facebook Business suite account
Go to your Facebook Business Suite account and login using the credentials.
Step #2: Go to More Tools and select “Events Manager”
Click on “More Tools” and you’ll see many options:
Now, select “Events Manager” from the list.
Step #3: Select your Facebook Pixel ID
On the left side, click on your Facebook Pixel ID.
Step #4: Go to Settings
Once you’ve selected your Pixel ID, go to Settings from the right section.
Step #5: Copy and paste the Facebook Pixel ID on WooFunnels settings
Open a new tab and go to WooFunnels > Settings > Facebook Pixel.
Now, paste your Pixel ID there.
Step #6: Click “Generate access token” and copy the code
Go to the previous tab, scroll down to the section and click on Generate access token.
As you click on the link, a code will appear. Click to copy this code to the clipboard.
Step #7: Paste the access token to WooFunnels
Click on “Enable Conversion API” below to your Facebook Pixel ID.
Now, paste the access token there.
Once done, click on “Save Settings”.
Congratulations! You have successfully set up Conversions API for WooFunnels.
How to perform testing against the server-side events?
You can perform testing on Facebook Conversions API for WooFunnels. For this, you need to authorize a test server code from Facebook Pixel to WooFunnels.
Follow the instructions below:
Step #1: Select your Pixel ID and go to “Test events”
Click on the “Test events” tab on the right.
Step #2: Click on the test event code to copy
Scroll down and copy the test event code by clicking on it.
Step #3: Paste the test code to WooFunnels Facebook Pixel settings
Go to WooFunnels > Settings > Facebook Pixel. Now enable the “Test server events via test_event_code”.
Now paste the test event code there.
Note: We recommend unchecking this option after you’ve finished testing the events.
Step #4: Test and track the events
Run your sales funnels and track the test events here.
That’s it! You have successfully enabled the test server events.
How to log purchase events on the website for troubleshooting?
Sometimes you may need to analyze request and receive responses which Facebook has sent. Therefore, enabling the event logs allows you to capture logs on the website.
To enable the log event, go to WooFunnels > Settings > General
Under Facebook Pixel, check the "Enable Purchase Event Logs" box.
By enabling it, you've allowed WooCommerce to capture your purchase event logs.
You'll be able to check all the purchase event logs by going through WooCommerce > Status > Logs
Note: We recommend unchecking the "purchase event log" option after you’ve finished testing the events.
This is how you can log purchase events on the website for troubleshooting.