Click & View Tracking

    All details on standard tracking via go.cgi — URL parameters, deeplinks, view tracking and cookie handling.

    Standard tracking URL

    Standard link
    https://partner.your-site.com/go.cgi
      ?pid=1&cpid=2&wmid=3&prid=4&target=TestLinkName

    A redirect is performed to the deeplink URL stored for the alias "TestLinkName". Placeholders in the target URL are replaced by QUALITYCLICK.

    Deeplinks

    With deeplink tracking, the partner links directly to any subpage of your shop:

    Deeplink
    https://partner.your-site.com/go.cgi
      ?pid=1&cpid=2&wmid=cc&prid=4
      &target=https://www.your-shop.com/product/123
    ⚠️Warning
    &target= must always be the last parameter. Everything after it is the deeplink URL; it can be passed unencoded or URL-encoded.

    Allowlist for deeplinks

    Under System → Allowlist you define which domains are approved for tracking - both for links and for the creatives themselves (e.g. banners). As soon as at least one domain has been entered and the allowlist is activated, deeplinks and view calls to all other domains are blocked. With * as a wildcard you can approve, for example, all subdomains (*.your-shop.com).

    go.cgi parameter reference

    ParameterDescriptionRequiredPlaceholder
    pidPartner ID; without a partner ID, the click is not attributed to any partnerYes<% PID %>
    cpidCampaign ID (program ID); if omitted, program 1 is usedRecommended<% CPID %>
    wmidCreative ID; "cc" for deeplinksYes<% WMID %>
    pridProduct IDNo<% PRID %>
    targetClick target alias or URL; if the parameter is missing, the call is rejected with error 400Yes, except with view=1-
    subidSub-ID of the partnerNo<% SUBID %>
    subid_1 to subid_nAdditional SubIDs of the partnerNo–
    viewview=1 counts an impression (view) instead of a clickNo-
    refReferrer; only evaluated for deeplinks (wmid=cc)No-
    clickidClickID from anchor trackingNo–
    rwmidCreative ID for statistics with deeplinks; an already known creative ID takes precedenceNo-
    var1 to var3Free values that are inserted into the target URL via the placeholders <% var1 %> to <% var3 %>No-

    The following placeholders are available in target URLs (click targets): <% PID %>, <% SUBID %>, <% WMID %>, <% CPID %>, <% PRID %>, <% UID %> (visitor ID), <% CLICKID %> (ClickID generated by the system, see S2S / ClickID Tracking), <% MC %> (merchant code of the partner) and <% var1 %> to <% var3 %>.

    Tracking parameters

    Under System → Tracking Codes → Tracking parameter you set up standard parameters that are automatically appended to all tracking links (e.g. utm parameters for your web analytics). You can use the placeholders <% PID %>, <% SUBID %> and <% CLICKID %> in them. Tracking parameters are not appended to view calls.

    View tracking

    View tracking captures creative impressions. The call is also made via the go.cgi with the additional parameter view=1:

    View call
    https://partner.your-site.com/go.cgi
      ?pid=1&cpid=2&wmid=3&view=1
    • Enable/disable per partner program: Creatives → Categories → gear icon → "View tracking"
    • If a post-view duration is set for the partner, the view call additionally sets a post-view cookie (see Tracking Basics)
    💡Tip
    Enabled view tracking may affect traffic costs. For container creatives, it has no additional impact on usage costs.

    Output variants

    The go.cgi supports these output formats:

    • Redirect (301): Default for clicks on creatives and deeplinks
    • Image pixel (GIF): For view calls without a target URL

    Container creatives are not embedded via the go.cgi but via a separate call, and are reloaded for each call.

    GeoIP filter for pay-per-click

    Restricting compensated pay-per-click clicks to specific countries is possible on request. Please contact info@qualityclick.com.

    Still have questions?
    Our team helps you with the integration – personally and competently.