Back to projects
Live Portal

DiscountsLife — Deals & Coupon Portal

Affiliate-Tracked Deal Aggregation with Automated SEO

PHPLaravelMySQLAffiliate TechSEO OptimizationREST API
Active Deals Indexed
10K+listings
Affiliate Clicks
500K+tracked
Coupon Validation
94%
Organic Sessions
120K+/month

High-volume deal aggregator and verified coupon code portal with automated deal indexing, affiliate tracking, category filtering, and newsletter subscriptions. Ingests deal feeds from multiple affiliate networks and keeps coupon validity trustworthy at scale.

Architecture & System Design

A feed normalization pipeline ingests deals from multiple affiliate networks through merchant-specific adapters, deduplicating before indexing. Scheduled jobs continuously re-validate coupon codes, and category/merchant pages are generated programmatically for SEO.

Request Flow
Deal Feed Ingestion
Normalization & Dedup
Coupon Validation Job
Affiliate Link Cloaking
Category Indexing
Programmatic SEO Pages
Click Tracking
  • Feed normalization pipeline with merchant-specific adapters and dedup hashing
  • Scheduled coupon validation jobs that auto-flag and deactivate expired codes
  • Cloaked, tracked affiliate link redirection with click analytics
  • Template-driven programmatic SEO pages per merchant/category combination

Engineering Challenges

Aggregating Deals From Inconsistent Feeds

Problem

Deal feeds from different affiliate networks arrived in inconsistent formats and frequently overlapped, producing duplicate listings.

Solution

Built a normalization pipeline with per-merchant feed adapters and content-hash-based deduplication before indexing.

Result

Duplicate listings reduced by roughly 90%.

Expired Coupon Codes Hurting Trust

Problem

Stale coupon codes eroded user trust and drove people away from the portal after failed redemptions.

Solution

Implemented scheduled validation jobs that periodically re-test each code against merchant validation endpoints and auto-deactivate failures.

Result

Coupon validity rate maintained at 94% across the active catalog.

Scaling Programmatic SEO Without Duplicate Content

Problem

Generating a page per merchant/category combination risked search engine penalties for thin or duplicate content.

Solution

Built template-driven page generation that composes unique content blocks per merchant and category combination.

Result

Organic sessions grew to over 120K per month without ranking penalties.

Core Features

Deal Feed Aggregation

Merchant-specific adapters normalizing and deduplicating deals from multiple affiliate feeds.

Clean Code

ValidateCouponJob — Scheduled Code Verification
1<?php
2
3namespace App\Jobs;
4
5use App\Models\Coupon;
6use Illuminate\Support\Facades\Http;
7use Illuminate\Bus\Queueable;
8use Illuminate\Contracts\Queue\ShouldQueue;
9
10class ValidateCouponJob implements ShouldQueue
11{
12 use Queueable;
13
14 public function __construct(private Coupon $coupon) {}
15
16 public function handle(): void
17 {
18 $response = Http::timeout(5)->get(
19 $this->coupon->merchant->validation_endpoint,
20 ['code' => $this->coupon->code]
21 );
22
23 $this->coupon->update([
24 'is_valid' => $response->ok() && $response->json('valid'),
25 'last_checked_at' => now(),
26 ]);
27 }
28}