Skip to main content

How do I set up Meta Pixel & CAPI in my AI funnel?

Learn how to connect Meta to your AI funnel in the Apps tab, map the events Meta should receive, and test that they arrive.

Connect Meta to your AI funnel to see which of your Meta ads bring in leads, and to build audiences and retarget the visitors who didn't convert. You set it up in the Apps tab of your AI funnel, with the same Pixel ID and access token you would use for a classic funnel.

The Meta (Facebook & Instagram) app sends your events from two places at once, your visitor's browser (Pixel) and Perspective's server (Conversions API, CAPI), and both carry the same event ID, so Meta counts each action only once. The AI builder doesn't add Pixel code to your funnel, and installing the Pixel yourself as header code isn't supported, so the app is the way to connect your tracking.

TL;DR

  • Connect Meta in the Apps tab of your AI funnel, pick or add a tracking account with your Pixel ID and access token, and publish your funnel, because no tracking change is live until you publish again.

  • Map every event you want Meta to receive, for example the button that submits your form to Lead. Session Converted is already mapped to Lead for you.

  • Don't ask the AI Chat to add Pixel code. It lands in the wrong place, such as the access token field, or adds a second Pixel that sends your events again without the shared event ID, so Meta counts your leads twice.

ℹ️ Before you start: You need a Meta Pixel (dataset) and an access token from Meta Events Manager. How do I set up the Meta Pixel integration (Pixel & CAPI) for my funnel? shows how to create them, and those steps in Meta are the same for AI funnels.

How do I connect Meta to my AI funnel?

To connect Meta to your AI funnel, open the Meta app settings in the Apps tab and save a tracking account with your Pixel ID.

  1. Open your AI funnel, click Apps in the top bar, then click the three dots (...) on the Meta (Facebook & Instagram) card and choose App settings.
    ​

    This shows where to open App settings on the Meta (Facebook & Instagram) card in the Apps tab of an AI funnel.

  2. Open Choose account and select the tracking account that holds your Pixel ID, or click Add new account and fill in Name, Pixel ID, and Access Token. Leave Test event code empty unless you want to use Meta's test events.

    This shows the Meta app settings of an AI funnel, where you choose your tracking account and save the settings.
  3. Under Map Your Events to Standard FB Events, click + Add entry and map the funnel events you want Meta to receive.

  4. Click Save settings, then click Publish in the top right to publish your funnel.

Your AI funnel now sends events to Meta for every visitor who accepts the Meta cookies in your cookie banner.

ℹ️ Important: Connect Meta only through the Apps tab, and don't ask the AI Chat to add your Pixel. The AI Chat has put Pixel code into the access token field and added a second Pixel to funnels, and a second Pixel doesn't share the event ID that lets Meta count an action once, so your leads are counted twice. If your funnel already has Pixel code from the AI Chat, remove it, for example in Code Mode, and publish your funnel again.

A tracking account belongs to your whole workspace, so you can pick the same Pixel in another funnel instead of entering it again. Your event mapping stays with the funnel you set it up in.

Where do I find my Pixel ID and access token in Meta?

Your Pixel ID and access token both come from the dataset in Meta Events Manager that your Pixel belongs to.

Open Events Manager, click Datasets, select your dataset and click Settings in the top right. Your Pixel ID is the Dataset ID at the top of that page, and clicking the number copies it to your clipboard.

This shows where to copy your Dataset ID, which is the Pixel ID you enter in Perspective.

Scroll down on the same page to Set up direct integration and click Generate access token. Clicking the generated token copies it to your clipboard.

This shows where to generate the access token for the Conversions API in Meta Events Manager.

If you don't have a dataset yet, How do I set up the Meta Pixel integration (Pixel & CAPI) for my funnel? walks through creating one in Meta step by step.

Which funnel events can I map to Meta events?

The event list of an AI funnel is built from your own funnel, so the left dropdown under Map Your Events to Standard FB Events holds every button and every page you have, plus Session Converted.

  • Buttons appear as Button Clicked and the button's text, for example "Button Clicked: Start the style quiz".

  • Pages appear as Page Viewed and the page's name, for example "Page Viewed: Results".

  • Session Converted (Lead) is already mapped to the standard Lead event, so a visitor who submits a form with an email address or phone number counts as a lead without you mapping anything.

On the right you pick the standard Meta event that your funnel event is sent as, such as Lead, CompleteRegistration or Contact. Click + Add entry again for each further event, and Save settings when you're done.

his shows the event mapping of an AI funnel, where the left dropdown lists the funnel's buttons and pages and the right one the standard Meta events.

💡 Pro tip: Map Lead to the button that submits your form, not to your thank-you page. A visitor who reloads the thank-you page triggers that page's event again, which inflates your lead numbers in Meta Ads Manager.

Which events does my AI funnel send to Meta?

Your AI funnel sends Meta the events you mapped, under the standard Meta event name you picked, plus four events it sends on its own, without you mapping anything:

  • A page view each time a visitor opens one of your funnel pages. It reaches Meta as the standard PageView event, not under the page's own name the way a classic funnel sends it as "Page Viewed: page_e3ia8k".

  • "Session Converted" when a visitor submits a form with an email address or phone number. It is mapped to Lead by default, so it reaches Meta as the standard Lead event unless you change the mapping.

  • "Funnel Completed" when a visitor reaches the last page of your funnel.

  • "Funnel Closed" when a visitor closes your funnel.

Answer clicks are the one thing a classic funnel tracks that an AI funnel doesn't send to Meta. If you optimize your Meta ads on which answer a visitor picked, that signal isn't available on an AI funnel yet.

Events that include contact details, such as the Lead event on your form's submit button, carry the email address and phone number your funnel collected, hashed before they are sent. Perspective doesn't send visitors' IP addresses or their funnel answers to Meta. How do I set up the Meta Pixel integration (Pixel & CAPI) for my funnel? lists the full set of data the integration sends.


​

When does the Meta Pixel load on my AI funnel?

The Meta Pixel loads on your published AI funnel only after a visitor accepts the Meta cookies in your cookie banner. Without that consent, your funnel sends no Meta events.

Perspective detects the services your funnel loads and adds them to the cookie banner of your AI funnel on each publish, so you don't need to add Meta as a service yourself.


​

Why isn't Meta tracking working on my AI funnel?

If no events arrive in Meta Events Manager, check these points:

  • You published your AI funnel after saving your Meta settings, because your changes only reach your live funnel when you publish again.

  • You mapped the event you're looking for, since an event that isn't mapped doesn't arrive under the name you expect.

  • The Pixel ID in Perspective matches the Dataset ID in Meta Events Manager.

  • You accepted the Meta cookies while testing and turned your ad blocker off, since both block the Pixel.

  • Your funnel URL is allowed in Meta's Pixel settings. The Whitelist your domain link in the app settings window takes you to the right place in Meta.

  • Your funnel doesn't contain Pixel code that the AI Chat added. Remove it, for example in Code Mode, and publish your funnel again.

  • You gave Meta 30 to 60 minutes, because events don't appear in Events Manager straight away.

Still nothing in Events Manager? Why isn’t my Meta Pixel or CAPI working? - Troubleshooting guide goes through the remaining causes, such as unconfirmed custom events and an unverified Meta Business account.


FAQ

Do I have to publish my AI funnel again after changing the Meta settings?

Yes, you have to publish your AI funnel again after every change to your Meta settings, including a new Pixel ID, a new access token and every change to your event mapping. Your live funnel keeps running the previous setup until you click Publish.

I added Meta Pixel code to my AI funnel through the AI Chat. What should I do?

If you added Meta Pixel code to your AI funnel through the AI Chat, remove the pasted code, for example in Code Mode, connect Meta in the Apps tab instead, and publish your funnel again. Pixel code added this way ends up in places it doesn't belong, such as the access token field, or runs as a second Pixel that sends your events twice.

Can I use the same Meta Pixel in several funnels?

Yes, you can use the same Meta Pixel in several funnels. A tracking account is saved for your whole workspace, so it appears under Choose account in every funnel, and changes to the Pixel ID or access token apply everywhere it is used. Your event mapping is set per funnel, so each funnel keeps its own.

How do I check that my AI funnel's events arrive in Meta?

To check that your AI funnel's events arrive in Meta, open your live funnel, accept the Meta cookies, and watch the events in the Meta Pixel Helper browser extension. The How to test your integration link in the Meta app settings takes you to it. Then check Meta Events Manager, and give it 30 to 60 minutes before you start troubleshooting.

Did this answer your question?