LeadRanker AI
Add AI lead scoring to any website in under 5 minutes — no coding required. Works with WordPress, Next.js, Webflow, Wix, Shopify, and any HTML site.
LeadRanker AI intercepts form submissions on your website, sends the data to our AI engine, and instantly scores each lead as HOT, WARM, or COLD. The visitor is redirected to a personalised score page. You receive an alert for every HOT lead.
Quick Start
From zero to scoring leads in 5 minutes.
lrai_No form changes needed. The pixel detects email, name, and phone fields automatically on any form — Elementor, Contact Form 7, Gravity Forms, MetForm, or plain HTML.
How It Works
The full technical flow from form submission to lead score:
Visitor fills form on your site
↓
LeadRanker pixel intercepts submit silently
↓
POST /api/v1/ingest/pixel (with your API key)
↓
AI analyses: name + email + phone + message + page context
↓
Score: 0–100 | Bucket: HOT / WARM / COLD
↓
Visitor → redirected to Magic Portal (their score page)
↓
You → HOT lead email alert + dashboard update
Offline resilience: If a visitor submits a form while offline, the pixel caches the lead locally and retries automatically when their connection returns.
WordPress Plugin
Works with MetForm, Elementor, Contact Form 7, Gravity Forms, WPForms, Ninja Forms, and any other WordPress form plugin — zero configuration.
lrai_ API key → set API URL to https://api.leadrankerai.comMetForm specific notes
MetForm uses AJAX submission. The pixel automatically handles this. If you notice MetForm submitting before the score loads, enable Debug Mode in the plugin settings (F12 → Console) to verify the intercept is working.
If your WordPress site uses a caching plugin (WP Rocket, W3 Total Cache), clear the cache after installing the plugin so the script loads on all pages.
Next.js
Add to your root layout — the pixel will detect and score forms on all pages automatically.
App Router (Next.js 13+)
export default function RootLayout({ children }: { children: React.ReactNode }) { return ( <html> <body> {children} {/* LeadRanker AI Pixel — scores every form automatically */} <script src="https://app.leadrankerai.com/pixel.js" data-api-key="lrai_YOUR_KEY_HERE" data-portal="https://app.leadrankerai.com/portal" defer /> </body> </html> ) }
Pages Router (Next.js 12 and below)
import Head from 'next/head' export default function MyApp({ Component, pageProps }) { return ( <> <Head> <script src="https://app.leadrankerai.com/pixel.js" data-api-key="lrai_YOUR_KEY_HERE" data-portal="https://app.leadrankerai.com/portal" defer /> </Head> <Component {...pageProps} /> </> ) }
Webflow
<script src="https://app.leadrankerai.com/pixel.js" data-api-key="lrai_YOUR_KEY_HERE" data-portal="https://app.leadrankerai.com/portal" defer> </script>
Wix
Wix forms use their own submission system. The pixel intercepts at the JavaScript level. If Wix blocks it, use the Email Forwarding method instead — forward Wix form notification emails to your Magic Email address.
Plain HTML / Any Website
Paste this tag before </body> on every page that has a contact form:
<script src="https://app.leadrankerai.com/pixel.js" data-api-key="lrai_YOUR_KEY_HERE" data-portal="https://app.leadrankerai.com/portal" defer> </script>
Replace lrai_YOUR_KEY_HERE with your actual API key from the Connections page.
Shopify
</body> and paste the script tag just above itFacebook / Meta Lead Ads
Facebook Lead Ads collect leads inside Facebook — there's no website form. Use the Email Forwarding method.
Your Magic Email looks like: leads+YOUR-BROKERAGE-ID@leadrankerai.com — find it in Dashboard → Connections → Magic Email Address.
Google Ads Lead Form Extensions
Email Forwarding (Gmail)
No website access? Use Gmail filters to forward lead notification emails to LeadRanker automatically.
API Authentication
All API requests require either a JWT Bearer token (for dashboard APIs) or an API Key header (for the pixel ingest endpoint).
Get a token (login)
curl -X POST https://api.leadrankerai.com/api/v1/auth/login \ -H "Content-Type: application/json" \ -d '{"email":"you@example.com","password":"yourpassword"}' # Response: { "access_token": "eyJhbGciOiJIUzI1NiJ9...", "token_type": "bearer" }
Use the token
curl https://api.leadrankerai.com/leads/history \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiJ9..."
Pixel Ingest Endpoint
Used by the pixel script and WordPress plugin to submit lead data for scoring.
POST https://api.leadrankerai.com/api/v1/ingest/pixel
Request headers
| Header | Required | Description |
|---|---|---|
| X-API-Key | ✅ Yes | Your lrai_ API key from Dashboard → Connections |
| Content-Type | ✅ Yes | application/json |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
| string | ✅ Yes | Lead's email address | |
| name | string | No | Lead's full name |
| phone | string | No | Phone number (any format) |
| message | string | No | Form message / enquiry text |
| source | string | No | e.g. "wordpress_pixel", "custom" |
| page_url | string | No | URL where form was submitted |
Response
{
"status": "scored",
"lead_id": "uuid-here",
"score": 85,
"bucket": "HOT",
"sentiment": "urgent",
"recommendation": "Follow up within 2 hours. Lead shows strong buying signals.",
"magic_link": "https://app.leadrankerai.com/portal?token=eyJ..."
}
Manual Score Endpoint
Score a lead manually from your own system using a JWT token.
curl -X POST https://api.leadrankerai.com/leads/score \ -H "Authorization: Bearer YOUR_JWT_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "name": "Rahul Sharma", "email": "rahul@example.com", "phone": "+91 9876543210", "message": "I want to buy a 3BHK flat in Kochi under 60 lakhs, need to move in 2 months" }'
Webhook / CRM Integration
Push leads directly from your CRM or any system via webhook.
POST https://api.leadrankerai.com/inbound/{YOUR_BROKERAGE_ID}
Your brokerage ID is in your Magic Email address: leads+THIS-PART@leadrankerai.com
{
"message": "Lead enquiry text here",
"name": "Lead Name",
"email": "lead@example.com",
"phone": "+91 9876543210",
"source": "salesforce"
}
FAQ
Is my lead data secure?
Yes. All data is encrypted in transit (TLS 1.3) and at rest (AES-256). We never sell or share your lead data. Compliant with the Indian IT Act 2000 and GDPR for international clients.
Does the pixel slow down my website?
No. The pixel loads with defer, meaning it loads after your page content. It has zero impact on page speed or Core Web Vitals.
What if the lead submits offline?
The pixel detects the offline state, caches the lead submission locally, and retries automatically when the connection returns.
What if the API is down?
The pixel has a fallback — if our API doesn't respond within the timeout, the original form submission proceeds normally. Your leads are never lost.
Does the lead portal page require a login?
No. The Magic Portal link contains a signed JWT token — leads can view their score without creating an account. Links expire after 1 hour for security.
How does field detection work?
The pixel scores each input field by checking its name, id, placeholder, aria-label, and autocomplete attributes to identify email, name, phone, and message fields — no manual mapping needed.
Can I use this on multiple websites?
Yes. One LeadRankerAI account works across unlimited websites. All leads from all sites appear in one dashboard, tagged with their source URL.
I need help with setup — who do I contact?
Email hello@leadrankerai.com or use the Invite Developer button in the Connections page to send setup instructions to your IT team.