Alerts and tools

    Lead Capture Tied to MLS Listings, Saved in Supabase

    Every form on a listing page saves the lead with the listing it came from.

    Part of the What to Build With MLS Data guide · Last reviewed 2026-11-20

    Listing enquiry form saving leads to Supabase

    Lead capture tied to listings means every enquiry form saves the person's details together with the listing they asked about. In a Lovable or Bolt project the natural place is a Supabase table: one row per enquiry with name, email, phone, message, the ListingKey, the address and the page it came from. The same server code then emails the agent, so the lead is both saved and seen.

    Key takeaways

    • One table for enquiries, with the ListingKey on every row.
    • Save first, then email, so a failed email never loses a lead.
    • Ask for a phone number, so the agent can call.
    • Report which listings and pages bring enquiries.

    Need the data feed for this? Saige is an approved MLS data vendor in BC. Send a request and our team will contact you.

    The enquiries table

    • created_at, name, email, phone, message
    • listing_key, address, list_price at the time
    • source_page, and consent to email if asked

    Keep the table private

    Turn on row level security in Supabase so visitors can add a row but never read the table. The agent reads it through an admin page that requires sign-in.

    Frequently asked questions

    Can I use a CRM instead of Supabase?

    Yes. Send the same fields to the CRM from your server code. Saving a copy in your own table as well protects against a CRM outage.

    Should the form ask for a phone number?

    Yes. A required phone field gives the agent a direct way to reach the person.

    How do I track form sends in Google Analytics?

    Send a generate_lead event when the form succeeds, with the listing ID as a parameter.

    Related pages in this guide

    Sources

    Every claim on this page that could be checked against a primary source is linked below. Where something is not publicly documented by a vendor, the page says so rather than filling the gap with an estimate.

    MLS API for BC

    Put live MLS listings on the site you are building

    Saige is an approved MLS data vendor for Greater Vancouver REALTORS, Fraser Valley Real Estate Board, Chilliwack and District Real Estate Board and BC Northern Real Estate Board. Send a request and our team will contact you to check what your board allows and how to connect your builder.

    Call 604.401.4849