> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.poptin.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to track Poptin conversions in Facebook Ads Manager?

If you run a Facebook campaign and want to track conversions of your poptins on your Ads Manager, you need first of all to have the [pixel installed on your website pages](https://www.facebook.com/business/help/952192354843755).

You can use [Facebook Pixel Helper](https://chrome.google.com/webstore/detail/facebook-pixel-helper/fdgfkebogiimcoedlicjlajpkdmockpc) to make sure your Facebook pixel is installed correctly.

Then all you need to do, is to add a Custom Conversion on your poptin's conversion code area.

1. Go the the [editing page of your poptin](https://help.poptin.com/article/show/60993-how-to-edit-your-poptin-s-design)

2. Open the "Email and integrations" section

3. Copy the code below and paste it in the Conversion Code area:

```javascript
<script>
fbq('track','Lead');
</script>
```

![](https://storage.crisp.chat/users/helpdesk/website/7a34af3b43dae400/screenshot-2023-11-23-at-34745_1cr45y5.png)

4. Then click "Publish Changes" on the top right corner (or "next" if it is a new poptin).

Didn't work?

Try this code below instead, and don't forget to change to your pixel ID:

```javascript
<!-- Facebook Pixel Code -->
<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '1022837701123456');
fbq('track','PageView');
fbq('track', 'Lead');
</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=1022837701123456&ev=PageView&noscript=1"/>
</noscript>
<!-- End Facebook Pixel Code -->
```

* This feature is available on any paid plan
