For media buyers, SaaS teams and AI agent builders

See which clicks make money.
On your own server.

Prosper202 records every click, every conversion and what each click cost in your own database, with no event caps, and shows which keywords, traffic sources and ads earn money and which lose it. Your scripts read it all through the REST API. With Pro, so can Claude, ChatGPT and your own agents.

Free with a my.tracking202.com account and the free CPM* Newsletter. You install it on your own server (PHP 8.3+, MySQL 8.0+ or MariaDB 10.6+), and the documentation walks you through it.

Live campaign pulse Example data
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 →

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, with example data. On 1.9.79 the p202 command line needs Pro or its 7-day trial.

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%

"EU Display Test" and "TikTok Broad" are both net negative. The other 5 campaigns are profitable. “Summer Push” is your clear winner: 5,391 clicks, 312 conversions, $2,184 revenue against $530 cost, so +$1,654 net and 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.

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, forecast calendar events, 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

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

iOS + Android Apps

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

Conversion Ledger

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

Controls for AI Agents

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 / best match
Forecasting

Forecast clicks, revenue and profit

Combine forecasting methods based on their recent accuracy, with 90% ranges measured through backtesting. Forecasts skip tracking outages, adjust to shifts in performance and can include calendar events you add. Runs in the p202 command line (Pro or its 7-day trial on 1.9.79).

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 send no tracking clicks unless you add --http. Runs in the p202 command line (Pro or its 7-day trial on 1.9.79).

$ p202 campaign check-urls --url-contains old-network.com
Light, dark + system themes Coolify deploy from the repo Correction + retraction postbacks Hash-pinned front-end assets Cached direct links keep redirecting if MySQL is down Optional 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 of the click
    $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.

Tell networks about corrections

Remove a conversion and a pending postback is cancelled. If it was already sent, a retraction goes to the pixel's correction URL, once you add one.

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 each postback's signature against Apple's published keys (SKAdNetwork 2.1 to 4.0 and AdAttributionKit); 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%
Email
0%
Social
0%
Display
0%
Search
0%
Last Click

Credit Distribution

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

Credit Distribution

3.2%
Email
6.5%
Social
12.9%
Display
25.8%
Search
51.6%
Last Click

Credit Distribution

40%
Email
6.7%
Social
6.7%
Display
6.7%
Search
40%
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. Shown with the default settings: time decay with touches two days apart and a 48-hour half-life, position based with 40% to the first touch, 40% to the last and 20% shared by the touches between.

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 attribution from hourly totals

Attribution breakdowns read an hourly rollup that returns exactly what the full computation would. At 1 million conversions, a 30-day breakdown takes 0.1 to 1.25 s instead of 30 to 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 pts 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, Edge and other browsers

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

Revenue, cost, net profit, ROI, EPC and CPA

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 and traffic rules from code, and forecast results with the p202 command line. API permissions let you limit what a script or AI agent can do.

The REST API and the PHP CLI (bin/p202) work on every install. On 1.9.79 the p202 command line needs Prosper202 Pro or its 7-day trial; from 1.9.80, which isn't out yet, it needs only a free licence.

Goals, events, apps, LTV, forecast events 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 (trimmed) { "data": [ { "aff_campaign_id": 1, "aff_campaign_name": "Summer Campaign", "aff_campaign_url": "https://offer.example.com/?sub=[[subid]]", "aff_campaign_payout": 2.5, "aff_network_id": 4, "payout_mode": "replace" } ], "pagination": { "total": 42, "limit": 50, "offset": 0 } }
# List campaigns with PHP CLI $ bin/p202 campaign:list aff_campaign_id aff_campaign_name aff_campaign_payout aff_network_id … 1 Summer Campaign 2.5 4 … 2 Winter Promo 4 2 … 3 Flash Sale 1.75 4 … Showing 1-3 of 3 # 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 --days 365 # 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

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. The app also checks its licence with Tracking202 and sends basic usage events, never click or customer 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 if # your MySQL user is allowed to (on cPanel or Plesk, create # it in the control panel first), 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.
# Local test stack (PHP errors shown on screen). # For a live click server, use Coolify or the release download. $ 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 (source installs only)