Event reference
Everything Qubix sees about a visitor lands in a stream of events: the visit from an ad, the page that was shown, the install, the push notification, the conversion posted back by an affiliate network. Scripts read that stream, and so do the funnel and the reports.
The stream is kept in three tables with the same columns:
qubix_events— the visits, installs, conversions and the rest of what the visitor did;qubix_server_events— the server's records of its own answers:white_page,crawler_visitand everyrenderof a target that does not send the visitor straight on. Its rows are kept for 30 days unless the administrator sets another period;qubix_push_events— the push notification events below; your own event whose name merely starts withpush_stays inqubix_events.
For a while after an update the moved rows lie in both their new table and qubix_events: a query that puts the tables together
keeps in the qubix_events branch only its own rows — the condition is in Tables for sql queries.
This page lists the kinds of events, what each one carries, and the traps worth knowing before you count anything.
See your own events first
Names below are the ones this product writes, but which of them appear depends on what you run. Ask your own data:
function main() {
const kinds = sql`
SELECT event, sum(if(edition = 'cancel', -1, 1)) AS n, max(event_time) AS last_seen
FROM qubix_events
WHERE event_time > now() - INTERVAL 30 DAY
GROUP BY event
ORDER BY n DESC`
for (const k of kinds) console.log(k.event, k.n, k.last_seen)
}
The same query over qubix_server_events and qubix_push_events lists the rest.
You may see names that are not in the tables below — test traffic, scanners probing your domains, or events from a newer version than this page. Treat an unknown name as unknown; do not guess it into a funnel.
Traffic
| Event | What it means | Carries |
|---|---|---|
campaign_visit | A visitor's browser arrived on a page from an ad — the top of the funnel, one per arrival. Sent by the tracking code on the page: Qubix adds it to an uploaded site with the ติดตามอีเวนต์ switch on; on your own site your code sends it; on a PWA storefront the storefront itself sends it. | The full landing address with every marker the source put in it; campaign; geo; the ad, when the link carried one. extra.served_via says how the page was opened: campaign — from a campaign link (sdk.track() on your own site writes the same), direct — a page of an uploaded site was opened outside a campaign, store — the PWA storefront's own arrival. A manual sdk.sendEvent('campaign_visit') does not set this field by itself. |
render | Two kinds share this name. With a target_type — the server's own record of an arrival by a campaign, written for every kind of target except a PWA storefront, whose arrival is the storefront's own campaign_visit. Without one — a page of the PWA was shown. The arrival of a target that sends the visitor straight on (offer_redirect, url_redirect, tg_channel, tg_bot) is in qubix_events; every other render is in qubix_server_events. | The address, geo; on an arrival — campaign, ad and target type; on a page — the PWA. |
white_page | The cloak served the safe page instead of the offer. In qubix_server_events. | The address, campaign, geo; extra.crawler_reason — set when the visit would be recorded as crawler_visit, and why. |
crawler_visit | Written instead of campaign_visit or the arrival render when the visitor is recognized as a bot or a link preview; never counted as a visit. In qubix_server_events. | The same as the arrival; extra.crawler_reason — why it was recognized. |
campaign_visit_sdk | Older records only: the SDK's report of an arrival the server had already recorded. No longer written. | Campaign; markers as the SDK sent them. |
campaign_visit is the top of the funnel as the visitor's browser saw it. A campaign that sends
visitors straight on to an offer or an address shows them no page, so it has no campaign_visit at
all: its arrivals are the render rows with target_type offer_redirect or url_redirect. Every
other render and every white_page describe what was shown, and one visitor produces several of
them — they are in qubix_server_events.
Installs and launches
| Event | What it means | Carries |
|---|---|---|
installed | The PWA was installed. The same event is written when a network's postback reports an install with the status install, installed, app_install or install_app. | PWA, campaign, offer, ad, geo, the address. |
install_accepted | The install was accepted — written alongside installed. | The same set. |
install_blocked | The install did not happen: conditions did not let it through. | The same set. |
install_rejected | The visitor declined the install prompt. | The same set. |
install_ios | The install path for iPhone, which differs from the others. | The same set. |
install_fallback_redirect | The install was impossible, so the visitor was sent onward to the offer. | The same set. |
install_fallback_stay | The install was impossible and the visitor stayed on the page. | PWA, offer. |
launch_pwa | The installed app was opened. | PWA, campaign, offer, geo. |
render_pwa_launch | The launch screen of the installed app was drawn. | PWA, geo, the address. |
installed and install_accepted come in pairsThey are written for the same install, so counting both doubles your installs. Pick one — installed —
and use it everywhere. This is the single most common way an event-based funnel goes wrong.
Push notifications
Both families below are in qubix_push_events. They share the push_ prefix, and mixing them is a mistake.
The subscription — what happened on the storefront. These carry the campaign, the offer and the ad, because they belong to the traffic that brought the visitor:
| Event | What it means |
|---|---|
push_prompt_shown | The visitor was asked for permission to send notifications. |
push_allow | Permission granted. |
push_deny | Permission refused. |
push_ignored | The prompt was neither accepted nor refused. |
push_subscribe | The subscription was registered and can now be sent to. |
The delivery — what happened to a sent campaign. These carry the push campaign instead:
| Event | What it means |
|---|---|
push_sent | The notification was handed over for delivery. |
push_shown | It was displayed on the device. |
push_click | The visitor tapped it and came back. |
push_dismiss | The visitor swiped it away. |
push_expired | It was not delivered before its lifetime ran out. |
push_failed | Delivery failed. |
So the conversion of a push campaign is push_click against push_sent, while the quality of your
storefront is push_allow against push_prompt_shown. Neither ratio makes sense across the two
families.
Conversions
| Event | What it means | Carries |
|---|---|---|
reg | A registration, reported by an affiliate network's postback, by your own server, by the page itself (sdk.sendEvent('reg')) or by a site handler (Qubix.conversion). | Status as the sender named it, currency, offer, ad, geo, and the original request. |
dep | A deposit. | The same, plus the amount and its currency. |
Whoever sends them, they go through the postback's processing, so they know the visitor (piuid), but
they do not carry the marker your traffic source put in the link. That marker arrived earlier,
with the arrival — on campaign_visit, or on the arrival render of a campaign that sends visitors
straight on to an offer or an address. Sending events to your source shows how
the two are tied together.
Postback diagnostics
These are not conversions. They are records of postbacks that could not be turned into one, and of visit postbacks, kept so that a missing conversion or visit can be investigated from a screen instead of a log:
| Event | What it means |
|---|---|
postback_no_subid | The request carried no identifier, so it could not be attached to any visitor. |
postback_unmatched_status | The status was not recognized. |
postback_duplicate_suppressed | A repeat of a conversion already counted. |
postback_stale_hash | The request arrived at an address that has since changed. |
postback_unknown_click | The postback named a click Qubix never saw; recorded instead of a conversion while the ปฏิเสธโพสต์แบ็กของคลิกที่ไม่รู้จัก setting is on. The click identifier the network sent is in the click_id column, and piuid is empty on this record. |
postback_partner_visit | A visit postback (status visit) of a network made from the Qubix template: the visit is recorded as the visitor's campaign_visit, and this record keeps the postback itself. |
postback_partner_visit_repeat | A visit postback for a click whose visit is already recorded. |
postback_partner_visit_known | A visit postback of a visitor who already has a click recorded by Qubix: there is no visit to add. |
postback_partner_visit_unread | A visit postback whose visit was not recorded: the database failed while checking the visitor or looking up the campaign of the visit. |
In the postbacks journal of the panel the four visit records are named Partner visit recorded, Partner visit suppressed as duplicate, Partner visit: click already recorded and Partner visit not recorded: database error.
Never count these as conversions — filter your queries by the event name explicitly rather than taking everything that came from a network.
Behavior on the page
| Event | What it means |
|---|---|
exit_intent | The visitor was about to leave the page. |
idle_redirect | The visitor was sent onward after a period of inactivity. |
open | The app or page was opened. |
offer_refresh_denied | A request to re-issue the offer link was refused. |
interaction | A click or a form step on a page whose visits the tracking code counts. The kind is in extra.type: click, outbound (a link to another site), form_view, form_start, form_submit, form_abandon; there is also limit — a single mark with no click or form, when the tracking code has used up its event limit for one page load. extra.sel is the path to the element (html:nth-of-type(1)>body:nth-of-type(1)>…); a click after which the visitor went on to the offer carries extra.offer set to 1. extra.load is the page-load identifier, shared by all the clicks and form steps of one page load (the visit doesn't have it); extra.served_via is campaign or direct, as on the visit; extra.ad_id is the visit's ad, when it is known. A form step carries extra.form_id — the form's id or name, empty when it has neither; form_start also carries extra.field — the field in which the visitor started typing, form_submit and form_abandon — the last field they worked in, empty when no field was entered. A field is named by its name or id, never by what was typed into it. |
Fields of an event
Not every field is filled for every kind — an install has no status, a push delivery has no offer. What is worth knowing:
| Field | What it is |
|---|---|
event_time | When it happened. |
event | The kind, from the tables above. |
piuid | The visitor identifier; it ties the visitor's whole journey together. Empty on the postback diagnostics records postback_no_subid, postback_stale_hash and postback_unknown_click: they could not be attached to a visitor. |
url | The full raw address of the request, with every parameter the source sent. The exceptions are interaction and a visit opened outside a campaign: for them the tracking code sends the page address without parameters. |
params['name'] | Any parameter of that address, already parsed out. |
sub_id_1 … sub_id_16, click_id, external_id | The common markers, lifted into columns of their own. |
status, revenue, currency | Filled on conversions. |
country, city, language, device, ua, ip | Who and from where. |
campaign_id, offer_id, ad_id, pwa_id, domain | What the traffic belongs to. |
target_type | What the campaign sent the visitor to, for example offer_redirect, url_redirect, whitepage, landing_offer, website, prelanding_pwa_offer. A Landing row is landing_offer with an offer and website without one. Set on arrivals. |
push_campaign_id | Which push campaign — the delivery family only. |
extra | Everything else the source of the event chose to record. |