Back to projects

Full-Stack App

EventsIQ - Click Tracking SaaS

EventsIQ is a lead generation platform I built and run. It captures leads from its own forms, Meta, TikTok, Snapchat and Google lead forms and any webhook, routes each one to buyers in order until one accepts, then sends the sale back to the ad networks with the original click IDs. It syncs ad spend and shows ROAS by campaign, with transparent click tracking on customers' own domains.

EventsIQ - Click Tracking SaaS

Results

Leads routed
33,269
Of leads sold
83%
Median time from lead to sale
3.3s

Three months of live data from one client.

My Role

I designed, built and run EventsIQ end to end: product and architecture, the Next.js app and public site, every ad network integration, billing, infrastructure on Vercel and Cloudflare, docs, and the product videos.

The Problem

Lead generation teams buy clicks on Meta, TikTok, Google and other networks, then sell the leads to buyers. The leads arrive from many places in many shapes, routing them to the right buyer is often manual or done with fragile spreadsheets, and when a lead finally sells the ad network never hears about it. So the networks optimise for form fills instead of sales, spend and revenue live in different tools, and nobody can say which ad actually made money.

The Solution

EventsIQ puts the whole loop in one place. Every lead, from any source, goes through one pipeline: it is stored, cleaned into the same field names and logged. Routing offers it to buyers in order (waterfall or ping post) based on state or any answer, with caps and schedules, and the first buyer to accept gets it, so a lead is never sold twice. The moment it sells, the sale goes back to the network that paid for the click, through each network's server-side conversion API, using the click ID kept on the lead. Ad spend is pulled in every hour, so reports show spend, revenue and ROAS side by side for every campaign.

Screenshots

Leads from Google, TikTok and Facebook flow into EventsIQ, sell to Buyer 2 for $42.00, and the sale is sent to Meta
The whole loop: leads come in from the ad networks, sell to a buyer, and the sale goes back to the network.
Leads split into three streams: TX, FL and AZ to Buyer A then Buyer B, CA to Buyer C, everyone else
Routing by state or any answer, each stream with its own buyers in order.
A staircase of buyers: Buyer 1 full, Buyer 2 said no, Buyer 3 bought for $38.00, Buyer 4 not asked
The waterfall: buyers are asked in order and the first to accept gets the lead.
A sponsored ad links through go.yourbrand.com to a landing page, and the lead joins its click id
Click tracking on the customer's own domain, joined to the lead that the click produced.
A $42.00 sale reported to Meta, TikTok and Google
Each sale reported back to the ad networks through their conversion APIs.
3.2x back for every dollar of ad spend, spend $1,200 and revenue $3,840
Spend synced from the ad accounts next to revenue, for ROAS by campaign.

Key Features

  • Form builder for hosted and embeddable forms, plus Meta, TikTok, Snapchat and Google lead forms and an inbound webhook for any other tool
  • One lead pipeline: every lead stored first, mapped to the same field names, validated and logged step by step
  • Waterfall and ping post routing by state or any answer, with daily caps, schedules and accept rules; the first buyer to say yes gets the lead
  • Server-side conversions with click IDs: Meta Conversions API, TikTok Events API, Google Ads via the Data Manager API, Snapchat, Microsoft Ads, NewsBreak and AppLovin
  • Transparent click tracking on customers' own tracking domains: one plain 302, the destination named in the link, and Google parallel tracking support
  • Postbacks so a buyer's CRM can report a sale days later; the campaign decides which pixel hears about it
  • Hourly ad spend sync and ROAS reports by campaign, plus a graph of sold and rejected leads per buyer
  • Suppression audiences: leads that already converted are synced to ad platforms so you stop paying to reach them again
  • Stripe subscriptions with plan limits, team roles and two-factor sign-in
  • Security hardening: encrypted secrets, sign-in limits, security headers, signup source tracking, cookie consent and accessibility work
  • Public site with SEO (JSON-LD and sitemaps), full documentation, and product videos with ElevenLabs voiceovers

Process

  1. Started from the hardest part, the pipeline: store every lead first, then map, validate, route and report, so nothing is ever lost if a later step fails.
  2. Built the routing engine as an ordered waterfall with accept rules, caps and schedules, then added ping post for buyers who bid before they buy.
  3. Integrated each ad network's lead forms, spend reporting and conversion API one by one, keeping each send separate so one network's outage never blocks the others.
  4. Built the click tracker on Cloudflare for SaaS custom hostnames, so customers add one CNAME and get a tracking domain with HTTPS handled for them.
  5. Moved site media to Cloudflare R2 behind media.eventsiq.io with cache purges, and added an R2 lead backup so leads are kept even if the database cannot take writes.
  6. Wrote the docs and blog, designed the site's grain-field visual style, and produced the guide videos with ElevenLabs voiceovers.

Stack

frontend

Next.js App RouterReactTypeScriptTailwind CSS

backend

Next.js Route HandlersMongoDBMongooseNextAuth with 2FAVercel CronEncrypted secrets

integrations

StripeCloudflare R2Cloudflare for SaaSCloudflare KVCloudflare DNS and CDNMeta Conversions APITikTok Events APIGoogle Data Manager APISnapchat Conversions APIMicrosoft AdsNewsBreakAppLovinElevenLabs
Home
Blog
GitHubGitHub
LinkedInLinkedIn
MediumMedium
Contact
Theme