Self-hosted campaign tracking

Track the whole journey.
Own every signal.

Track clicks, conversions and customer value on your own server. Compare campaign costs and revenue, follow each visitor’s journey, and see where your results come from.

Live campaign pulse Streaming
Clicks Today
24,847
↗ 18.4%
Conversions
1,284
↗ 6.2%
ROI
247%
+42 pts
Source Available
BSL + Commercial
Self-Hosted
PHP 8.3+
What's new Release notes →

Track campaigns from
the click to the conversion

Set up tracking links, record sales and compare results across your traffic sources.

Click Tracking

Record clicks as they arrive, with SubIDs, referrers, IP addresses and browser details.

Conversion Tracking

Record conversions through server-to-server postbacks or pixels, with revenue, payout, status and duplicate protection.

Multi-Touch Attribution

Compare first-touch, last-touch, linear, time-decay and position-based credit across each visitor’s campaign clicks.

Campaign Management

Create, edit, and manage campaigns with offer rotation, link cloaking, and traffic rules.

12+ Report Types

Keywords, geo, device, browser, OS, referrer, ISP, landing page, and custom dimension reports.

Smart Rotator

Rule-based traffic distribution with weighted rotation, geo-targeting, and device filtering.

Landing Page Management

Unlimited weighted split tests and dynamic personalization tokens.

Bot Filtering

Exclude recognised crawlers, link-preview bots and headless browsers from real click counts and attribution costs.

Geo-Targeting

MaxMind GeoIP integration for country, region, and city-level targeting and reporting.

REST API v3

Bearer-token API for campaigns, goals, events, apps, LTV, subscriptions, forecasts, sync, and system operations.

CLI Tools

PHP and Go CLIs for reports, LTV, forecasts, optimization, route verification, sync, and AI workflows.

Docker Support

Run PHP, MySQL, Apache and Memcached with Docker Compose, or use the Coolify stack.

Live Spy Mode

Watch incoming clicks in a live activity stream, with read-replica support.

Attribution Lab

Inspect the clicks behind a conversion, compare model credit and schedule exports to signed webhooks.

Data Portability

Export, dry-run imports, compare environments, and sync configuration across named server profiles.

Background Operations

Run scheduled attribution exports and long-lived jobs with authenticated cron health checks and retry-safe delivery.

Goals & Events New

Track sign-ups, sales and repeat purchases as separate goals, each with its own payout, on the same click.

iOS + Android Apps New

Verify SKAdNetwork and AdAttributionKit postbacks, and match Android installs to their originating clicks.

Conversion Ledger New

Keep a record of each amount’s source, apply reversals and deletions, and retry failed traffic-source postbacks.

Controls for AI Agents New

Limit API access, review proposed changes, preview deletions and retry creates without making duplicates.

Measure customer value after the first sale

Connect campaign results to repeat purchases, subscription revenue and customer activity.

Customer LTV Live

Customer lifetime value

Link customer records to revenue, compare cohorts and measure recorded or predicted LTV by campaign, source, landing page and product.

Customers18,492+12.8%
Average LTV$284+8.1%
Repeat rate31.6%+3.4 pts
Subscription economics

Subscription revenue and churn

Track subscription lifecycle events and connect recurring revenue back to the campaigns that created it.

Active MRR$92.4k+14%
Personalization + ABM

Customer profiles and activity

Review CRM profiles, company totals, engagement scores and custom fields, with recommendations for the next offer.

Suggested next offerAnnual Pro / 22% lift
Forecasting

Forecast clicks, revenue and profit

Combine forecasting methods based on their recent accuracy, with 90% ranges measured through backtesting. The forecast accounts for tracking outages, shifts in performance and calendar events.

Landing Page Optimizer

Use conversion data in landing page tests

Sync performance data through the Landing Page Optimizer bridge to compare page results.

Signal→Learn→Route
Operator tooling

Manage campaigns from the command line

Check routes and offer hosts, update offer URLs in bulk with an undo file, compare results before and after a date, and import conversion files. Host checks do not send tracking clicks.

$ p202 campaign check-urls --url-contains old-network.com
Light, dark + system themes One-click Coolify deploy Correction + retraction postbacks Hash-pinned front-end assets Faster, lighter app pages BlazerCache outage resilience Fast JSON report transport Guided onboarding checklist In-app support messenger Webhooks + integrations

Track each step
with campaign goals

Set goals for a sign-up, sale, upsell, repeat purchase or spending threshold. Assign each goal a payout and record the result in the conversion ledger.

Campaign goals Payout mode: Add them up
  1. 01
    Opt-in event=optin · fixed payout
    $2.00
  2. 02
    Sale event=sale · value from amount=49.00
    $49.00
  3. 03
    Upsell event=upsell · after Sale · within 7 days
    $15.00
Click value$66.00

One campaign with separate goals

Add a goal for each funnel step, with its own payout and traffic-source postback.

  • event=on any pixel or postback
  • POST /api/v3/eventsfrom your own backend
  • p202.track()on landing pages (fixed-value goals pay; revenue sent from the page doesn't)

Goals can count the Nth event or a running sum, require an earlier goal, and open a window from the click or the install. Every edit is a new version you can re-evaluate. Existing setups don't change: until a campaign has a goal, event= is still a plain conversion.

Every amount has a source

Pixel, postback, upload, goal, or the API key that wrote it. p202 click conversions explains a click's value row by row.

Correct conversion values

A reversal nets against the sale it names. Delete a conversion and its click value and customer LTV are corrected in the same transaction.

Retry failed postbacks

Traffic-source postbacks are queued with the conversion itself and retried with backoff when a send fails.

Corrections reach the network

Remove a conversion and a pending postback is cancelled, or a retraction goes to the pixel's correction URL.

Track iOS and Android app results

Measure installs and in-app events on your own server, alongside your web campaigns.

iOS SKAdNetwork · AdAttributionKit

Verify and decode Apple postbacks

  • Receives SKAdNetwork and AdAttributionKit postbacks at your own domain
  • Checks every signature against Apple's published keys; headline numbers count verified postbacks only
  • Decodes conversion values into your goals and revenue
  • The P202Attribution Swift SDK evaluates your goals on the device against a mapping it fetches at runtime, so changing either never needs an App Store resubmission
NSAdvertisingAttributionReportEndpoint → https://your-domain.com
Android Play Install Referrer

Match Android installs to clicks

  • A signed install token rides your Play Store link; the SDK reports it on first launch
  • An attributed install becomes a conversion on its click, in every campaign report and in multi-touch attribution
  • Goals after the install, like a first purchase, pay and post back like any conversion
  • Kotlin SDK for Android 5.0+ (API 21): no advertising ID, no permission beyond internet access
referrer=p202%3D[[p202_install_token]]

Play Integrity

Off, observe, or require, per app. In require mode an install pays only on a passing verdict.

Click-to-install time

Flags installs that land too fast (click injection) or too slow (click spamming).

Fast-goal holds

Goals reached implausibly soon after install can be held and never paid.

Intake limits

Limit installs per app and events per install to control excessive activity.

Analyze › Mobile Apps reports both platforms: the funnel by goal, the postbacks sent to traffic sources, and a verifier that checks a pasted postback's signature without storing it.

Compare attribution models

Rebuilt in 1.9.76, attribution assigns each conversion’s value across the visitor’s clicks using five models, including clicks from different campaigns.

Credit Distribution

100%
First Click
0%
Social
0%
Display
0%
Search
0%
Last Click

Credit Distribution

0%
Email
0%
Social
0%
Display
0%
Search
100%
Last Click

Credit Distribution

5%
Email
10%
Social
15%
Display
30%
Search
40%
Last Click

Credit Distribution

35%
First Touch
10%
Social
10%
Display
10%
Search
35%
Last Click

Credit Distribution

20%
Email
20%
Social
20%
Display
20%
Search
20%
Last Click

Compare how each model assigns credit to campaign clicks. Under every model, the credits for a conversion add up to its full value.

01

First-party identity only

Clicks join a journey through your tracking domain's cookie, a landing-page id, and customer ids your own server signs—never IP addresses, user agents, or fingerprinting.

02

Link devices with signed customer IDs

Pass a customer id signed with your account's linking key and one person's clicks connect across browsers and devices.

03

Control identity tracking

Turn identity off on a link, a landing page, or a whole campaign. No cookie is set or read, and each click stands on its own.

04

Read reports from hourly totals

Breakdowns read an hourly rollup that matches the full computation exactly: 0.1–1.25 s for 30 days, down from 30–70 s.

Break down campaign performance

Compare traffic, conversions and revenue by keyword, location, device, landing page and other dimensions.

142,847
Total Clicks
8,291
Conversions
$47,832
Revenue
312%
ROI

Revenue Trend (7 days)

Top Sources

Google Ads Facebook Native

Conversion Rate

5.8%
+0.4% from last week

12+ Report Types

Keywords

Track performance by search keyword and sub-ID

Country & Geo

Geographic performance with country, region, city

Device

Mobile, desktop, and tablet breakdowns

Browser

Chrome, Firefox, Safari, and browser version data

Operating System

Windows, macOS, iOS, Android, Linux reports

Referrer

Track traffic sources and referring domains

ISP / Carrier

Compare results by internet service provider

Landing Pages

Compare landing page variant performance

Revenue & Payout

Financial reports with profit margins and EPC

Day of Week / Hour

Compare results by hour and day

Attribution

Multi-touch attribution model comparison

Custom Dimensions

User-defined tracking parameters and filters

Automate reports and campaign updates

Use the REST API and command-line tools from scripts, development pipelines or AI agents.

API and command-line access

Manage campaigns, goals, apps, customer value, forecasts and traffic rules from code. API permissions let you limit what a script or AI agent can do.

Goals, events, apps, LTV, forecasts, and sync
Scoped keys: read-only, per-area, or propose-only
Staged writes with an approval queue
Idempotent creates and delete dry-runs
Multi-profile CLI with sync and diff
JSON, NDJSON, CSV, and script-friendly output
Live route, TLS certificate, and cron health checks
JSON for agents automatically, plus p202 search to find any command
# List all campaigns curl -X GET https://your-domain.com/api/v3/campaigns \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Accept: application/json" # Response { "data": [ { "id": 1, "name": "Summer Campaign", "status": "active", "clicks": 24847, "conversions": 1284 } ], "meta": { "total": 42, "page": 1 } }
# List campaigns with PHP CLI $ bin/p202 campaign:list ┌────┬──────────────────┬─────────┬─────────────────┐ │ ID │ Name │ Payout │ Network │ ├────┼──────────────────┼─────────┼─────────────────┤ │ 1 │ Summer Campaign │ $2.50 │ MaxBounty │ │ 2 │ Winter Promo │ $4.00 │ ClickDealer │ │ 3 │ Flash Sale │ $1.75 │ MaxBounty │ └────┴──────────────────┴─────────┴─────────────────┘ # Today's performance summary $ bin/p202 report:summary --period today
# List campaigns as JSON $ p202 campaign list --json # Create a new campaign $ p202 campaign create \ --aff_campaign_name "Q1 Push Notifications" \ --aff_campaign_url "https://offer.example.com/?sub=[[subid]]" \ --aff_campaign_payout "2.50" \ --aff_network_id 4 # Which countries moved after a change on Sept 4? $ p202 analytics --group-by country --split-at 2026-09-04 # Forecast revenue and verify live routing $ p202 forecast --metric revenue --horizon 14 $ p202 tracker check
# Give your agent a key that can read and propose, never write $ p202 user apikey create 1 --scope read,stage # The agent proposes a change; nothing happens yet $ p202 campaign update 42 --aff_campaign_payout "3.10" --staged # → staged as chg_… for approval # You review the queue, then apply or discard $ p202 change list $ p202 change apply chg_… # Preview what a delete would remove before running it $ p202 rotator delete 8 --dry-run

Ask an AI agent to check your campaigns

AI coding agents such as Claude Code can use the Prosper202 CLI to read reports and manage campaigns. This example shows the commands behind the conversation.

Claude Code + Prosper202 ClickServer CLI
You
How are my campaigns doing today?
Claude Code

Let me pull today's performance summary.

$ p202 report summary --period today

Today across all campaigns: 12,847 clicks, 634 conversions, $4,291 revenue against $1,520 in costs for a net profit of $2,771. Overall ROI is 182%.

You
Break that down by campaign — which ones are losing money?
Claude Code

I’ll sort campaigns by net profit, starting with those losing money.

$ p202 report breakdown -b campaign --period today -s total_net --sort_dir ASC

Two campaigns are in the red today:

CampaignClicksConv.RevenueCostNetROI
EU Display Test1,84223$138$221-$83-38%
TikTok Broad2,10441$246$289-$43-15%
Summer Push5,391312$2,184$530+$1,654312%

"EU Display Test" and "TikTok Broad" are both net negative. The other 5 campaigns are profitable — "Summer Push" is your clear winner at 312% ROI.

You
Show me where the Summer Push conversions are coming from by country
Claude Code

Pulling the geo breakdown for that campaign.

$ p202 report breakdown -b country --period today \ --aff_campaign_id 3 -s total_leads --sort_dir DESC
CountryClicksConv.RevenueEPC
US2,640167$1,169$0.44
UK1,07862$434$0.40
CA85648$336$0.39
DE50222$154$0.31
AU31513$91$0.29

The US has the most traffic and $0.44 revenue per click. The UK and Canada follow at $0.40 and $0.39. Compare their traffic costs before changing bids.

You
Clone that campaign and set up a rotator to only send UK and CA traffic
Claude Code

I'll clone the campaign, then add a rotator that sends UK and Canadian visitors to the clone and everyone else to the original.

$ p202 campaign clone 3 --name "Summer Push — UK/CA" # Created campaign #15 $ p202 rotator create --name "Summer Push Geo Split" --default_campaign 3 # Created rotator #8 $ p202 rotator rule-create 8 \ --rule_name "UK + CA" \ --criteria_json '[{"type":"country","statement":"is","value":"United Kingdom(GB),Canada(CA)"}]' \ --redirect-campaign 15

Rotator #8 sends UK and Canadian traffic to #15 "Summer Push — UK/CA" and other visitors to the original campaign. Use the rotator’s tracking link to apply this routing.

Set limits on what an agent can change

--scope read,stage

Propose-only keys: an agent can read everything and suggest changes, but can't make them.

--staged

Writes wait in an approval queue until a person applies or discards them.

--dry-run

Preview a deletion to see which records it would remove.

sanitized output

Visitor-supplied text like keywords and ISP names is cleaned before an agent reads it.

Run the tracker
on your own server

Store campaign data in your own database and inspect the source code.

Your own database

Clicks, conversions and campaign records are stored on your server. You choose which optional integrations receive that data.

Available source code

Licensed under the BSL, with commercial licensing options. Contributions are welcome.

Connect your own tools

REST API, CLI tools, and webhook integrations. Build custom dashboards and automate your workflow.

Choose an installation method

Upload a pre-built release, use the source installer, run Docker Compose or deploy with Coolify. Each method includes a setup wizard.

# No terminal or Composer required 1. Download the latest release from your free account: my.tracking202.com 2. Upload and extract it into your cPanel / Plesk web root 3. Visit your site to launch the guided setup wizard # Upgrading? Back up your database first: # the upgrade is one-way. # The wizard checks requirements, creates the database, # validates your API key, and creates the admin account.
# Clone and run the one-step installer $ git clone https://github.com/tracking202/prosper202.git $ cd prosper202 $ ./install.sh # The installer checks dependencies, creates configuration, # tests or creates the database, and prints the cron entry.
# Clone and start with Docker Compose $ git clone https://github.com/tracking202/prosper202.git $ cd prosper202 $ echo "MYSQL_ROOT_PASSWORD=$(openssl rand -hex 16)" > .env $ docker compose up -d # Visit http://localhost:8000 and complete the wizard immediately # To update: git pull, then rebuild the image $ docker compose build --pull && docker compose up -d
# Running Coolify on a VPS? Deploy straight from the repo 1. New → Public Repository: github.com/tracking202/prosper202 2. Build pack Docker Compose, file /docker-compose.coolify.yaml 3. Set your domain on the web service and click Deploy 4. Open your domain and finish the setup wizard # TLS, the database password, 202-config.php, and cron # are all handled for you. To update, redeploy.

System Requirements

PHP 8.3+
MySQL 8.0+ or MariaDB 10.6+
Nginx or Apache
Composer