跳到主要内容

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_visit and every render of 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 with push_ stays in qubix_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:

JavaScript
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​

EventWhat it meansCarries
campaign_visitA 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.
renderTwo 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_pageThe 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_visitWritten 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_sdkOlder records only: the SDK's report of an arrival the server had already recorded. No longer written.Campaign; markers as the SDK sent them.
Do not add these up

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​

EventWhat it meansCarries
installedThe 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_acceptedThe install was accepted — written alongside installed.The same set.
install_blockedThe install did not happen: conditions did not let it through.The same set.
install_rejectedThe visitor declined the install prompt.The same set.
install_iosThe install path for iPhone, which differs from the others.The same set.
install_fallback_redirectThe install was impossible, so the visitor was sent onward to the offer.The same set.
install_fallback_stayThe install was impossible and the visitor stayed on the page.PWA, offer.
launch_pwaThe installed app was opened.PWA, campaign, offer, geo.
render_pwa_launchThe launch screen of the installed app was drawn.PWA, geo, the address.
installed and install_accepted come in pairs

They 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:

EventWhat it means
push_prompt_shownThe visitor was asked for permission to send notifications.
push_allowPermission granted.
push_denyPermission refused.
push_ignoredThe prompt was neither accepted nor refused.
push_subscribeThe subscription was registered and can now be sent to.

The delivery — what happened to a sent campaign. These carry the push campaign instead:

EventWhat it means
push_sentThe notification was handed over for delivery.
push_shownIt was displayed on the device.
push_clickThe visitor tapped it and came back.
push_dismissThe visitor swiped it away.
push_expiredIt was not delivered before its lifetime ran out.
push_failedDelivery 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​

EventWhat it meansCarries
regA 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.
depA 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:

EventWhat it means
postback_no_subidThe request carried no identifier, so it could not be attached to any visitor.
postback_unmatched_statusThe status was not recognized.
postback_duplicate_suppressedA repeat of a conversion already counted.
postback_stale_hashThe request arrived at an address that has since changed.
postback_unknown_clickThe 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_visitA 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_repeatA visit postback for a click whose visit is already recorded.
postback_partner_visit_knownA visit postback of a visitor who already has a click recorded by Qubix: there is no visit to add.
postback_partner_visit_unreadA 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.

Attention

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​

EventWhat it means
exit_intentThe visitor was about to leave the page.
idle_redirectThe visitor was sent onward after a period of inactivity.
openThe app or page was opened.
offer_refresh_deniedA request to re-issue the offer link was refused.
interactionA 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:

FieldWhat it is
event_timeWhen it happened.
eventThe kind, from the tables above.
piuidThe 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.
urlThe 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_idThe common markers, lifted into columns of their own.
status, revenue, currencyFilled on conversions.
country, city, language, device, ua, ipWho and from where.
campaign_id, offer_id, ad_id, pwa_id, domainWhat the traffic belongs to.
target_typeWhat 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_idWhich push campaign — the delivery family only.
extraEverything else the source of the event chose to record.

What's next​