Tracking Examples
Complete implementation examples for each tracking method — from the partner link to the recorded transaction.
Standard tracking (cookie)
The classic flow via go.cgi:
https://partner.your-site.com/go.cgi
?pid=2&cpid=1&wmid=3&target=SummerSale<script type="text/JavaScript"
src="https://partner.your-site.com/get_trans.cgi
?cpid=1&tid=ORD-2026-001&umsatz=95.50
&produkt=Sale&js=1">
</script>Deeplink tracking
The partner links directly to a product page:
https://partner.your-site.com/go.cgi
?pid=2&cpid=1&wmid=cc
&target=https://www.your-shop.com/product/summer-dressesAnchor tracking
No redirect, organic link with # fragment:
https://www.your-shop.com/summer-dresses#Q4S02C12getpid.js included on the landing page (header/footer)
Special tracking pixel (under System → Tracking Codes)
Referrer tracking
The simplest link — no parameters, no fragment:
https://www.your-shop.com/summer-dressesgetpid.js automatically recognizes the partner domain and sets the cookie
ClickID / Server-to-Server
For cookieless tracking, mobile and apps. Recommendation: use client pixel and S2S in parallel.
Click target:
https://www.your-shop.com/landing?qc_clickid=<% CLICKID %>Store ClickID in shop (PHP example):
<?php
// On the landing page, transfer the ClickID from the URL to the session
if (!empty($_GET['qc_clickid'])) {
$_SESSION['qc_clickid'] = $_GET['qc_clickid'];
}
?>Client pixel (order confirmation page):
<script src="https://partner.your-site.com/get_trans.cgi
?js=1&cpid=1&tid=ORD-2026-001
&clickid=<?= htmlspecialchars($_SESSION['qc_clickid'] ?? '') ?>
&produkt=Sale&umsatz=95.50">
</script>S2S postback (server-side, a few seconds after the client pixel):
<?php
$params = http_build_query([
'cpid' => 1,
'tid' => 'ORD-2026-001',
'clickid' => $_SESSION['qc_clickid'] ?? '',
'produkt' => 'Sale',
'umsatz' => 95.50,
]);
$ch = curl_init("https://partner.your-site.com/get_trans.cgi?{$params}");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 5);
curl_exec($ch);
curl_close($ch);
?>Product feed tracking
With product data feeds, the deeplink URLs are automatically enriched with the PartnerID. The process:
- You provide the product data feed (CSV or text, via FTP or HTTP)
- QUALITYCLICK fetches the feed regularly and prepares the deeplinks
- Partners retrieve the personalized feed via a link in their account