Your sales department spends 70% of its time on leads that never buy. Lead scoring automatically assigns points to each website visitor based on behavior: page views, content downloads, form submissions. Once a lead hits a threshold, it is passed to the CRM as hot. We have implemented this system for a dozen B2B projects — on average, sales conversion increased by 2.5 times. A lead scoring system on your website handles behavioral scoring and automates qualification. Our custom lead scoring system development service focuses on behavioral lead scoring and CRM integration. With 8 years in the lead scoring automation niche and over 10 successful projects, our experienced team guarantees a proven process. We provide a 30-day support period after launch and ensure data privacy. Typical project cost ranges from $3,000 to $6,000, with annual savings of up to $15,000 from reduced manual qualification.
Why standard lead scoring fails without proper configuration?
Simply assigning 5 points for a page view is not enough. You need to consider event repetition — do not count a duplicate demo request, weigh negative signals (unsubscribe, 30 days of inactivity), and dynamically adjust stage thresholds. Without this, the system generates false-positive hot leads that distract managers. Our configuration includes 20+ event types with points from -25 to +50 and four lead levels: cold, warm, hot, mql/sql. Automatic qualification is 4 times faster than manual.
How to set event weights?
Event weight is determined by its proximity to purchase: pricing page view — 15 points, contact form submission — 40, trial start — 50. Negative signals (unsubscribe, more than 30 days inactive) reduce the score by 10–20 points. We recommend reviewing weights quarterly based on lead-to-deal conversion — this improves forecast accuracy. For example, in one project we increased the weight of case study page view from 5 to 10 after noticing a strong correlation with purchase.
MQL and SQL: qualification stages
Marketing Qualified Lead (MQL) — a lead reaching 80 points automatically transfers to the CRM for nurture campaigns. Sales Qualified Lead (SQL) — 100 or more points requires an immediate call from a sales rep. Different thresholds prevent sales from early contact, allowing marketing to nurture warm leads.
| Criterion | Without lead scoring | With lead scoring |
|---|---|---|
| Time to qualify one lead | 10–15 minutes | Instant (automatic) |
| Prioritization accuracy | Low (subjective) | High (data-driven) |
| Handling 1000 leads/month | 2–3 full-time managers | 1 manager (only hot leads) |
| Sales conversion | 1–3% | 5–8% (focus on MQL) |
| Implementation cost | 0 (managers' time cost) | $2,000 to $8,000 |
| Stage | Score range | Manager action |
|---|---|---|
| Cold | 0–29 | Automatic email drip |
| Warm | 30–59 | Weekly call |
| Hot | 60–79 | Priority call within a day |
| MQL | 80–99 | Lead created in CRM, SDR notified |
| SQL | 100+ | Immediate call from sales rep |
System architecture
Data model
// Table schema
Schema::create('lead_scores', function (Blueprint $table) {
$table->id();
$table->foreignId('user_id')->nullable()->constrained()->nullOnDelete();
$table->string('session_id')->index();
$table->string('email')->nullable()->index();
$table->integer('score')->default(0);
$table->json('score_breakdown');
$table->string('stage')->default('cold');
$table->timestamp('mql_reached_at')->nullable();
$table->timestamp('qualified_at')->nullable();
$table->timestamps();
$table->index(['score', 'stage']);
});
Schema::create('lead_events', function (Blueprint $table) {
$table->id();
$table->foreignId('lead_score_id')->constrained()->cascadeOnDelete();
$table->string('event');
$table->integer('points');
$table->json('metadata')->nullable();
$table->timestamps();
});
Points configuration
// config/lead_scoring.php
return [
'events' => [
'page_view_pricing' => 15,
'page_view_case_study' => 10,
'page_view_demo' => 20,
'demo_requested' => 50,
'whitepaper_downloaded' => 20,
'webinar_registered' => 25,
'free_trial_started' => 40,
'pricing_calculator_used' => 30,
'comparison_page_viewed' => 15,
'contact_form_submitted' => 40,
'email_opened' => 5,
'email_clicked' => 10,
'return_visit' => 5,
'visited_3_days_in_row' => 15,
'company_size_50_plus' => 20,
'role_decision_maker' => 25,
'budget_confirmed' => 30,
'unsubscribed' => -20,
'inactive_30_days' => -10,
'student_email_domain' => -25,
],
'thresholds' => [
'warm' => 30,
'hot' => 60,
'mql' => 80,
'sql' => 100,
],
];
Scoring service
class LeadScoringService
{
public function track(string $sessionId, string $event, array $metadata = [], ?int $userId = null): LeadScore
{
$points = config("lead_scoring.events.{$event}", 0);
$lead = LeadScore::firstOrCreate(
['session_id' => $sessionId],
['user_id' => $userId, 'score_breakdown' => []]
);
if ($userId && !$lead->user_id) {
$lead->update(['user_id' => $userId]);
}
if (!empty($metadata['email']) && !$lead->email) {
$lead->update(['email' => $metadata['email']]);
}
$onceEvents = ['demo_requested', 'free_trial_started', 'contact_form_submitted'];
if (in_array($event, $onceEvents)) {
if (LeadEvent::where('lead_score_id', $lead->id)->where('event', $event)->exists()) {
return $lead;
}
}
LeadEvent::create([
'lead_score_id' => $lead->id,
'event' => $event,
'points' => $points,
'metadata' => $metadata,
]);
$breakdown = $lead->score_breakdown ?? [];
$breakdown[$event] = ($breakdown[$event] ?? 0) + $points;
$newScore = $lead->score + $points;
$newStage = $this->calculateStage($newScore);
$lead->update([
'score' => $newScore,
'score_breakdown' => $breakdown,
'stage' => $newStage,
]);
$thresholds = config('lead_scoring.thresholds');
$prevStage = $this->calculateStage($lead->score - $points);
if ($newStage !== $prevStage) {
$this->onStageChange($lead, $prevStage, $newStage);
}
return $lead->fresh();
}
private function calculateStage(int $score): string
{
$thresholds = config('lead_scoring.thresholds');
if ($score >= $thresholds['sql']) return 'sql';
if ($score >= $thresholds['mql']) return 'mql';
if ($score >= $thresholds['hot']) return 'hot';
if ($score >= $thresholds['warm']) return 'warm';
return 'cold';
}
private function onStageChange(LeadScore $lead, string $from, string $to): void
{
Log::info("Lead stage change: {$from} → {$to}", ['lead_id' => $lead->id, 'score' => $lead->score]);
if ($to === 'mql') {
$lead->update(['mql_reached_at' => now()]);
SyncLeadToCrm::dispatch($lead);
Notification::route('slack', '#leads-hot')
->notify(new MqlReachedNotification($lead));
}
if ($to === 'sql') {
$lead->update(['qualified_at' => now()]);
$salesManager = User::salesManager()->inRandomOrder()->first();
$salesManager?->notify(new SqlLeadAssigned($lead));
}
}
}
Frontend event tracking
class LeadTracker {
private sessionId: string;
constructor() {
this.sessionId = sessionStorage.getItem('ls_session') || this.generateId();
sessionStorage.setItem('ls_session', this.sessionId);
}
async track(event: string, metadata: Record<string, any> = {}): Promise<void> {
try {
await fetch('/api/lead-score/track', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
session_id: this.sessionId,
event,
metadata: { ...metadata, page: window.location.pathname },
}),
});
} catch (e) {
// Do not block UI on tracking error
}
}
private generateId(): string {
return Date.now().toString(36) + Math.random().toString(36).substr(2);
}
}
export const tracker = new LeadTracker();
Manager dashboard
SELECT
ls.email,
ls.score,
ls.stage,
ls.mql_reached_at,
COUNT(le.id) AS events_count,
MAX(le.created_at) AS last_activity
FROM lead_scores ls
JOIN lead_events le ON le.lead_score_id = ls.id
WHERE ls.stage IN ('mql', 'sql', 'hot')
AND ls.mql_reached_at >= now() - interval '7 days'
GROUP BY ls.id, ls.email, ls.score, ls.stage, ls.mql_reached_at
ORDER BY ls.score DESC;
Deliverables Included in Turnkey Development
- Configurable scoring system with 20+ events (can be changed without a programmer).
- Frontend tracking without performance loss (asynchronous fetch, does not block UI).
- Automatic lead transfer to popular CRMs (AmoCRM, Bitrix24, Salesforce) when MQL is reached.
- Manager dashboard with stage filtering and hot lead highlighting.
- Comprehensive documentation on scoring rules and instructions for marketers.
- 30-day technical support and maintenance after launch.
- Training session for your team (2 hours online).
Implementation process
- Analytics: collect your current qualification criteria and typical customer journey.
- Design: set event weights, stage thresholds, integrations.
- Implementation: build backend and frontend, connect CRM via API.
- Testing: verify scoring accuracy on historical data.
- Launch: deploy and train your team.
Timeline and cost
Timeline — from 8 to 14 working days depending on CRM complexity and number of custom events. Implementation cost — from $2,000 to $8,000 depending on integrations and number of events. Average project cost is $3,000–$6,000, with typical annual savings of $15,000 from reduced manual qualification. Contact us — we will find the best solution for your budget.
Typical mistakes in lead scoring implementation
- Counting the same event multiple times (need once-event flag).
- Ignoring negative signals — a lead may be cold even if they click a lot.
- Not updating thresholds over time — audience behavior changes, rules need adaptation.
Our certified CRM integration partners and 8+ years of experience guarantee a smooth implementation. Get a free consultation on lead scoring setup — we will assess your project.
Lead scoring — methodology described on Wikipedia.







