Keitaro setup from scratch: server, domain, campaign, flows, offers and postback

Keitaro is a self-hosted tracker. Keitaro setup step by step from the official docs: server, license, domain, campaign, flows, offers and postback.

Illustration: a tracker setup checklist — server, domain, flows, postback — and a campaign tree

Keitaro is a tracker affiliate marketers have used for years, and it's self-hosted: you install it on your own server. That means Keitaro setup starts earlier than in cloud trackers: first the server and the license, then the domain, and only then campaigns. Below is the basic Keitaro tracker setup step by step, in the order you usually go through it before the first traffic. Every fact about Keitaro comes from the official documentation, with links to the specific pages. If something looks different in your version, the documentation wins. At the end, an honest note on when you don't need your own server.

Step 1. Server and Keitaro installation#

Keitaro needs your own VPS or VDS. Requirements from the documentation:

  • OS: CentOS 9 Stream or CentOS 10 Stream;
  • KVM virtualization;
  • at least 4 GB RAM and 20 GB SSD;
  • 2 CPUs are enough for up to 100,000 clicks a day. For a load of up to 5–10 million clicks a day, the table in the documentation calls for 8 CPUs.

The documentation also lists hosting providers where Keitaro doesn't work and warns that updates may be unstable on servers in Russia. Check the list before you buy a server.

There are two ways to install the tracker:

  1. Auto-installation at the providers listed in the documentation; each has its own instructions.
  2. A script from the terminal (alternative method). Connect to the server and run:
curl https://files.keitaro.io/scripts/releases/stable/kctl.sh | bash -s -- install

Wait for the installation to finish and copy the panel address, which looks like http://xxx.xxx.xxx.xxx/admin. If something goes wrong, check the install log with tail -n 1000 /var/log/keitaro/install.log. The next step in the documentation is creating the administrator.

Step 2. License#

According to the documentation, you buy a license key and then enter it in the activation form at SERVER_IP/admin. The current editions are Starter, Advanced, Expert, Team and Enterprise. They differ in the number of users, domains and available features; the comparison is on the plans page. Choose an edition by the number of people on your team and the domains you'll actually use.

Step 3. Domain#

Ad links should go through a domain, not the server IP. According to the documentation:

  1. At your registrar, add an A record with the tracker server's IP address to the domain. Keep only that record: delete other A, AAAA and CNAME records. The exception is an AAAA record if you are adding IPv6.
  2. In Keitaro, open the Domains tab and click Add. Write the domain name in lowercase: domains with capital letters aren't supported.
  3. Optionally, pick an Index page: the campaign a visitor sees at the domain root. It works together with the Catch 404 option: requests to non-existent addresses on the domain also go to that campaign.
  4. Once DNS updates, the tracker issues an SSL certificate by itself. You don't need to buy one.

DNS takes anywhere from a few minutes to a day, depending on the registrar. Don't send traffic to the domain until it works.

Step 4. Affiliate network and offers#

It's easier to create offers after the affiliate network, so the right parameters are added to the links automatically.

Affiliate network. In Keitaro it's created from a template: Affiliate networks → Create (documentation). The key field is Offer parameters: the list of parameters the tracker adds to every offer link of this network. The network's parameter is on the left, the tracker's parameter on the right. For example:

&sub1={subid}&sub2={ip}

subid is the click ID in Keitaro. It's required: it's what the affiliate network returns in the postback. The other parameters are optional.

Offer (documentation):

  • Name, Group, Affiliate network: the network adds the right parameters to the URL on its own;
  • Type: a redirect to the affiliate link, or a local offer uploaded to the tracker as a ZIP archive;
  • URL: the offer link from the affiliate network's dashboard;
  • Payout: fixed, or taken from the payout parameter in the postback;
  • Payout type: CPA (after the postback) or CPC (on the click to the offer);
  • Conversion Cap: the daily limit of conversions.

The Countries field of an offer is only a note. To filter by geo, use stream filters, described below.

Step 5. Campaign#

A campaign is an ad link plus a set of rules for where to send traffic. The main settings, per the documentation:

  • Domain: the campaign link is built on it;
  • Alias: appended to the link. With the domain example.com and the alias cloudservers, the link is https://example.com/cloudservers;
  • Traffic source: adds the parameters from the source template to the link;
  • Stream rotation: by position or by weight;
  • Cost model: CPC, CPuC, CPM, CPA, CPS or RevShare;
  • Uniqueness: by IP, IP and User-Agent, cookies or a parameter, with a period from 1 to 8760 hours;
  • Parameters: for UTM tags and building the campaign link.

It's best to set the cost model and uniqueness right away. They determine the cost and unique clicks in reports, and so the campaign's ROI. If you change them a week in, comparing the numbers before and after will be hard.

Step 6. Streams#

Streams decide where a specific click goes. (Keitaro's own documentation calls them flows.) Keitaro has three kinds, checked in this order:

  1. Forced streams are checked first, top to bottom. Use them to cut off bots or to temporarily send part of the clicks elsewhere.
  2. Regular streams carry the main traffic distribution. Without rotation, the first stream whose filters match is used. In a split test, a stream is picked at random according to weight.
  3. Default stream gets the click if no other stream matched. It has no filters.

If there is no default stream, the "Do nothing" action fires. So it's best to always keep a default stream pointed at a fallback offer.

Inside a stream you pick a scheme: distribution between landing pages and offers, a direct redirect, or an action. Filters define which clicks the stream accepts: countries, device type, uniqueness, click limit and others. A filter can be switched to exclusion mode.

A simple working setup to start with:

  • a forced stream for bots, sending them to a neutral page;
  • a regular stream "ES, mobile" with a landing page and an offer for Spain;
  • a default stream with a general offer for the rest of the geos.

Step 7. Postback#

Without a postback, Keitaro sees clicks but not conversions. The postback link is under Settings → Postback URL (documentation). The format:

http://IP/postback-key/postback?subid=REPLACE&status=REPLACE&payout=REPLACE

postback-key is your tracker's postback key. The affiliate network's macros go in place of REPLACE. If the network receives the ID in sub1 in the offer link, the postback will have subid={sub1}.

ParameterWhat it passes
subidclick ID (required)
statusconversion status (required)
payoutpayout, positive or negative
currencypayout currency, for example usd
tidtransaction ID, for repeat conversions on one click
costconversion cost for the CPA and RevShare models
sub_id_1…sub_id_30extra click data

If the network names statuses its own way, you map them to the tracker's statuses right in the link: for example, sale_status=billed&rejected_status=canceled,fake. A repeat postback with the same subid and status overwrites the earlier conversion. To record one more conversion, such as a repeat deposit, pass a unique tid.

Paste the finished link into the Global Postback field in the affiliate network's dashboard.

Testing. Go through the campaign link to the offer and open Maintenance → Logs → Postbacks (troubleshooting). Common errors:

  • Postback status is not set: the postback has no status;
  • Click for subid REPLACE not found: the network didn't insert a real click ID. Check that its postback has subid={sub1} or your own parameter;
  • Incorrect postback code: wrong postback key. Copy the current link from Settings → Postback URL;
  • empty log: the postback link isn't set in the affiliate network's dashboard.

For how postbacks work in general and the macros of popular CPA networks, see the separate guide how to set up an S2S postback.

If you'd rather not run your own server#

Your own server gives Keitaro clear advantages: the tracker and the data are yours, you choose the server's power, and there are the Admin API and the Click API. But a server also means chores: updates, monitoring, a backup for when it goes down, a migration when you switch VPS.

If you don't want those chores, you can take a cloud tracker. lidvanto, a control center for traffic for teams and solo affiliates, is one such option. What's different there:

  • No server needed. There's nothing to install or update.
  • Domains through Cloudflare. The tracker checks the domain and issues SSL itself; see Domains and Cloudflare.
  • A backup you don't configure. Clicks aren't served by a single server: if the main one doesn't respond, standby nodes take the visitors; see Tracker failover.
  • Streams with similar logic. Forced, regular and default streams, rotation by position or weight, filters by country, device, OS, browser, language, IP and bots; see Streams and filters.
  • Next to the tracker: a CRM and a messenger for leads from Telegram, and TikTok Ads bulk launch.

There are honest limits too. You can't install lidvanto on your own server: the data is stored on its servers. There's no server-side Click API. Costs are pulled in automatically only from TikTok; Google Ads is "coming soon". If your process is built around your own server and the Keitaro API, switching may not pay off. For a task-by-task breakdown, see lidvanto vs Keitaro: comparison and A Keitaro alternative for affiliate marketing.

Migrating from Keitaro. If you decide to try it, you won't have to re-enter your settings. The import through the Keitaro API transfers groups, affiliate networks, offers, landing pages, domains and campaigns with streams: weights, filters, several offers with shares. Optionally, daily summary statistics for a period of up to 365 days are transferred as well. Clicks themselves, the conversion list, affiliate network and pixel keys, and action streams are not transferred. Traffic on your domains keeps going through Keitaro until you switch DNS yourself, so you can compare the two trackers on the same campaigns. Step by step in the guide Moving from Keitaro.

FAQ#

What is Keitaro?
Keitaro is a self-hosted ad tracker: you install it on your own server. In it you set up campaigns with flows and filters, offers, landing pages and affiliate network postbacks to see clicks, conversions and ROI. Affiliate marketers and media buying teams have used it for years.

What server does Keitaro need?
According to the documentation, a VPS or VDS on KVM with CentOS 9 Stream or CentOS 10 Stream, at least 4 GB RAM and 20 GB SSD. 2 CPUs are enough for up to 100,000 clicks a day.

Do I need a license for Keitaro?
Yes. According to the documentation, you buy a license key and enter it in the activation form at SERVER_IP/admin.

How much does Keitaro cost?
The license is sold by edition. On November 4, 2026, Keitaro's pricing page listed editions from €40 per month (Starter) to €400 per month (Enterprise); according to third-party reviews, these are yearly-billing prices. The server is paid separately.

How do I connect a domain to the Keitaro tracker?
Add an A record with the tracker server's IP, delete any extra A, AAAA and CNAME records, then add the domain on the Domains tab. The tracker issues SSL itself once DNS updates.

How long does Keitaro setup take?
The script installation is a single terminal command; the domain usually takes the longest: DNS updates take from a few minutes to a day, depending on the registrar. Don't send traffic to the domain until it works. Campaigns, flows and the postback come after that.

How is a Keitaro forced stream different from a regular one?
Forced streams are checked first and take priority. They usually cut off bots. Regular streams distribute the main traffic, and the default stream takes everything that matched no other stream.

Where do I get the postback link in Keitaro?
Under Settings → Postback URL. Paste it into the Global Postback field in the affiliate network's dashboard and put the network's macros in place of REPLACE.

Why aren't conversions coming into Keitaro?
Open Maintenance → Logs → Postbacks. An empty log means the postback isn't set in the affiliate network. The error Click for subid … not found means the network didn't return a real click ID.