Meta Pixel (formerly Facebook Pixel)

Connect Meta Pixel with Webflow to send page views, purchases, and leads to Meta Events Manager, then add the Conversions API for server-side events.

→
↗
►
↓
←
↑
Install app
→
↗
►
↓
←
↑
View website
→
↗
►
↓
←
↑
View lesson
→
↗
►
↓
←
↑
A record settings
→
↗
►
↓
←
↑
CNAME record settings
Meta Pixel (formerly Facebook Pixel)

Your Webflow site records form submissions and orders, but those records alone don't tell Meta which ads led to a sale or a sign-up. Meta Pixel reports visitor actions from the browser, while the Conversions API can send events from a server. Browser tracking can also miss conversions when an ad blocker or a browser privacy setting stops the script.

Adding a Pixel ID in site settings loads the pixel across your published site. With Ecommerce turned on, Viewed product, Added product to cart, and Purchased product events flow into Meta Events Manager without custom code. Page-level scripts add lead and click events. The Conversions API sends server-side events that Meta deduplicates against browser events when their event names and IDs match.

Performance marketers running Meta and Instagram campaigns get conversion data tied to real orders and leads. Ecommerce store owners use the same events to build retargeting audiences and catalog ads. Freelancers and agencies set up consent-aware tracking on client sites. Developers take the API route when browser tracking misses conversions.

How to integrate Meta Pixel (Formerly Facebook Pixel) with Webflow

Meta Pixel is a JavaScript snippet that loads fbevents.js and reports visitor actions to Meta Events Manager. Its base code calls fbq('init') with your Pixel ID and fbq('track', 'PageView'). You send standard events such as Purchase and Lead with fbq('track') and custom events with fbq('trackCustom').

Meta's Get started with the Meta Pixel documentation page

The Meta Pixel-Webflow integration supports 5 approaches:

  • The native Meta Pixel setting loads the pixel and sends Ecommerce events from a single Pixel ID, without writing code.
  • Custom code and Code Embed let you fire click, lead, and consent events on specific pages.
  • Marketplace apps add Conversions API events and deduplication through third-party apps, without middleware.
  • Zapier and Make forward Webflow form submissions to Meta's Conversions API, and Zapier also forwards orders.
  • The Webflow Data API and Meta Conversions API give you full control over server-side events and deduplication, but require server-side development.

Most implementations combine two or more of these methods, depending on setup complexity.

Connect Meta Pixel in site settings

You need a pixel in Meta Events Manager first, and Meta's pixel setup guide covers creating one. Steps 1 and 2 below follow Meta's guide, and the rest follow Webflow's Embed Meta Pixel help article.

To set up the integration:

  1. In Meta Events Manager, click Connect data, select Web, and click Connect.
  2. Enter a name for your pixel, click Create pixel, and copy the new ID.
  3. If you previously pasted the pixel base code into custom code, delete that code.
  4. Go to Site settings > Apps & Integrations > Meta Pixel.
  5. Paste only the numeric Pixel ID, not the full script.
  6. Click Save changes and publish your site.

After you save the ID and publish, the setting gives you:

  • The pixel on your published site, with no app or custom code
  • Ecommerce event tracking whenever Ecommerce is enabled
  • A "Delay for cookie consent" toggle that holds the pixel until visitors accept cookies
  • Conversion data you can use to define custom audiences for dynamic ad campaigns

The Embed Meta Pixel help article doesn't document Conversions API support, so use the server-side methods below for that.

Add Meta Pixel events with custom code and Code Embed

For Meta events the native setting skips, use custom code. Page-level scripts handle clicks and thank-you pages, while site-wide footer code handles consent. A Code Embed element places code on the canvas, and the consent banner tutorial uses one. Custom code requires a Core, Growth, Agency, or Freelancer Workspace, or an active Site plan. The code sections accept HTML, CSS, and JS only, and scripts don't go live until you publish.

Track button and link clicks with page custom code

Clicks on buttons and links map to standard events like Contact. Give the element a unique ID in Webflow, then listen for clicks in page custom code, as in Meta's button click example. Leave the Meta Pixel base code out of the snippet when your Pixel ID is already in site settings.

To track a click:

  1. Select the button or link and give it a unique ID, such as demo-button.
  2. Open the Pages panel > Page settings > Custom code.
  3. Paste a script like this into the Before </body> tag section, where Webflow says scripts generally belong, and replace the ID with yours:
    <script type="text/javascript">
      var button = document.getElementById('demo-button');
      button.addEventListener(
        'click',
        function() {
          fbq('track', 'Contact');
        },
        false
      );
    </script>
  4. Save your changes and publish the site.

A click listener fires whether or not anything behind the click succeeds, so use it for intent signals rather than confirmed conversions.

Track form leads on a thank-you page

The in-place form success message makes a weak trigger. Madder's Webflow guide notes that a script inside the success block runs when the page loads, before the form is submitted. A redirect gives the Lead event its own URL, so it fires only after a completed submission.

To track a form lead:

  1. Create a thank-you page, for example /thank-you.
  2. Select the Form block, open the Settings panel, and set the redirect to that page.
  3. Open the thank-you page's Page settings and add <script>fbq('track', 'Lead');</script> to the Inside <head> tag section.
  4. Save your changes and publish the site.

Third-party guides such as Keepers Digital also describe custom conversions in Events Manager. These match a URL rule with no code and work with the same thank-you page.

Gate the pixel behind a cookie consent banner

Sites that collect personal data from EU residents need to comply with GDPR. The "Delay for cookie consent" toggle holds the pixel until a visitor accepts cookies, and you then need a banner to ask for consent. The banner tutorial uses a Code Embed element, which has the same plan requirement as custom code.

To add the banner:

  1. In Site settings > Apps & Integrations > Meta Pixel, set Delay for cookie consent to YES.
  2. Build a banner with the ID consentPopup and an accept button with the ID consentBtn. Add a decline or close button too.
  3. Wrap the banner in a div with the class popupWrapper, set its position to fixed, and make it a component on every page.
  4. In the Interactions panel, hide the wrapper on accept or decline clicks and show it on page load.
  5. Go to Site settings > Custom code > Footer code and add the script from Webflow's help article:
     <script type="text/javascript">
      var popup = document.getElementById('consentPopup');  
      var alreadyLoaded = window.localStorage.getItem('fbGrantConsent') === 'true';
      //Show the consent banner if consent is not granted, hide it if consent is already granted.  
      if (alreadyLoaded) {    
      popup.style.display = 'none';    
      fbq('consent', 'grant');  
      } else {    
      popup.style.display = 'block';  
      }
      
      //Grant consent and store it in localStorage of the browser  
      var consentBtn = document.getElementById('consentBtn');  
      consentBtn.addEventListener("click", function() {  
      fbq('consent', 'grant');    
      window.localStorage.setItem('fbGrantConsent', 'true');  
      });
    </script>

Apply the interactions to the popup wrapper; applying them to the banner itself may stop the custom code working. Meta's consent documentation calls fbq('consent', 'revoke') before fbq('init') and says to call revoke on every page. Webflow's own tracking consent tools cover Analyze and Optimize and don't mention the Meta Pixel, so the toggle and this script are what hold the pixel back.

Add server-side events with Marketplace apps

No Meta-built app appears in the Webflow Marketplace listings reviewed for this guide. Third-party apps add the Conversions API next to the browser pixel. PixelFlow and Signal Beam send events from both browser and server and deduplicate them. Converly sends Meta conversions when someone submits a native Webflow form. Pick one of these when you want server-side tracking without building middleware. PixelFlow's listing states it is not affiliated with, endorsed by, or sponsored by Meta Platforms.

To set up the integration:

  1. Open the app's Marketplace listing and click Log in to install.
  2. Authorize the app for your site. Signal Beam connects through OAuth.
  3. Enter your Meta Pixel ID and a Conversions API access token.
  4. Assign events to buttons, forms, or pages inside the app, then publish.

Depending on the app, you get:

  • AddToCart, InitiateCheckout, and Purchase events on Webflow Ecommerce, sent with order value and currency (PixelFlow)
  • Page URL triggers, such as /thank-you = Lead, plus a Visual Tagger for buttons, forms, and links (PixelFlow)
  • A consent mode where events fire only after users opt in, with Event Match Quality scores per event (Signal Beam)
  • Conversions sent to Meta whenever someone submits a native Webflow form (Converly)

If an app also loads the browser pixel, remove your manual base code so each event counts once.

Connect Webflow and Meta with Zapier or Make

Zapier and Make both link Webflow to Meta's Conversions API. Each one forwards Webflow form submissions to Meta as server-side events tied to your pixel, and Zapier also covers orders. Use this route to send lead and purchase events without hosting your own server. Zapier's app is Facebook Conversions, and Make's is Facebook Conversions API.

Each platform lists these triggers and actions:

  • Webflow New Form Submission → Facebook Conversions Send Lead Event (Zapier)
  • Webflow New Order or Updated Order → Facebook Conversions Send Purchase Event (Zapier)
  • Facebook Conversions Send Other Event, for events outside the lead and purchase actions (Zapier)
  • Webflow form submissions → Facebook Conversions API Send Event(s) (Make)

If the browser pixel also fires Lead for the same submission, have each source report a different event, or use the event ID deduplication described in the API section.

Build with the Webflow and Meta Conversions APIs

This path fits developers who want form and order data sent server-side with hashed customer details. Webflow's custom code sections run HTML, CSS, and JS in the browser only, so a middleware layer sits between the two APIs. That layer can be a serverless function or your own backend.

These APIs cover the integration:

  • The Meta Conversions API handles server events through POST https://graph.facebook.com/{API_VERSION}/{PIXEL_ID}/events
  • The Meta Pixel API reference covers fbq('track'), standard events, and the eventID parameter
  • Webflow's Data API handles Webflow CMS collections, form submissions, and orders
  • Webflow webhooks trigger real-time events such as form_submission and ecomm_new_order

Data API calls take a site token in the Authorization header, while Meta expects an access_token query parameter. Meta announced Graph API v26.0 on July 29, 2026.

Forward form submissions to the Conversions API

A form_submission webhook gives your middleware each lead the moment it arrives. The handler verifies the request, hashes the email, and posts a Lead event to Meta. Meta's schema requires event_name, event_time, user_data, and action_source on every event, and website events also need event_source_url and client_user_agent.

To implement this:

  1. Send a POST request to the Create Webhook endpoint with "triggerType": "form_submission" and your handler's url. Use a site token or Data Client bearer token with the forms:read scope.
  2. Add the optional filter parameter with a form name to receive only that form's submissions.
  3. In your handler, validate the x-webflow-signature HMAC with SHA-256. The signing key is the secretKey returned when you register the webhook with a site token, or your OAuth app's client secret. Reject requests whose x-webflow-timestamp is more than 5 minutes old, and return HTTP 200 on success.
  4. Read the submitted fields from the payload's data object. Trim and lowercase the email, then hash it with SHA-256 for the em field. The webhook carries no browser user agent or page URL, so capture both in hidden form fields alongside the event ID described below.
  5. Convert submittedAt to a Unix timestamp in seconds for event_time. Events older than 7 days make Meta reject the whole request.
  6. Post the event to Meta:
    curl -X POST \
      -F 'data=[
           {
             "event_name": "Lead",
             "event_time": <UNIX_TIMESTAMP>,
             "event_id": "<EVENT_ID>",
             "action_source": "website",
             "event_source_url": "<FORM_PAGE_URL>",
             "user_data": {
               "em": ["<SHA256_OF_NORMALIZED_EMAIL>"],
               "client_user_agent": "<CLIENT_USER_AGENT>"
             }
           }
         ]' \
      -F 'access_token=<ACCESS_TOKEN>' \
    https://graph.facebook.com/v26.0/<PIXEL_ID>/events
  7. While testing, add the test_event_code from Events Manager's Test Events tab, then remove it before going live.

Set action_source to website, the value Meta lists for conversions made on your website.

Send Webflow Ecommerce orders as Purchase events

The ecomm_new_order webhook carries what a server-side Purchase event needs. Its payload includes orderId, customerInfo.email, and a customerPaid object with unit, value, and string. The value field is a string in the currency's base unit, so the reference sample 11873 pairs with the display string $ 118.73 USD.

To implement this:

  1. Create a webhook with the ecomm_new_order trigger pointing at your handler.
  2. Map customerPaid.unit to custom_data.currency and convert customerPaid.value to a decimal for custom_data.value.
  3. Hash customerInfo.email into user_data.em, and use orderId to build a unique event_id.
  4. Post the event to /{PIXEL_ID}/events with event_name set to Purchase.

Webflow doesn't document whether the native Purchased product event carries an eventID. To avoid double counting, send Purchase from one source only, or move browser tracking to an app that shares event IDs.

Deduplicate browser and server events

The browser call passes eventID as the fourth argument to fbq('track'). The server event sends the same string as event_id.

To implement this:

  1. Generate a unique ID in the browser, for example lead-6f1c2a.
  2. Fire the browser event with it: fbq('track', 'Lead', {}, {eventID: 'lead-6f1c2a'});
  3. Store the same ID in a hidden form field so it arrives in the webhook data.
  4. Send that value as event_id, with a matching event_name, in the Conversions API request.

Meta's server event reference says it keeps only the first of matching events received within 48 hours, and favors the browser event when both arrive within 5 minutes of each other.

What you can build with the Meta Pixel Webflow integration

These builds start from the Pixel ID in site settings and add code, apps, or webhooks where the native setting stops.

  • Ecommerce retargeting with catalog ads: A Webflow store syncs its products to Facebook Catalog Manager through a data feed. Native pixel events then feed dynamic ads aimed at product viewers and cart abandoners. The feed excludes inventory, so it can't create a Facebook shop.
  • Lead-generation landing pages with server-side backup: A demo request page redirects to /thank-you, which fires a browser Lead event. A form_submission webhook handler, built as in the API section, reports the same submission server-side with a matching event_id taken from a hidden form field.
  • Engaged-reader tracking on blog posts: A Collection page template for articles runs custom code on every post. Following Meta's advanced examples, it fires a Lead event once the end of the article becomes visible.
  • Consent-gated tracking for EU visitors: A site serving EU residents turns on "Delay for cookie consent" and adds a banner component to every page. The pixel loads only after a visitor clicks accept, and localStorage remembers the choice.

Most of these builds touch visitor consent before any event fires, so settle your banner first. Set up Cookiebot consent if you want one banner across every tracking script.

Frequently asked questions

  • Webflow's Embed Meta Pixel help article lists no plan requirement for the Pixel ID setting in Site settings. Event scripts and the consent banner rely on custom code and the Code Embed element, which need a paid Site plan or a Core, Growth, Agency, or Freelancer Workspace plan.

  • Usually the pixel is installed twice. If you pasted the base code into custom code, remove it before adding your Pixel ID in Site settings > Apps & Integrations > Meta Pixel, as the Embed Meta Pixel article instructs. IsPixelWorking's duplicate pixel guide advises that when a Conversions API tool installs its own browser pixel, you keep the tool's installation and remove the manual base code.

  • Use a thank-you page for browser leads. Set the form to redirect there in its Settings panel, as the forms article describes, and fire fbq('track', 'Lead') from that page. For server-side leads, Zapier's Facebook Conversions app has a Send Lead Event action that can run on each new Webflow form submission.

  • No. Webflow's Embed Meta Pixel help article covers the browser pixel and Ecommerce events and doesn't mention the Conversions API. For server-side events, use a Marketplace app such as PixelFlow or Signal Beam, or run your own handler on Webflow webhooks.

  • Publish the site, load a page, and check Events Manager for a new PageView. Meta's Get started with the Meta Pixel guide says to open your pixel's details and refresh after a few minutes if nothing appears. To test custom code without touching your live domain, publish to the webflow.io staging subdomain first.

Meta Pixel (formerly Facebook Pixel)
Meta Pixel (formerly Facebook Pixel)
Joined in

Description

Paste your Pixel ID in Site settings to send page views and Ecommerce events to Meta. Add custom code, Marketplace apps, or the Conversions API for leads and server-side events.

→
↗
►
↓
←
↑
Install app

This integration page is provided for informational and convenience purposes only.


Other Analytics and targeting tools integrations

Other Analytics and targeting tools integrations

Google site tools for Webflow

Google site tools for Webflow

Google site tools for Webflow is Webflow's own app for reading GA4 and Search Console data inside Webflow and adding your Google Tag Manager script without code.

Analytics and targeting tools
Learn more
Data Goat (by Flow Ninja)

Data Goat (by Flow Ninja)

Data Goat shut down in November 2024. Replace its tracking with Webflow Analyze or a marketplace analytics app, GA4 scripts you install through Code Embed, and the Webflow Data API v2 for form data server-side.

Analytics and targeting tools
Learn more
Countdown Bar Timer

Countdown Bar Timer

Connect Countdown Bar - Timer with Webflow to add urgency-driven countdown timers to landing pages, product pages, and sitewide promotions.

Analytics and targeting tools
Learn more
Smartarget Reviews

Smartarget Reviews

Connect Smartarget Reviews with Webflow to display curated customer testimonials and star ratings on your site without building a review system from scratch.

Analytics and targeting tools
Learn more
TripleChecker

TripleChecker

Connect TripleChecker, an automated proofreading tool, with Webflow to scan your published site for spelling errors, grammar mistakes, and broken links on a recurring schedule.

Analytics and targeting tools
Learn more
Gemini

Gemini

Connect Google Gemini to Webflow to add AI text generation, image analysis, and automated content pipelines to your site.

Analytics and targeting tools
Learn more
Datadog

Datadog

Connect Datadog with Webflow to monitor real user performance, track frontend errors, and run synthetic uptime checks on your published site.

Analytics and targeting tools
Learn more
Braintrust

Braintrust

Connect Braintrust with Webflow to monitor AI-powered features on your site and sync evaluation data into your CMS.

Analytics and targeting tools
Learn more
Sentry

Sentry

Connect Sentry, an application monitoring and error tracking service, with Webflow to capture JavaScript exceptions, record session replays, and track Core Web Vitals on published pages.

Analytics and targeting tools
Learn more

Related integrations

No items found.

Get started for free

Try Webflow for as long as you like with our free Starter plan. Purchase a paid Site plan to publish, host, and unlock additional features.

Get started — it’s free