Skip to main content
Bricks → MixpanelIntegration guide

Connecting Bricks Builder to Mixpanel

Bricks generates lean markup and is popular with developers, which means the sites built on it are usually fast and the tracking is usually hand-written rather than plugin-driven. Mixpanel is a product analytics tool, not an ad platform, which means it has no attribution model of its own and will faithfully report whatever event schema you give it — including a bad one. The join between them succeeds or fails on one thing: whether the distinct_id reaches the Bricks form submission before the conversion happens, because Mixpanel can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Bricks Builder forms into Mixpanel on the right distinct_id

Read mixpanel.get_distinct_id() into a hidden Bricks field so the server-side submission lands on the visitor who browsed. Call identify with your user ID when the lead becomes an account or contact, and send CRM stages as server events. Use one Form Submitted event with form ID and page properties, keep one path, and set $insert_id.

Mixpanel on a Bricks site is normally a snippet in the theme header or a Bricks code element, set up by whoever built the site. The submission you send server-side has to carry the distinct_id that snippet generated: read it with mixpanel.get_distinct_id() on the page and write it into a hidden field on the Bricks form. Without it, the lead becomes a new Mixpanel user with no landing page, no UTM properties and no funnel history behind it.

Then decide identity. If the form creates an account or a CRM contact, call identify with your own user ID at that point so Mixpanel merges the anonymous activity, and send later CRM stages (qualified, booked, won) as server events on that user ID. Send every form as one event, Form Submitted for instance, with form ID and page as properties, so a developer adding a new Bricks form does not quietly add a new event name to the project.

The most common break here: because Bricks forms submit over AJAX, a developer wires mixpanel.track into the form's success handler, and later someone adds a server event for reliability. Both run, and both count. Keep whichever path is more reliable (usually the server), set $insert_id from the submission ID so retries collapse, delete the other, and note in the project which path is authoritative.

Bricks → Mixpanel · what breaks

Why this join usually fails — Bricks → Mixpanel

  1. 01

    The distinct_id never reaches Bricks

    Custom implementations vary per site, and forms submit over AJAX by default.

  2. 02

    Undocumented custom tracking

    A lean hand-built implementation is usually correct and almost never written down. The next person to touch the site either duplicates it or breaks it, and both failures are silent.

  3. 03

    One event schema, two teams, no agreement

    Marketing names an event Purchase, the product team names it purchase_completed, and both are sent. Mixpanel treats them as unrelated, every funnel silently splits, and two teams spend a quarter arguing about which number is right when both are.

  4. 04

    Nothing reconciles afterwards

    Mixpanel shows events in the live view within moments. Check that the distinct_id matches the signed-in user rather than a lingering anonymous ID, because that is the failure that quietly breaks every cross-signup funnel.

Bricks → Mixpanel · the fix

What working looks like — Bricks → Mixpanel

  • The distinct_id on every submission

  • Conversions arriving in Mixpanel

    The event lands on the user profile and becomes available in funnels, retention and cohort analysis.

  • Reconciled against the source

    Bricks Builder's own records are the reference, not either dashboard.

Bricks → Mixpanel · architecture

How Bricks and Mixpanel actually connect

  1. 1

    Bricks Builder holds the truth

    Developer-built sites tend to have deliberate, minimal tracking. That is an advantage until the developer leaves and nobody knows what was implemented or where.

  2. 2

    Mixpanel needs a click to match

    Mixpanel needs a distinct_id, an event name and its properties. Events without a distinct_id are rejected; events with the wrong one land on a stranger's profile.

  3. 3

    The identifier is the bridge

    The distinct_id, captured at the visit and carried into the Bricks form submission.

  4. 4

    The event source decides reliability

    Send qualified outcomes per form, with the implementation documented.

  5. 5

    Deduplication at the destination

    Mixpanel deduplicates on $insert_id within a time window. Without it, a retried server request creates a second event, and because Mixpanel is where product decisions get made, that inflation ends up in a roadmap rather than in an ad report.

Bricks → Mixpanel · normal or broken

Working vs. broken, side by side — Bricks → Mixpanel

Normal, not a fault

  • The distinct_id present on the submission

    Visible on the record itself in Bricks Builder, not merely captured somewhere on the site.

  • Sent from your CRM record

  • Deduplicated correctly

    Mixpanel deduplicates on $insert_id within a time window. Without it, a retried server request creates a second event, and because Mixpanel is where product decisions get made, that inflation ends up in a roadmap rather than in an ad report.

  • Reconciles with the source

    Mixpanel's count and Bricks Builder's records agree within a few percent over a closed window.

Actually broken

  • The distinct_id missing on most records

    Custom implementations vary per site, and forms submit over AJAX by default.

  • Sent from the browser

    A lean hand-built implementation is usually correct and almost never written down. The next person to touch the site either duplicates it or breaks it, and both failures are silent.

  • Counted twice, or not at all

    Marketing names an event Purchase, the product team names it purchase_completed, and both are sent. Mixpanel treats them as unrelated, every funnel silently splits, and two teams spend a quarter arguing about which number is right when both are.

  • Nobody has reconciled it

    The dashboard shows a number and no one has compared it to Bricks Builder.

Bricks → Mixpanel · diagnose

Diagnostic order — Bricks → Mixpanel

  1. 01

    Count submissions carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Document the existing implementation before modifying it

    On developer-built sites this is the step that prevents the most damage.

  4. 04

    List every event name in the project and look for near-duplicates

    Case differences, tense differences and synonyms are the usual finding, and they are cheap to fix before a year of data is built on them.

  5. 05

    Read the match rate, not the success message

    Mixpanel shows events in the live view within moments. Check that the distinct_id matches the signed-in user rather than a lingering anonymous ID, because that is the failure that quietly breaks every cross-signup funnel.

Bricks → Mixpanel · prove

How it gets proven — Bricks → Mixpanel

Against Bricks Builder's own records, not against either platform's dashboard.

Source of truth

Your CRM record, joined to the submission.

  • The distinct_id confirmed present on a live submission.
  • Purchase events reconciled per transaction against your billing system, with identity aliasing verified across the signup boundary.
  • Qualified outcomes reconciled per form against imported conversions, with the implementation documented.

Bricks → Mixpanel · free audit

What we check in the free audit

  • Count submissions carrying the distinct_id
  • Follow one real conversion end to end
  • Document the existing implementation before modifying it
  • List every event name in the project and look for near-duplicates
  • Read the match rate, not the success message

Checked against

Your CRM record, joined to the submission.

Get my free conversion tracking audit

Free30 minutesNo obligation

Bricks → Mixpanel · when not to buy

When you don't need this — Bricks → Mixpanel

  • If Mixpanel already reports conversions that reconcile against Bricks Builder's records within a few percent, this join is working and there is nothing to buy.
  • Measure identifier coverage yourself first — pull your last hundred submissions and count how many carry the distinct_id.
  • If the original developer is available, an hour of their time is worth more than a week of reverse engineering.
  • If you already have the same events in a warehouse and nobody is running product analysis on them, adding Mixpanel adds a second source of truth rather than an answer.

Bricks → Mixpanel · what we deliver

What gets built — Bricks → Mixpanel

  • Identifier capture into Bricks

    Document what exists before changing anything, then bind to the form submission event and pass the identifier through a hidden field.

  • Event source: your CRM record

    Send qualified outcomes per form, with the implementation documented.

  • Dispatch to Mixpanel

    The Mixpanel ingestion API, posted server-side from your backend with the distinct_id and event properties.

  • Reversals where they exist

    Disqualified submissions reverse.

Written guarantee

95%+ tracking accuracy

Measured against Your CRM record, joined to the submission.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Bricks → Mixpanel questions, answered

Read the distinct_id from the Mixpanel library on the page, pass it through a hidden form field, and use it on the server-side event. Call identify with your own user ID once the person is known.

Free · 30 min

Get Bricks and Mixpanel joined properly

Free30 minutesNo obligation