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:

    1. Creative link
    https://partner.your-site.com/go.cgi
      ?pid=2&cpid=1&wmid=3&target=SummerSale
    2. Tracking pixel
    <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:

    Deeplink
    https://partner.your-site.com/go.cgi
      ?pid=2&cpid=1&wmid=cc
      &target=https://www.your-shop.com/product/summer-dresses

    Anchor tracking

    No redirect, organic link with # fragment:

    1. Organic link
    https://www.your-shop.com/summer-dresses#Q4S02C12

    getpid.js included on the landing page (header/footer)

    Special tracking pixel (under System → Tracking Codes)

    Referrer tracking

    The simplest link — no parameters, no fragment:

    1. Regular link
    https://www.your-shop.com/summer-dresses

    getpid.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:

    1. Link with ClickID
    https://www.your-shop.com/landing?qc_clickid=<% CLICKID %>

    Store ClickID in shop (PHP example):

    2. Store ClickID in session
    <?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):

    3a. JavaScript pixel (real-time)
    <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):

    3b. PHP Server-to-Server fallback
    <?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);
    ?>
    💡Tip
    QUALITYCLICK automatically detects duplicates based on the TransactionID. You can safely use pixel and S2S call in parallel — the transaction is only created once.

    Product feed tracking

    With product data feeds, the deeplink URLs are automatically enriched with the PartnerID. The process:

    1. You provide the product data feed (CSV or text, via FTP or HTTP)
    2. QUALITYCLICK fetches the feed regularly and prepares the deeplinks
    3. Partners retrieve the personalized feed via a link in their account
    💡Tip
    If you would like to set up a product data feed, contact info@qualityclick.com. We configure the automatic retrieval and preparation for your partners.
    Still have questions?
    Our team is here to help with your integration — personally and competently.