Meta Pixel, Conversions API and attribution

How do I install the Meta Pixel on a Wix site for lead generation?

Two routes on Wix: the built-in Meta connection that also sends server events, or custom code in the head. How to fire one Lead per form on a Wix site.

Published

On Wix there are two clean routes: connect Meta through the Wix dashboard, which also gives the site a server-side route to the Conversions API, or paste the base code in the custom code area set to load in the head. Choose one, remove the other, and make sure the Lead fires once per saved form submission rather than on the click.

Route 1: the Wix connection

Meta lists Wix among the commerce platforms that work as partner integrations for the Conversions API, at no extra cost. That is the practical advantage of this route: the platform that renders the site also knows when a form was submitted, so a server event can be sent even when the visitor’s browser blocked the Pixel.

  1. In the Wix dashboard, open the marketing or integrations area and find the Meta connection.
  2. Connect the Facebook account that has access to the right business portfolio, then pick the Pixel.
  3. Choose which form submissions count as a lead. One event, one form, so the mapping stays readable later.
  4. Publish the site. The connection only applies to the live version, not to the editor preview.
  5. Submit a test form on the live site and check that the event arrives in Events Manager.

Dashboard labels change between versions, so look for the Meta or Facebook item rather than a specific menu path. What matters is which events the platform sends on its own, as the platform integrations row in Meta Pixel setup warns: a connection that already reports a Lead makes any coded Lead the second copy.

Route 2: the base code by hand

Custom code is the route for a Wix site whose forms submit somewhere else, or for a landing page built in Wix next to a CRM that owns the conversion.

  1. Copy the base code from Events Manager, under Data sources, for the Pixel you intend to use.
  2. In the site dashboard, open the custom code area, add a snippet and paste the code unchanged.
  3. Set it to load in the head, on all pages. A code added at the end of the body fires the PageView late, and a visitor who leaves quickly is never counted.
  4. Publish, then load the live site with the browser console open and confirm the Pixel initialised with the ID you expect.
  5. Check the site’s cookie banner: if it holds back custom code until consent, nothing is sent until someone accepts.

Keep the snippet in one place. Two snippets, or a snippet next to the platform connection, produce duplicate PageViews and, worse, duplicate Leads.

Which events to send

EventWhen it firesSent by
PageViewthe landing page or form page loadsthe base code, automatically
Leada form submission has been savedthe platform connection, or your own call after the success state
A custom event such as FormStartthe visitor begins filling the formthe browser only, and only if you code it

A Wix form that shows a confirmation screen has a natural success state, and that is where the Lead belongs. A refresh of the confirmation, or a back button visit, must not create a second Lead: tie the event to the submission, not to the page load.

If the platform connection sends the Lead, leave it alone. If you code your own, pass an event ID that matches the server side, so Meta pairs the two copies instead of counting one form twice. Meta pairs them when the IDs and the event names match inside 48 hours, keeps the first copy, and favours the browser copy when the two arrive within five minutes of each other. The mechanics are in Pixel and CAPI deduplication.

Building a server route on Wix

If the platform connection is not available for the plan or the template, the server-side options are the same as on any site: a partner that already posts from the server, a Conversions API Gateway relaying the browser events through a server you host, or a direct integration from a backend that saw the submission. Meta’s four setup options never change, and the Conversions API setup covers what each one needs.

The part that does not move is the payload: a hashed email and phone, the fbc and fbp values from the visit, the IP address and the user agent in clear, and one event ID shared with the browser. On a Wix site the fbc value depends on the fbclid reaching the page, so check that the ad’s destination URL has no redirect chain in front of it that rebuilds the query string.

What breaks on a Wix site

  • The platform connection plus a hard-coded base code, so every event fires twice.
  • A Lead on the submit click, which counts failed validations and double taps.
  • A form inside a lightbox or an embedded widget whose success state the snippet never observes.
  • A consent banner that holds back custom code, so a share of visitors is invisible in Events Manager and still submits the form.
  • A site published to a staging address tested instead of the live domain, which sends events from a URL that is not the one the ads point at.

Check it the way Meta checks it

Open Events Manager, choose the Pixel, then Test events. Submit the form on the live site with your own details and look for the Lead with the parameters you expect: name, event ID, and the fbc value when you arrived from an ad click. Then submit again and refresh the confirmation, and confirm the count does not move. Event Match Quality is worth a look at the same time, and the Event Match Quality guide explains which fields move the score.

One habit makes all of this cheaper: keep the count of leads in your own system as the reference, and use Meta’s number to steer delivery. They will differ, and Meta Pixel, Conversions API and attribution covers the reasons. DropCPL takes the landing page off the site builder entirely: the page is served from your own domain, the click is logged there first-party, and each lead leaves for Meta server-side with the ad, the creative and the landing page attached.

Questions on this topic

All questions on this topic →

FAQ

Does Wix support the Conversions API for Meta?+

Yes, through the platform connection rather than code. Meta lists Wix among the commerce platforms that act as partner integrations for the Conversions API, at no extra cost, and what a partner sends depends on the partner. Confirm in Test events that a Lead arrives from the server, not only from the browser.

Where do I paste the Pixel ID in Wix?+

In the Meta integration inside the Wix dashboard, where you connect the account and select the Pixel. If you install the base code by hand instead, it goes in the custom code area, set to load in the head on all pages, so a visitor who leaves early still reports a PageView.

Why does Wix show fewer Pixel events than form submissions?+

The usual causes are a consent banner holding back the base code, a form that submits inside a lightbox the event never sees, or a Lead fired on the click rather than on the saved submission. Test on the live site and check the event in Test events before changing anything.

Can I add the Pixel twice on Wix?+

You can, and it is the most common way to break the count: the Wix integration plus a hard-coded snippet fires every event twice. Pick one route and remove the other, then confirm in Events Manager that a single submission produces a single Lead.

Do I still need the Pixel if Wix sends server events?+

Yes. The browser copy is what puts PageView and the fbc and fbp cookies in place, and Meta pairs the two copies through a matching event ID. Server events cover the visitors whose browser blocked the Pixel; they do not replace it.

Ready to find out what
converts, for real?

Free to start.

Start free →