← All AI systems11 of 14 · Run the business

Lead Attribution Tracker

The CRM only remembers the last thing that brought a lead in, so nobody could see the full path before a booking. I built my own tracker, with no paid software, that records each channel a visitor came through and links it to the person who books.

every visit + booking5 steps0 use AI5 decisions
Starts when

Someone visits the website or books a call.

what it buys me

Shows every channel that touched a lead before they booked, without buying attribution software.

how it flows · runs left to right
Outside toolRulebookThe teamAIAI stepdecision
01

AI used
◆ Decision

Step by step

  1. 01
    Tag the visitorOutside tool

    The website sets an anonymous first-party visitor cookie and quietly logs each page touch with its source, campaign and referrer.

    AI used
    None (plain code)
    ◆ Decision
    Team visits can be excluded with an opt-out link.
    Cloudflare Worker
  2. 02
    Work out the channelRulebook

    Plain rules, not AI, label each touch as Meta paid, Google paid, organic social, search, email or direct, from the URL tags and referrer.

    AI used
    None (rules, not AI)
    ◆ Decision
    Order of rules decides the label; a click ID beats a referrer.
    Cloudflare WorkerCloudflare D1 (SQL)
  3. 03
    Link to a personOutside tool

    Every 15 minutes the system reads new bookings from the CRM and links each visitor to a contact using the ID passed on the confirmation page.

    AI used
    None (code)
    ◆ Decision
    Link by contact ID first, then ad click ID, then confirmation timing as a fallback.
    GoHighLevelCloudflare cron
  4. 04
    Add outcomesRulebook

    Show-up and sales outcomes from the CRM, and buyers from the funnel dashboard, are joined on a hashed email.

    AI used
    None (code)
    ◆ Decision
    Match on the hash only; no match leaves the person with no outcome.
    Cloudflare D1 (SQL)
  5. 05
    View the dashboardThe team

    The team opens overview, people and health views behind a company-only login.

    AI used
    None (human)
    ◆ Decision
    The team decides what to change in spend or content from what it shows.
    Cloudflare Access
Pieces involvedCloudflare WorkersCloudflare D1 (SQL)Cloudflare AccessGoHighLeveln8n
Cloudflare SQL

SQL on Cloudflare (D1) stores this system's high-volume data, like tracked visits and daily funnel numbers, and the results the dashboard computes.