Skip to main content

How do I set up the Meta Pixel integration (Pixel & CAPI) for my funnel?

Step-by-step guide to connecting your Meta (Facebook & Instagram) Pixel and CAPI to your funnel, adding your Pixel ID and access token, mapping events, and testing your tracking.

Easily connect Perspective with Meta (Facebook & Instagram) to track user interactions and conversions from your Meta ads (Facebook & Instagram). Use this data to optimize your Meta ads, build audiences, and retarget visitors who didn't convert.

💡 Meta Pixel is now reusable across funnels within the same workspace - set it up once and reuse it any funnel! Changes to credentials apply automatically to all connected funnels & you will be informed which funnels need to be republished. Event mapping stays funnel-specific.
​
We recommend adding your Pixel only through this integration, not as code in your funnel's header or in Google Tag Manager. The integration gives the browser event and the server event the same event ID, so Meta counts each action once. A second Pixel added as code doesn't share that ID, so Meta can count your leads twice.

How to add Meta Tracking to your funnel:

1. Go to your funnel in Perspective, click on "Apps" and then on "Meta (Facebook & Instagram)".

2. A pop-up window will open - there you can click "Setup" on the top right.
​


3. Now you can see the integration. We will start to create a tracking account so you can use the same pixel for multiple funnels. For this, click on "Choose account".

4. Then click on "Add a new account".

5. Type a name for your tracking account in perspective. Most times it's best to use the same name as your pixel is named in your Meta Events Manager. You can also see where you should insert your Pixel ID. We'll get this Pixel ID from Meta in the next steps.

6. Go to the Meta Business Suite, click on "All Tools" in the left menu and then on "Events Manager".

7. A new tab will open. At the top left you'll find this small window. Click on "Connect Data".

8. Select "Web".

9. Select "Create new dataset".

10. Now enter a clear and understandable name for your Pixel and uncheck the box. After that, see if the categories in the box below contain topics you are marketing for. If yes, click these. If not, leave it empty and click "Create" at the bottom.

11. Important for the next steps: We will only create a pixel and use a different way to connect the Meta CAPI than the one that Meta is pointing to. Just follow these steps. The "Set up Meta Pixel" is chosen for you; click "next".
​

12. The option "Ad Meta Pixel code to website yourself" is selected for you; then click "Next".

13. The pixel code is shown. You do not have to copy that. Just click "Next". We will get the correct code in a few steps.

14. Click "Next" on the following step.

15. Click "Next" on the following step again.

16. Now it will tell you the setup is complete; it's not. Just click “Continue” and follow the next steps in this guide.

17. A popup will open, just close it using the "X" on the top right.


18. Now reload the page, click on "Datasets", choose the newly created Pixel/Dataset and click "Settings" on the top right menu.
​

19. Here we now find the "Dataset ID" (this is the Pixel ID we need for the funnel). Click on the number once, then it is copied to your clipboard.

20. Go back to your funnel and paste the "Pixel ID or Dataset ID" into the field.

21. Now go back to the "Events Manager" settings page in Meta and scroll down. Activate these two buttons.

22. Scroll further down to "Set up direct integration" and click on the blue text "Generate access token". Now wait 3-5 seconds.

23. A pop up opens. Click on "Generate access token".

24. The Token will generate for a few seconds. Then click on the access token – it is then copied to your clipboard.


25. Go back to Perspective and paste the access key into the corresponding field. You don't need to put in the test event code. We will test the events manually later.

26. Now click "Save" to save the tracking account.
​


27. To tell Meta which actions are valuable to you in this funnel, you will now have to set up the events that will be triggered in your funnel. For this, click on "Add Entry", then two dropdown boxes will appear. Connect the appropriate page or element with the desired events.
​

💡 Pro tip: For the action that should be executed, always use the "Lead" event. For optimal tracking accuracy, don't place this "Lead" event on the thank-you page, but on the button used to submit the form. Otherwise leads can get counted multiple times, when people reload the thank-you page, which can mess up your metrics in the Meta Ads Manager. Learn more in How do I map Meta events in my funnel?

28. When you´ve set up all the Events you want to track, click on "Save settings".

29. Make sure the integration is switched to "on" before republishing your funnel.

30. To make sure everything is applied and published, as the last step you of course need to publish your funnel again. Best do this directly by clicking the lightning bolt at the top of the menu bar.

31. Done – your funnel tracking is now fully set up. 🎉

Testing whether your tracking works:

  1. Open your funnel and make 2-3 test entries yourself.
    ​

  2. You can use the Meta Pixel Helper to check whether your Pixel is firing. (Note: You must have accepted all cookies and deactivated your ad blocker, otherwise no data will be transmitted)
    ​

  3. Open your funnel again and check whether the Meta Pixel Helper shows the correct events with a green check mark (Note: You can find the Meta Pixel Helper after installation at the top right of the browser after clicking the puzzle piece icon).

4. If that works, also check the Events Manager in Meta to see whether the activity was received there. IMPORTANT: It can take 30–60 minutes until the data is displayed there. So give it some time before you start troubleshooting.

This is how it should look in the Events Manager if everything is set up correctly. You'll see the event name as well as the number of times it was triggered. You'll also see when it was last activated.

If your events still don't show up in Events Manager after 60 minutes, or your numbers look wrong, follow Why isn't my Meta Pixel or CAPI working? - Troubleshooting guide.

How to create successful Meta ads:

Don't worry, we've prepared something for you here as well. Discover our comprehensive collection of step-by-step videos and insightful tips that guide you through every stage of setting up your first successful Meta campaign.

You still see the old funnel preview in your ad

After you've made and published changes to your funnel's social preview/link preview, these should also appear in your ad, including the preview image and text.

If they don't, Meta may still be showing the old information. This will update automatically in the next few hours.

But if you want to fix this immediately, you can clear the Meta cache. This helps Meta show your latest changes. Learn how to clear the cache here.

What data does the Meta integration send to Meta?

The native Meta integration sends events from two places: your visitor's browser (Meta Pixel) and our server (Conversions API, CAPI). Both carry the same event ID, so Meta counts each action only once.

Which events are sent?

  • The events you mapped under Apps → Meta (Facebook & Instagram), for example Lead.

  • The automatic events listed below: Page Viewed, Funnel Completed, Session Converted and Funnel Closed.

  • Answer events: when a visitor clicks an answer, Meta gets an event with the answer's ID, for example "Answer Clicked: answer_click_…". The question and the answer text aren't included.

The automatic events and answer events are sent even if you haven't mapped them, and you can't turn them off.

Which data is sent with the events?

  • Contact details your funnel collects: email address and phone number. If your form asks for them, also first and last name, city, ZIP/postal code, country, state, gender and date of birth. These are hashed before they're sent.

  • External ID (hashed).

  • Meta's browser ID (fbp) and click ID (fbc). Meta's Pixel stores these in cookies, so they only exist if the visitor accepted the Meta cookies.

  • User agent (the visitor's browser and device) and the event ID.

Contact details are only sent with events that include them, such as the Lead event on your form's submit button. A page view doesn't include them, even if the visitor already entered them.

IP addresses aren't sent. Perspective doesn't collect visitors' IP addresses. If Meta Events Manager warns that your events have a user agent but no IP address, that's expected and doesn't mean anything is broken.

Your funnel answers aren't sent. Perspective doesn't send the answers visitors give in your funnel to Meta, through either the Pixel or the Conversions API. This lowers the risk of Meta restricting your Pixel or ad account because of sensitive data. You can still see all answers in Perspective, under Metrics → Insights and in your contacts.

Can I stop email and phone number from being sent?

No. Perspective doesn't have a setting to leave contact details out of Meta events. Turning off automatic advanced matching in Meta Events Manager doesn't change what Perspective sends through the Conversions API.

Does the Meta integration wait for cookie consent?

Yes. The Meta Pixel only loads after the visitor accepts the Meta cookies in your cookie banner. Without that consent, your funnel sends no Meta events, so nothing goes through the Conversions API either. The Meta entry in your cookie banner covers both the Pixel and the Conversions API.

If you don't have a cookie banner set up in your funnel, then the tracking runs from the moment the page opens. The first page view goes to both the Pixel and the Conversions API, and so does every later event. If your cookie banner is off and no events are sent to Meta, publish your funnel again.

Explanation: These are the automatically sent events

With the Meta Pixel integration, some events in your funnel are automatically tracked. We've added these to ensure higher data quality. These include, among others:

Page Viewed
Sent when a specific funnel page is visited.

The page's URL ending is also included, for example "Page Viewed: page_e3ia8k".

💡 Pro tip: You can manually adjust the page-specific URL ending via the page settings if necessary. To do this, go into Perspective, click on the desired funnel page in the left column and then on the three dots next to the respective page. Then you can click on "Change URL" and adjust it.

Funnel Completed

Sent when your lead has reached the last funnel page

Session Converted

Sent when a form with an email address or phone number is sent by the visitor

Funnel Closed

Sent when your lead has closed the funnel (tab closed)

Did this answer your question?