AurumClick
ChaptersLandings and offers

DocumentationTraffic

Landings and offers

On this page
  1. Types
  2. Local landings and offers
  3. Preview and test lead
  4. Page failures
  5. Behavior analytics
  6. Click-through from landing to offer
  7. Landing check
  8. Offers

Landing and offer types, local pages (ZIP, editor, PHP, revisions), connecting affiliate network API landings, a test lead from the preview, the click-through to the offer, landing check, caps.

Types

Type How it works
Local (default) files are stored in the tracker (ZIP or the built-in editor) and served from the tracker domain; macros are substituted into the HTML. The ZIP is picked right in the create form and uploaded right after “Create” — the card opens with the files and preview already in place
Redirect the visitor goes to an external URL; _subid and _token are added to it (the parameter names are configurable, and this can be turned off)
Preload the tracker downloads the page and serves it from its own domain (with <base href> pointing to the original)
Action an action instead of a page (text, HTML, 404…)

Local landings and offers

  • ZIP upload — the archive is unpacked, paths and symlinks are checked (files outside the archive and links are rejected), the size and allowed extensions are limited. A file name with control characters (line feed, tab, null byte) or text direction characters makes the archive rejected with a clear error (the same applies to a new file and a rename in the editor); Cyrillic and spaces are fine. The .git, .svn, .hg, .idea, .vscode folders are dropped. All other content is available to the visitor by URL, except service files: hidden ones (.env, .htpasswd, except .well-known/), backups (*.bak, *.old, *.orig, *.swp, *~), databases and configs (*.sql, *.sqlite, *.db, *.ini, *.conf, *.cfg, *.yml, *.log, *.inc, *.key, *.pem) — they return 404, while the page’s PHP reads them as usual.

  • Large archives — in parts, with resume. An archive over 16 MB is sent in 8 MB parts. Under the progress bar there are “Pause”, “Resume” and “Cancel” buttons. If the connection drops, the upload retries by itself: after 1, 2, 4… up to 30 s. After 8 failures in a row you see “no connection — upload paused”; the upload resumes with the button or by itself when the network is back. If you closed the tab or reloaded the page, the card shows “Unfinished upload of …: N % received”. Choose the same file — it is matched by name, size and modification date, and the upload continues from where it stopped. The “Cancel” button deletes the received parts. An abandoned upload is deleted a day after its last part. A user can have no more than 4 unfinished uploads. Checks and unpacking are the same as for a regular upload. Admin API: POST /{landing_pages|offers}/{id}/uploads {name, size, modified?, sha256?} → id, offset. Then the parts — PUT …/uploads/{upload} with the bytes as the body and Content-Range: bytes a-b/size (or ?offset=): a part is up to 16 MB, repeating an accepted part is safe, a gap returns 409 upload_gap with fields.offset. Received so far — GET …/uploads/{upload}. Finish — POST …/uploads/{upload}/complete: the response is the same as for POST …/upload, a repeat gives the same result. Cancel — DELETE …/uploads/{upload}.

  • Fixes for third-party templates — when a ZIP is uploaded, the tracker fixes known bugs in affiliate network templates and lists them in the upload report. Template with lib.php: the rule that adds content/ to paths in CSS url(...) ignored letter case and broke the JS code new URL(…) — upsell scripts (“back button interception”) failed. The fixed rule changes only CSS paths (and leaves data:, https://, //, # alone).

  • Network for many offers at once — select offers in the list → “Affiliate network” in the selection bar → choose a network or “No affiliate network” → “Apply”. Only the network changes; the result is in the notification (changed, already set, no edit rights). The network in an offer is also needed for the “no postbacks” alert — it is counted per offer of the network. API: POST /offers/bulk_network {ids, network_id}.

  • Download ZIP — the current revision’s files as an archive: the ⤓ icon in a row of the landings and offers list (for local pages with files), “Download ZIP” in the row menu, a button in the card next to “Open in a new tab” and an icon in the code editor. Several pages — select them in the list → “Download ZIP (N)” in the selection bar: one archive, each page in a folder named after its address (208-hqgwrw; up to 500 pages at a time; external pages and pages without files are skipped). API: GET /{landing_pages|offers}/{id}/download, GET /{landing_pages|offers}/download_zip?ids=1,2,3.

  • Public link (show the page without logging in to the tracker, like /lander/ in Keitaro) — “Copy public link” in the row menu of the landings and offers list and in the card next to “Open in a new tab”. The link is on the tracker domain: https://<domain>/lander/<page address>/ (the landings path comes from the traffic settings); for an offer — /offer-files/<address>/. The domain is the main one, otherwise a domain with a certificate and campaigns (domains “without campaigns”, including the admin domain, and wildcards are not used). The page opens without a click: macros are not substituted, and the form sends a real order to the network (without a subid it does not get into the statistics). The logs folder is not served by the link. API — GET /{landing_pages|offers}/public_base ({base, path}, link {base}/{path}/{slug}/). If the browser does not allow copying, a window opens with the link selected — press Ctrl+C.

  • Page address and closed link — the “Link to the page” section in the card of a local landing or offer:

    • “Page address (in the link)” — your own, like a landing folder in Keitaro (fh3938HHdf47HHdf → https://<domain>/offer-files/fh3938HHdf47HHdf/): Latin letters, digits, “-” and “_”, up to 64 characters; empty — the tracker assigns the address (a number and 6 characters). The address must not be taken by another page of the same kind (including the archive). After you change the address, the old link stops opening; campaigns, statistics and page logs are not affected.
    • “Close the direct link” — the page does not open by a link without a click from the tracker (404). Campaign traffic, page files, forms and the preview in the admin panel work as usual; “Copy public link” will tell you that the link is closed. API — the slug and public_closed fields of a landing and an offer.
  • Theft protection — a section in the card of a local landing or offer: “If the page is stolen (opened on a foreign domain)”. Off (default) — the page is served as before. On — the tracker embeds an invisible visit mark and a small script into the page: if the page is opened somewhere other than a tracker domain (a copy from a spy service or a competitor’s site), it reports to the tracker where it was opened and, depending on the choice:

    • “Only report the theft” — the “Landing theft” notification (in the app and in Telegram/Slack) and an entry in the system log (“page clone”: page, domain, IP);
    • “Report and show a blank page” — the thief’s copy goes blank;
    • “Report and send the visitor to our page” — a visitor of the copy lands on the real page on our domain. Display via Click API (KClient PHP, WordPress), KClient JS, the tracking script, in a frame or a script (frm=frame, frm=script) happens on the webmaster’s domain — there the mark and the script are not inserted (otherwise a normal display would count as theft).

    On our domains, by the server IP, in the preview and when the tracker is unavailable, the page works as usual. PHP handlers and network keys cannot be stolen — they never reach the browser. “Find the copy source” (a button above the list of landings and offers, administrators only): paste the HTML of the stolen copy — the tracker finds the mark and shows the visit it was taken from (date, IP, geo, ISP, browser, campaign); the IP goes to the bot list with one button (such visitors get the white page via the “Bot” filter). The mark exists only in copies taken after protection was turned on. API — protect_mode (off|report|blank|redirect), POST /page_guard/identify {text}.

  • File editor — a file tree, Monaco with HTML/CSS/JS/PHP/JSON highlighting, search and replace (regular expressions), tabs, Cmd/Ctrl+S. The preview is in an iframe of the admin panel. Files and folders can be renamed (the pencil in the tree — the whole path can be changed, which also moves the file) and dragged into another folder; the entry point moves together with its file, and a taken path or moving a folder into itself is rejected. Every change is a new revision.

  • Network API (a button in the editor) — for an API landing from an affiliate network archive (a form + an order handler order.php/send.php that sends the lead to the network API itself). Choose the network (AD1, CTR.ru, Dr.Cash, Everad, HotPartners, KMA, Leadtrade, Leadvertex, LemonAD, LuckyOnline, M1-Shop, M4Leads, MonsterLeads, Ryumka, Shakes.pro, TerraLeads, Traffic Light) or a custom field name: <input type="hidden" name="…" value="{subid}"> is added to every form (if the field exists, its value is replaced), and the lines from the network’s instructions are fixed in the handler (for example, for Shakes $_GET['sub1'] → $_POST['sub1'], for Leadvertex utm_term ← subid). Edits are made only by an exact pattern; whatever is missing in the files goes to the “Do manually” list in the report. Everything is one revision (roll back in “Revisions”), and a repeat changes nothing. Set the tracker postback in the network — the template is in “Affiliate networks”. Via Admin API — GET /lp_networks, POST /landing_pages/{id}/lp_api {network, field} (and the same for offers).

  • Page logs (the logs folder) — the only place the page code can write to (other files are read-only for PHP). A form handler that keeps a lead log writes to logs/: fopen('logs/orderlog.php', 'a') or __DIR__ . '/logs/orderlog.php'; in a template with lib.php (LOG_ENABLED = true) set the log path to logs/orderlog.php. The folder is shared by all revisions of the page (editing and rollback do not erase the logs). logs/… is not served to visitors (404) and does not get into the page files, the archive or the preview. To view them, open the editor, “Logs (logs)” under the file tree: a list (newest first, refreshes by itself), a viewer (last 2 MB), “Download” for the whole file, file deletion and “Clear logs”. Only those who can edit the page can see and clear them (the logs contain lead data). A logs/ folder in an uploaded ZIP is skipped with a warning. Via Admin API — GET /{landing_pages|offers}/{id}/logs, GET …/logs/file?path=, GET …/logs/download?path=, DELETE …/logs[?path=]. Works when files are stored on the server disk (not in a cluster on S3).

  • Page leads — the tracker records every form submission from a local landing or offer to its handler (order.php, etc.) by itself, with no code changes: time, campaign, subid, lead fields, the handler response and the result — Processed, Duplicate, Error (with the response text), Queued; later the network response (postback) is added to the row, along with a “repeat phone” mark if this phone was already sent from this page. Older leads are pulled in from the handler’s orderlog. To view them, open the page editor, “Logs” → “Leads”, or Maintenance → Logs → “Page leads”: for all pages or a selected landing/offer, for a period picked in the calendar (opens on “Today”, like the “Audit” tab; for older leads use the “All time” preset), search by phone, name, subid and error text. The log holds lead data: it is visible to those who can edit the page (the shared log — to an administrator). Via Admin API — GET /logs/page_leads?kind=landing|offer&page_id=&search=&from=&to=&tz=&limit=. The tracker uses the log to match submissions with postbacks: if the network has not sent a postback for most forms within an hour, there is an alert “is the network rejecting leads?” (Settings → Alerts, “Forms without postbacks, %”).

  • Folders in the editor start collapsed — the files in the page root are visible; a folder expands on click, and the folders of the open file expand by themselves.

  • Revisions — every save and ZIP upload creates a revision, the last 10 are kept. The “rev N” badge in the editor is the list of revisions with a comment and date; Restore creates a new revision — a copy of the selected one (history is not lost, and a rollback is undone the same way). Via Admin API — POST /landing_pages/{id}/revisions/{rev}/restore (and the same for offers).

  • PHP — runs in an isolated php-fpm 8.3 sandbox: no access to the tracker databases, with time and memory limits, with a guest Redis for counters (Keitaro compatible). A page response is no more than 32 MB (more is a page error in “Page failures”). The admin login cookie and service headers (Authorization, Api-Key, CSRF) are not passed to PHP. It is turned on in Settings → Traffic (“Allow PHP in local landings and offers”, “PHP timeout, s”). Page address for form handlers (same place): what PHP sees in Referer — a form handler like order.php passes it to the network as the page address. “Full address” — as is, “Without parameters” — without tracking tags and parameters, “Domain only” — only https://domain/, “Parameters only, no domain” — only ?<tracking tags>=… (the handler sends the tags as separate fields, and the page address without the domain and path; Origin is not passed to PHP). The _gk protection service token never reaches PHP, and the click data (KT_CLICK, KT_TOKEN) is removed from the server variables — the $rawClick methods work as before. Running programs (exec, system, shell_exec, passthru, proc_open, popen, etc.) is disabled in the sandbox; eval() works. If the archive contains such calls, the tracker warns you during the ZIP upload — make sure the page works without them.

  • JS adapter is inserted automatically (turned off in the landing settings): it saves the subid and token in a cookie, adds the parameters to links to the tracker and to forms, and provides the KTracking object: KTracking.getSubId(), KTracking.getToken(), KTracking.sendPostback(...) (as in Keitaro).

  • Lead checks in forms (a checkbox of a local or preload landing/offer, off by default): the phone is checked against the click country — country code, number length (about 100 countries, the rest — 7–15 digits) and mobile operator code; a wrong number gets a hint with a format example in the page language, and the form is not sent. Before sending, the number (as a SHA-256 hash, the number itself is not stored) is compared with numbers that already brought a lead to this offer or landing within the “Lead duplicate window” (Settings → Traffic, 30 days): a duplicate gets a warning (pressing again sends it) or the form is blocked (the “A number with a lead within the duplicate window” setting). Reports have the “Invalid phones” and “Lead duplicates” metrics. Matching and marks work only for the tracker’s own click: the tracker gives the page a signed context (one day), without it only the number format is checked; up to 10 lookups per click (numbers cannot be enumerated through someone else’s page).

  • Not a mobile number (same place, with lead checks on; “Warn” by default): the number is compared with the mobile operator codes of the click country (the tracker’s own table of 98 countries). A landline or made-up number of the right length (+7 495…, 1111111111) gets the hint “Looks like this is not a mobile number” with a mobile example. “Warn (a repeated submit goes through)” — a person with a real landline number sends the form with a second press, no leads are lost; “Do not submit the form” while the number is not mobile — for offers where the call center calls only mobiles; “Do not check (length only)”. Every such attempt shows in the “Invalid phones” metric. In the USA, Canada, the Dominican Republic, Mexico, Argentina and Denmark mobile numbers cannot be told apart by the number, so only the length is checked there. Without a click country (preview) the check is by length only as well.

  • Bots in forms (same place, with lead checks on; “Do not check” by default): a hidden trap field is added to the form (a person does not see it and cannot reach it with the Tab key), and the time from the first touch of the fields to the submit is measured. A filled-in trap or a submit faster than 2 seconds (without browser autofill) means a bot. “Mark the click” — the form goes through, the click and the lead are marked; “Do not submit a bot’s form” — the form is not sent (a person who pressed too fast sends it with a second press). The tracker removes the trap field from the form before sending, and the page handler does not get it, so it never reaches the network. Bots show in the report — the “Bots in forms” metric (it is in the “Placement quality” template), in the click log — the “Bot in the form” flag, in the leads log (Maintenance → Logs → Page leads) — a “bot” badge and the “not sent” result; the “is the network rejecting leads” alert does not count bots. A bot that submits the form bypassing the page scripts is caught only by the trap.

Preview and test lead

The preview in the card and in the editor shows the page the way a visitor will see it: PHP runs and macros are substituted. Forms in the preview send a real order to the network with the subid preview0000000000 — this is how you check that the lead reaches the network without starting traffic. The tracker submits the form on behalf of the page on the working domain (Referer is the public address of the page, IP is yours), so the network sees the order as a regular one.

  • Use a made-up phone number and the name “test”, then reject the order in the network.
  • Such a lead does not get into the tracker statistics: there is no click with the subid preview0000000000.
  • If the form returned an error (the network did not accept the order, PHP crashed), the preview shows a page with the reason in the browser language.

Page failures

Every failure of a local page — a PHP error, a 5xx response, and for a form submission also a 4xx response (for example, the network replied “Missing required param: phone”) — is written to Maintenance → Logs → System with the error text. If one page has 3 or more failures within 10 minutes, a notification “Page … failing” arrives with a link to the offer or landing (in the app and, depending on the notification settings, in Telegram/Slack — the “Landing and form failures” type, once an hour per page).

Behavior analytics

Local landings and offers have a “Metrika” block in the card: visible time, depth and attention by screen, clicks, forms, errors and page speed, bot score — in the click log and reports. Session replay, hiding and masking elements, “Check Metrika” (a preview with the agent in debug mode). The lists have a “Metrika” column, a filter and bulk “Turn on Metrika”. The card shows “last 7 days: N views, M recordings”, “Open Metrika” and “Click map”; the files and the code editor have “Click map of this revision”. Each revision is counted separately in Metrika: after you save a new one, a hint appears with a button to compare it with the previous one. Details — Behavior analytics.

Click-through from landing to offer

The offer link in a landing is the {offer} macro (or ?_lp=1 on the tracker domain). The tracker identifies the click by the token, cookie or subid, picks the offer by the stream shares (or the one chosen on entry) and sends the visitor on.

  • {offer:ID} / &offer_id=ID — a link to a specific offer of the stream (multi-offer landings).
  • {offer_value:KEY} — a value from the offer’s “Values (multi-offer)” field, up to 10 pairs (if the offer is chosen on entry).
  • exit=1 — a click-through without counting an LP click.
  • ?_update_tokens=1&sub_id={subid}&sub_id_3=… — add sub_id_N to the click (for reports only).

If the token has expired (Settings → Traffic → “LP token lifetime, h”, 168 h = 7 days by default), the offer is chosen again by the stream from the token (the offer recorded in the token is not used), and the click (the token signature is valid) is found by its subid — the LP click-through and the offer are recorded on the original click if it is still in the click cache or in ClickHouse.

Landing check

The “Check landing” button is in the landing card and in the editor. The tracker opens the page with a test click (subid check…, token check-token) and analyzes it; no click or conversions are recorded.

  • Local — the entry point of the current saved revision is checked; macros are substituted the way the tracker substitutes them ({offer} → https://<main domain>/?_lp=1&_token=…). PHP is not executed — the source is checked, and there is a separate note about it.
  • Redirect — the page is loaded by URL with _subid/_token (if “Pass _subid and _token” is on); preload — by URL as is, macros and the JS adapter are substituted as on a click.
  • An action landing has nothing to check.

Links and forms get marks:

Mark What it means
Click token is passed the link leads to the tracker (?_lp=1) and carries _token or _subid
The JS adapter will add the token the link has no token, but the page has the adapter (inserted by the tracker or added manually)
No _token (error) a link to the tracker without a token and without the adapter — the click-through will not be tied to the click
Bypasses tracker a direct link to the offer domain — the offer click will not be counted
No hidden subid field the form sends the order not through the tracker and does not pass the click subid — the network will not return it in the postback

Page files — images (src, srcset, data-src, the background in style), styles, scripts, fonts, video, frames and the form handler (action), and in the revision’s CSS — url() and @import. Only problematic ones are shown, errors first:

Mark What it means
Not in the revision (error) the local file is missing — the browser gets 404 (a broken image or form script means silent lead loss)
Letter case differs (error) the revision has Logo.png, but the page loads logo.png — the server will not find the file
File next to the entry point (error) the entry point is in a subfolder, but page paths resolve from the landing root
Outside the landing folder a path from the domain root (/favicon.ico) — the tracker does not serve such a file
Response 404 (error) / another code an external file (or a file of an external landing) does not respond as it should
Not responding timeout or connection error
http on an https page the browser will not load a script, style, font or frame (error); it shows an image with a “Not secure” mark. A preload is shown on the campaign’s https domain — so for a preload of an http site all its files get this mark

External files are checked with a HEAD request (a server without HEAD — with a request for the first byte), no more than 40 per check and no longer than 20 seconds: scripts and styles first, the rest go to the “not checked” counter. Rules commented out in CSS and data: placeholders in srcset are not checked, addresses with commas (…/w_400,h_300/a.jpg on Cloudinary) are read as a whole, img\a.png — as img/a.png (this is what the browser does). A custom relative <base href> on a local landing gets a warning: on the campaign page the paths will not lead to the landing folder.

Page warnings: a meta redirect, a script redirect, unsubstituted macros, not a single link to the offer, an HTTP error of an external page. The result is “All good”, “Warnings” or “Errors”. API: POST /landing_pages/{id}/check.

Offers

  • Duplicate — a button in the offers and landings lists: a copy with all settings and page files.
  • Where used / Replace offer — in the offer card: a list of streams with this offer and replacing it with another one in all streams at once (the share in the stream is kept). Streams that already have the new offer and streams of campaigns without edit rights are skipped — their number is shown in the result.
  • Affiliate network — the network parameters are added to the offer URL, and the postback comes to the common URL.
  • Payout — fixed or from the postback (payout), in the offer currency; CPA or CPC (the conversion is created at the moment of the click-through to the offer with the status from the “CPC conversion status” setting).
  • Lock the payout at the first postback (for a fixed payout) — a conversion’s payout uses the rate at the time of its first postback: changing the offer rate does not change the holds of earlier clicks. Off — every postback takes the current rate.
  • Approval period, days (CPA, 7 by default) — how long the network usually takes to decide on a lead: the approval forecast learns only from clicks older than this period (Reports). Approval probabilities by country and source are at the bottom of the offer card.
  • Countries — a hint for filters and reports.
  • Cap — a daily conversion limit (in the offer time zone). When the cap is reached, traffic goes to the alternative offer; the alternative can have its own alternative (a chain). If the chain is exhausted — according to the “Cap: when the chain is exhausted” setting (the original offer / 404 / the default stream). The current cap value is in the offer card; when it is reached, you get a notification.

Didn’t find an answer?

Support