You can easily track leads collected by WisePops into your Facebook Advertising analytics. We will make use of the WisePops JS Callbacks feature.

Prerequisite

The Facebook pixel must already be installed on your website, on the page where WisePops will collect leads. Please follow this guide from Facebook to learn how to do it.

Track the Lead Event on Facebook

Once a WisePops form is posted and the validation passes, we want to track the lead event on Facebook. 

Open your popup in the editor. In the left menu, select JS.

Create a new callback, linked to the After form submit event:

Copy and paste the following snippet:

fbq('track', 'lead');

Since this callback is expecting Javascript, the snippet does not need to be surrounded with <script>  tags.

Save your popup.

You're done! The pixel will be fired every time an email is submitted.

Did this answer your question?