We’ve migrated our documentation to a new site, which means some URLs have changed.
Subscriptions

How to add a Facebook tracking pixel?

We don't have a direct integration with Facebook pixels.

The implementation depends on what you are actually looking to track on the page, but the best way to track events in Piano is via our JS callbacks.

We don't recommend adding additional scripts to the integration code directly, so you would have to add the Facebook pixel script to either your website's <head> or end of the <body> tag.

And then use one of the callbacks to trigger the pixel's script once the desired event occurs (purchase, login, registration, etc.).

For example, the below sample script would trigger the Facebook pixel's code when a meter runs out or expires. For this purpose, you would listen to the meterExpired callback as described here.

tp.push(["addHandler", "meterExpired", function(meterData){
fbq('track', 'PageView')
}]);

Last updated: