# Keitaro Tracker: Installation and Creating a Campaign

- Link: https://medialeto.com/en/keitaro-tracker-install-first-campaign/
- Published: 2024-05-22T10:54:30+03:00
- Author: Дмитрий Лето

Hi everyone! This is the MediaLeto team. Following the questions we’ve been getting,
we’ve prepared a series of articles about the Keitaro tracker, which we use ourselves:
a clear walkthrough of the settings and tricks that will help you multiply your 
profit!

![ keitaro](https://medialeto.com/wp-content/uploads/2024/05/2024-05-22_10-10-15.
png)

 **Содержание**  [скрыть](https://medialeto.com/en/keitaro-tracker-install-first-campaign/#)

 [ 1 How to install the Keitaro tracker on a VPS/VDS server? ](https://medialeto.com/en/keitaro-tracker-install-first-campaign/#How_to_install_the_Keitaro_tracker_on_a_VPSVDS_server)

 [ 1.1 Choosing a server ](https://medialeto.com/en/keitaro-tracker-install-first-campaign/#Choosing_a_server)

 [ 1.2 Installing on a server with Keitaro preinstalled ](https://medialeto.com/en/keitaro-tracker-install-first-campaign/#Installing_on_a_server_with_Keitaro_preinstalled)

 [ 1.3 Manual installation ](https://medialeto.com/en/keitaro-tracker-install-first-campaign/#Manual_installation)

 [ 2 Creating an administrator ](https://medialeto.com/en/keitaro-tracker-install-first-campaign/#Creating_an_administrator)

 [ 3 The workspace and tracker resources ](https://medialeto.com/en/keitaro-tracker-install-first-campaign/#The_workspace_and_tracker_resources)

 [ 4 Creating a campaign ](https://medialeto.com/en/keitaro-tracker-install-first-campaign/#Creating_a_campaign)

 [ 4.1 Buying a domain and connecting it to a campaign ](https://medialeto.com/en/keitaro-tracker-install-first-campaign/#Buying_a_domain_and_connecting_it_to_a_campaign)

 [ 4.2 Example for BEGET.COM ](https://medialeto.com/en/keitaro-tracker-install-first-campaign/#Example_for_BEGETCOM)

 [ 4.3 Adding a traffic source to the tracker ](https://medialeto.com/en/keitaro-tracker-install-first-campaign/#Adding_a_traffic_source_to_the_tracker)

 [ 4.3.1 Adding without a template ](https://medialeto.com/en/keitaro-tracker-install-first-campaign/#Adding_without_a_template)

 [ 4.4 Adding an affiliate network to the tracker ](https://medialeto.com/en/keitaro-tracker-install-first-campaign/#Adding_an_affiliate_network_to_the_tracker)

 [ 4.4.1 Setting up an affiliate network without a template ](https://medialeto.com/en/keitaro-tracker-install-first-campaign/#Setting_up_an_affiliate_network_without_a_template)

 [ 4.5 Creating a campaign ](https://medialeto.com/en/keitaro-tracker-install-first-campaign/#Creating_a_campaign1)

Keitaro is a tracker used to distribute the traffic flow with redirect filters.

It shows which pages users are more active on, which helps you build a strategy 
for further work.

Keitaro’s features include:

 * detecting parameters of incoming traffic and rotating banners;
 * [split testing](https://medialeto.com/en/gambling-offer-split-test-facebook-miro-scheme/)
   to find out which page brings more traffic;
 * redirects, click-through redirection, iframe code;
 * limiting bot traffic by detecting it and separating it from real users.

**Keitaro has no cloud version, so to work with the tracker you’ll need your own
server: a VPS or VDS. **

## How to install the Keitaro tracker on a VPS/VDS server?

The quickest and easiest way to install the tracker is with the auto-install script.

For installation we need a Keitaro license (we have one) and a server.

### **Choosing a server**

You can pick any popular host, it doesn’t matter: go with what you like more or 
where the server is cheaper, but pay attention to the server’s hardware requirements
and operating system.

Required parameters:

 1. A clean server, no control panel;
 2. Operating system: CentOS 9 Stream or CentOS 8 Stream;
 3. KVM virtualization;
 4. At least 20GB SSD;
 5. At least 2GB RAM.

![keitaro](https://medialeto.com/wp-content/uploads/2024/05/2024-05-22_10-12-09.
png)

Keitaro doesn’t work on the following hosts:

 * Zomro.com
 * Ihor.ru
 * Prohoster.info
 * Jino.ru

We’ll walk through the installation using [the Beget host](https://medialeto.com/en/services/beget-hosting-domains-servers/)
as an example. Open [beget.com](https://beget.com/p1517067), sign up, or log in 
to your account if you’ve already registered.

### **Installing on a server with Keitaro preinstalled**

 1. Go to the Application Catalog in the footer of [beget.com](https://beget.com/p1517067)⌊
    keitaro⌉
 2. Select Keitaro ⌊keitaro⌉
 3. Choose the server specs. Pick the server based on your expected traffic volume.
 4. Keitaro is already selected for preinstallation. Set up a domain if needed and 
    add an SSH key. ⌊keitaro⌉
 5. Click Create virtual server and wait for the installation to finish. ⌊keitaro⌉
 6. After installation, open the tracker at http://your_server_ip/admin/ (replace your_server_ip
    with the IP of your new server) or use the technical domain provided by the host:
    http://domain.beget.app/admin/

### **Manual installation**

 1. On the [beget.com](https://beget.com/p1517067) home page choose Pick a server
 2. Choose the server configuration you need
 3. Choose the CentOS 9 Stream OS and click Create ⌊keitaro⌉
 4. After the server is created, connect over SSH and install Keitaro with the command:
    curl keitaro.io/kctl.sh | bash -s — install
 5. After installation, open the tracker at http://your_server_ip/admin/ (replace your_server_ip
    with the IP of your new server) or use the technical domain provided by the host:
    http://domain.beget.app/admin/

## **Creating an administrator**

Before your first login you need to create an administrator and set the basic settings
and preferences:

 1. Go to your_server_ip/admin
 2. Create a login and password for the tracker user account. These are used to log
    in to the Dashboard.
 3. Enter the license key you got at keitaro.io to activate the tracker.
 4. Set the language of the tracker administrator account
 5. Set the time zone of the tracker administrator account
 6. Set the tracker currency. The tracker stores and shows report data in the selected
    currency. You can change it later on the Settings page.

**Pick the right currency right away, because values already recorded in the tracker
don’t change in reports after conversion.**

## The workspace and tracker resources

Let’s go through the basic tracker interface to understand the workspace, its purpose
and settings. The text briefly answers “What is it?”, “How is it useful?” and “How
does it affect my work?”. Each item then gets a short demo video with more detailed
commentary. Full details on setup and working with each resource are in the matching
section of the documentation.

![keitaro](https://medialeto.com/wp-content/uploads/2024/05/image11.png)

 * Dashboard is a board visualizing tracked events. Useful for a full picture of
   campaign activity.
 * Campaigns are the tracker’s basic entity. Traffic is tracked and distributed,
   and stats are collected, based on campaigns. Creating and configuring a campaign
   is mandatory for working with the tracker.
 * Landing pages are what affiliate networks call prelanders/bridge pages, i.e. 
   pages that usually open the funnel. In this section of the tracker you add and
   store landing pages (as links, archives, actions) and set up and view landing
   page reports.
 * Offers are what affiliate networks call landers/target pages, i.e. pages where
   conversions are usually collected. In this section of the tracker you add and
   store offers (as links, archives, actions) and set up and view offer reports.
 * Affiliate networks are a set of Postback setup templates in the tracker. The 
   templates are made for connecting to offers and quickly getting the Postback 
   URL that fits a specific affiliate network. They help automate receiving conversions
   from the affiliate network in the tracker.
 * Traffic sources are a set of templates in the tracker for receiving UTM tags 
   from ad platforms and for sending S2S postbacks (conversions) to the platforms’
   ad accounts for traffic optimization and other tasks. They help automate receiving
   and sending data from and to traffic sources.
 * [Reports (Clicks)](https://medialeto.com/en/keitaro-tracker-reports/) is the 
   section that shows clicks and traffic (click) characteristics: IP, country, browser,
   connection type, etc.
 * Reports (Conversions) is the section that shows conversion data: payout amounts,
   conversion status, conversion source, etc.
 * Reports (Create report) is the section for building reports by filtering and 
   grouping data (clicks and conversions). It helps you analyze data in depth, find
   weak spots, build hypotheses for improving performance, get insights and improve
   your ad promotion approach.

## Creating a campaign

We’ll create a basic campaign and get it ready to launch: connect a domain, add 
a traffic source, an affiliate network and an offer. All further tips are optional
and show basic setup examples.

Basic campaign setup order:

 1. Buy a domain and park it in the tracker
 2. Add a Traffic source template to the tracker
 3. Add an Affiliate network template to the tracker
 4. Create a campaign with these elements added.

### **Buying a domain and connecting it to a campaign**

A domain in Keitaro is needed so campaigns run over a secure HTTPS connection, to
avoid traffic loss and for some features to work correctly. In Keitaro a domain 
works as a link to the campaign content. Required: use a clean domain for Keitaro.
Using the same domain for both Keitaro and third-party software, sites, etc. is 
not acceptable.

### Example for BEGET.COM

Go to your [BEGET.COM](https://beget.com/p1517067) account, to the Domains tab:

Register a new domain: enter the name, choose the zone and pay

Next go to the My domains tab, click the three dots to the right of the domain and
choose Edit DNS records:

Delete the existing A records:

Click Add record and choose A:

In the IP Address field enter your tracker’s IP.

Go to the Domains page in the tracker, click Add and enter the domain name:

And click Add. The DNS will update within 24 hours.

### **Adding a traffic source to the tracker**

A traffic source in Keitaro is a template set of data for passing UTM parameters
from your ad network or any other traffic source. It’s connected to simplify setting
up data transfer from the source to the tracker and, if needed, back to the source.

Go to Traffic sources, then Create. ⌊keitaro⌉

Click Create.

After that you can add the source in the Campaign settings.

When you choose a source in the campaign settings, all parameters are added to the
Campaign URL automatically.

If you change parameters in the template, tick Apply to campaigns:

#### **Adding without a template**

Find the instructions on the available tokens (placeholders) that need to be passed
in the URL. For example: [BID], [UID], [SITE], [AD].

Setup example:

 * Parameter cost, value [BID].
 * Parameter external_id, value [UID].
 * Parameter site, value [SITE].
 * Parameter creative_id, value [AD].

### **Adding an affiliate network to the tracker**

An affiliate network in Keitaro is a template set of data (UTM parameters) for setting
up conversion receiving from the affiliate program in Keitaro using the Postback
tool.

Go to Affiliate networks and click Create.

Choose an affiliate network from the templates and click Create.

Use the template to set up the Postback

How Keitaro and affiliate networks interact:

 1. The affiliate network’s pages are placed in tracker campaigns, and the tracker 
    sends traffic there;
 2. When a conversion happens, the affiliate network sends a postback to the tracker
    to collect conversion stats and build reports.

In the tracker each affiliate network is a separate template with the data needed
for Postback setup. To get stats from the affiliate network into the tracker, you
need to set up the Postback correctly.

#### **Setting up an affiliate network without a template**

When you create a new affiliate network in Keitaro, the first half of the Postback
URL is generated automatically. The first half consists of the domain and an individual
Postback key

All that’s left is to add a question mark “?” after the word “postback” and enter
the parameters the affiliate network works with. The list of parameters is either
on the postback settings tab in the CPA network, or you need to ask the manager.

For example, in the M1 affiliate network the list of all available macros is on 
the Global Postback tab:

### **Creating a campaign **

You don’t have to add both a landing page and an offer to the campaign. The campaign
content is added optionally, according to the content, goals and details of your
funnel.

Go to the Campaigns page and click Create.

Choose the domain and the source:

Click Create stream.

Go to Schema and add the landing page and offer you created:

Click the icon to open the landing page code editor:

Find the link to the target page in the code. Example click_6688.html:

You need to replace the href attribute value with {offer} for every link that leads
to the offer. Result:⌊keitaro⌉

Click** Apply** and then **Create campaign. **

Copy the campaign link:

**Open it in a browser and check how it works.**

In the next articles we’ll go through the tracker’s tricks and campaign optimization!!!

**Good luck! And subscribe…**

_My YouTube channel (in Russian) — [https://www.youtube.com/channel/UCPVr9mvbxK964oVPWzs9fsA](https://www.youtube.com/channel/UCPVr9mvbxK964oVPWzs9fsA)_

_My 2nd channel in English — [https://www.youtube.com/channel/UCfq-rGi1Qwo-d5ewlu3PLOg](https://www.youtube.com/channel/UCfq-rGi1Qwo-d5ewlu3PLOg)_
_Telegram public channel (in Russian) — [https://t.me/dzmitryletoYT](https://t.me/dzmitryletoYT)_
_Main Telegram chat (in Russian) — [https://t.me/+VuL68jKbV3MyMjJi](https://t.me/+VuL68jKbV3MyMjJi)_
_Telegram public channel on UBT (in Russian) — [https://t.me/ybtshniki](https://t.me/ybtshniki)_
_Telegram UBT chat (in Russian) — [https://t.me/ybtshnik](https://t.me/ybtshnik)_
_VK personal page — [ https://vk.com/dzmitryleto90](https://vk.com/dzmitryleto90)_
_VK public page — [https://vk.com/dzmleto](https://vk.com/dzmleto)_ _Instagram —
[https://www.instagram.com/feelman90/](https://www.instagram.com/feelman90/)_ _TikTok—
[https://www.tiktok.com/@dzmitryletoyt?\_t=8j5S3gfezgM&\_r=1](https://www.tiktok.com/@dzmitryletoyt?_t=8j5S3gfezgM&_r=1)_
_Threads — [https://www.threads.com/@feelman90](https://www.threads.com/@feelman90)_
_Twitter — [https://x.com/dzmleto](https://x.com/dzmleto)_ _FB personal page — [https://www.facebook.com/profile.php?id=100046657389033](https://www.facebook.com/profile.php?id=100046657389033)_
_FB fan page — [https://www.facebook.com/profile.php?id=61555327155768](https://www.facebook.com/profile.php?id=61555327155768)_
_Yandex Dzen channel (in Russian) — [https://dzen.ru/dzmitryleto](https://dzen.ru/dzmitryleto)_
_RuTube channel (in Russian) — [https://rutube.ru/channel/34651691](https://rutube.ru/channel/34651691/)_
