Back to projects

Full-Stack App

LeadGen ROAS Report Generator

A full-stack CRM platform for marketing agencies to manage leads, campaigns, and performance across multiple ad platforms. Built with Next.js 14, featuring real-time analytics, 6 ad platform integrations, automated sync, and comprehensive reporting.

LeadGen ROAS Report Generator

The Problem

Marketing agencies spend hours manually aggregating lead data from different platforms like Facebook, Google, and Ringba. This manual process leads to delayed reports and inaccurate ROAS (Return on Ad Spend) calculations.

The Solution

Developed an automated CRM that synchronizes data from 6+ marketing platforms daily. The platform provides a unified dashboard where agencies can see their real-time performance, ROI, and lead quality without touching a spreadsheet.

Key Features

  • NextAuth v5 JWT sessions with 2FA (TOTP) and role-based access control
  • Lead management with bulk CSV uploads, Google Sheets sync, and deduplication
  • Advanced analytics with bar/line/pie charts showing 6-month trends and KPIs
  • Multi-platform ad integrations: Ringba, Facebook Ads, Google Ads, Snapchat, NewsBreak
  • Automated cron sync for 6 platforms processing 25k+ records daily
  • Stripe integration for subscriptions, monthly/yearly billing, and trial management
  • Real-time dashboard with sales funnels, multi-buyer filters, and dynamic date ranges
  • Google Sheets bidirectional sync with JWT, scheduled sync, and real-time conversions
  • Ringba integration for call logs, campaigns, publishers, targets with Twilio and callbacks
  • CSV/Excel export functionality with geo and debt tracking
  • Security features: bcrypt encryption, email verification, password reset, protected routes
  • Automated reporting with optimization triggers and comprehensive sync logs

Process

  1. Mapped out API structures for various ad platforms to ensure consistent data ingestion.
  2. Developed a background sync engine using cron jobs to process 25k+ records daily.
  3. Designed a complex lead deduplication and verification algorithm.
  4. Built a bidirectional sync with Google Sheets for flexible data access.
  5. Created an interactive dashboard using Recharts for visual performance tracking.

Stack

frontend

Next.js 14React 18TypeScriptTailwind CSSRadix UIShadcn UIreact-hook-formZodRecharts

backend

Next.js API RoutesTypeScriptMongooseMongoDBJWTNextAuth v5node-cron

integrations

StripeCloudinaryGoogle Sheets APITwilioNodemailerPapaParseRingbaFacebook Ads APIGoogle Ads APISnapchatNewsBreak
Home
Blog
GitHubGitHub
LinkedInLinkedIn
MediumMedium
Contact
Theme