If you’re running ads for your Payhip products on Facebook, you’ll want to know whether or not the ads are working. To do this, install the Facebook pixel on your Payhip site – this will send information back to Facebook about the customers that came to Payhip via your ads.
In this article:
Install the Facebook pixel
Once you’ve created your pixel according to Facebook’s instructions, all you need to do is find your pixel ID and paste it into your Payhip account.
You can follow step 1 in Facebook's instructions. Once you get to step 2, please follow our instructions instead.
To find your pixel ID, go to Data Sources in Facebook’s Events Manager. There you’ll see your pixel listed along with its ID:
Copy the pixel ID. Then, in your Payhip admin dashboard, go to Account > Settings > Advanced Settings. Scroll down to Facebook pixel and paste in the pixel ID. Finally, scroll down to the bottom of the page and hit Save settings to save your changes.
Only paste in the short unique number into the above field.
You do not need to install the full base code - we already have the base code on your site. You just need to add in the Facebook pixel ID and we inject that with the rest of the code.
Which events trigger the pixel?
The pixel will be triggered when the following events happen on your Payhip site:
- ViewContent – When somebody views one of your pages.
- InitiateCheckout – When somebody starts the checkout flow.
- Purchase – When somebody completes the checkout flow.
Please note that it may take some time for events to appear as "Active Events" when setting up the conversion event for your ad. You can set up your ad with an inactive event and this will update once the event becomes active.
To speed this up (particularly for the initiate checkout/purchase event), go through the checkout process on your Payhip store. You can do this with a free product, or by using a 100% off coupon. More on that here: Testing Checkout Flow
How can I test that my pixel is working?
If you want to make sure that your pixel is working correctly, try out the Facebook Pixel Helper extension on Chrome.