Session Tracking
Pass the PartnerID through your shop internally — without cookies, directly via URL parameters or your server session.
How it works
With session tracking, the PartnerID (and optionally the SubID) is passed as a URL parameter to your shop when a creative is clicked. Your shop stores these values in the server session or carries them as URL parameters from page to page. On the order confirmation page, you pass the stored values back to the tracking pixel.
This method is suitable when you already have the PartnerID available internally in your order system and don't need cookie-based tracking.
Setting up click targets
All links under Creatives → Click Targets must contain the PartnerID as a URL parameter. Use the placeholder <% PID %>:
https://www.your-shop.com/page1?pid=<% PID %>Optionally, you can also pass the SubID:
https://www.your-shop.com/page1?pid=<% PID %>&subid=<% SUBID %>Storing the PartnerID in your shop
Your shop must read the PartnerID from the URL parameter and retain it until the order confirmation. Two options:
- Server session: Store the value in your web server's session (recommended)
- URL parameter: Carry the value from page to page as a URL parameter
<?php
// On the landing page, transfer the PartnerID from the URL to the session
if (!empty($_GET['pid'])) {
$_SESSION['qc_pid'] = $_GET['pid'];
}
if (!empty($_GET['subid'])) {
$_SESSION['qc_subid'] = $_GET['subid'];
}
?>Passing data to the tracking pixel
On the order confirmation page, pass the stored PartnerID to the tracking pixel:
https://partner.your-site.com/get_trans.cgi
?cpid=1
&tid=ORDERNUMBER
&pid=12345
&subid=AB
&umsatz=95.50
&produkt=Salepid, subid and wmid in the tracking pixel override the values read from the cookie. Only pass parameters you can actually populate with values — when in doubt, leave them out. If both cookie and session data are present, an explicitly passed pid takes precedence. For subid and wmid, the precedence rules below apply. pid only takes effect with values from 2.Attribution precedence rules
If several pieces of information are available for a transaction, QUALITYCLICK attributes it in this order:
- Lifetime commission: If lifetime commission is active and the passed customer (
kunde) is already assigned to a partner within the lifetime period, this partner receives the transaction. - Parameter
pid(values from 2) in the tracking pixel - a ClickID is then not evaluated. - ClickID (parameter
clickidor ClickID from the click cookie) - the values for partner, SubID and creative determined from it take precedence over passedsubidandwmid. SubID and creative are only determined from the ClickID if the click target contains the placeholder<% CLICKID %>. - Click cookie of the program; passed
subidandwmidoverride the cookie values. - Post-view cookie - lowest priority, only if no click cookie is present.
If no partner attribution can be determined, the transaction is discarded by default and only recorded in the transaction log. Booking to PartnerID 1 can be set up by the QUALITYCLICK team on request.
When to use session tracking vs. cookie tracking?
| Criterion | Cookie tracking | Session tracking |
|---|---|---|
Effort | Low (just add the pixel) | Medium (session logic in the shop) |
Attribution over days | Yes (cookie duration) | Only within a single session |
Cookieless | No | Yes |
Cross-device | No | No |