Registration on your own site → the ad platform and the source
Here the registration and the payment happen not at an affiliate network but on your own site: in your product, store or service. The site itself — its page or its server — has to tell Qubix about them. Then Qubix sends the conversion to the ad platform, by postback to the traffic source or both ways — as the source itself decides. If the registration happens at a network, the network reports it — see The path of a visitor and a conversion.
What you need beforehand: a site — hosted in Qubix or on your own hosting — and a tracker campaign whose entry point covers its address.
1. Qubix code on the site
- The site is hosted in Qubix — the code is already there, ติดตามอีเวนต์ is on from the start (a site of the Whitepage type gets no code at all). More — A hosted site counts itself.
- The landing page is on your own hosting — in แลนดิ้งเพจ add it with the + เว็บไซต์ภายนอก button and put the code from the เชื่อมต่อไซต์ block on every page. More — Connecting a landing page hosted elsewhere.
Check: visits appear on the หน้า item of the website card.
2. The campaign and the source
The campaign's entry point is the domain and path of your site. Where the conversion goes is decided by the traffic source Qubix attributes the click to: usually the source of this campaign the visit came by; where a platform's campaigns are attached to tracker campaigns — the attached campaign's source of that platform, and of several such sources the one the visit came by. That source's template and settings decide it, and the two ways of sending do not depend on each other:
- by the event map — if the source's template has an ad platform's event map, the conversion goes to that platform under the name the map pairs it with, or the platform's own tag on the site sends it, if the source is set so;
- by postback — only การลงทะเบียน and เงินฝาก, each to its own address and switched on in คอนเวอร์ชัน, in the row of the source in the card of the conversion; a person to whom that section is not open sets the same address and switch in the source card, in the S2S โพสต์แบ็ก block — each of the two has its own row there; see Parameter passing and postback.
A source can use both ways or neither. More — The path of a visitor and a conversion.
3. Tell Qubix about the registration and the payment
Pick one way — Qubix handles them alike.
From the page. In the site code, at the place where the registration was accepted or the payment went through, add a call:
// the registration was accepted
sdk.sendEvent('reg')
// the payment went through
sdk.sendEvent('dep', { payout: '50', currency: 'USD', txid: 'order-123' })
txid is the order or deal number: by it Qubix does not count a repeat. More —
Report a registration or a deposit.
From the site server. The page takes the visitor identifier from the Qubix code — sdk.getPiuid() — when the lead
is sent and passes it to the server together with the lead, for example in a hidden form field. On a site connected
with the script from a Qubix domain the identifier appears once Qubix has answered the page's first event, so do not
read it when the page loads. When the server has accepted the registration or the payment, it calls the postback
address from the card of a domain with the โพสต์แบ็ก role:
# registration
curl "https://pb.your-domain.com/<code>/postback?subid=CLICK_ID&status=lead&from=mysite"
# deposit
curl "https://pb.your-domain.com/<code>/postback?subid=CLICK_ID&status=sale&payout=50¤cy=USD&from=mysite"
The ready address with the code is in the URL โพสต์แบ็ก block of the domain card; it is shown only to those who see all domains. More — If your landing page has its own backend.
From a handler of a site hosted in Qubix. The handler knows the visitor of the request by itself:
Qubix.conversion('reg');
Qubix.conversion('dep', { payout: '50', currency: 'USD', txid: 'order-123' });
More — Landing page backend.
4. Check every step
| What to check | Where |
|---|---|
| ad visits land in the campaign | tracker campaign card → คลิก |
| the registration and the deposit are recorded | campaign card → การลงทะเบียน and เงินฝาก; กลุ่มเป้าหมาย → the visitor card |
| the server postback arrived | กลุ่มเป้าหมาย → โพสต์แบ็ก |
the conversion went to Facebook (a source on the facebook template) | the Facebook window → the สอบเทียบ tab — the delivery strip above the table; แหล่งที่มา — the Not sent to Facebook: N label in the Facebook: ไม่มีแคมเปญแทร็กเกอร์ row |
The campaign card tabs show visits with an ad number in the address and conversions of such visits. A test visit opened by hand without an ad number is found in กลุ่มเป้าหมาย and on the หน้า item of the website card. An administrator sees it; with limited access you see visits and events only of the ads of your campaigns.