Click & View Tracking
All details on standard tracking via go.cgi — URL parameters, deeplinks, view tracking and cookie handling.
Standard tracking URL
https://partner.your-site.com/go.cgi
?pid=1&cpid=2&wmid=3&prid=4&target=TestLinkNameA 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:
https://partner.your-site.com/go.cgi
?pid=1&cpid=2&wmid=cc&prid=4
&target=https://www.your-shop.com/product/123&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
| Parameter | Description | Required | Placeholder |
|---|---|---|---|
pid | Partner ID; without a partner ID, the click is not attributed to any partner | Yes | <% PID %> |
cpid | Campaign ID (program ID); if omitted, program 1 is used | Recommended | <% CPID %> |
wmid | Creative ID; "cc" for deeplinks | Yes | <% WMID %> |
prid | Product ID | No | <% PRID %> |
target | Click target alias or URL; if the parameter is missing, the call is rejected with error 400 | Yes, except with view=1 | - |
subid | Sub-ID of the partner | No | <% SUBID %> |
subid_1 to subid_n | Additional SubIDs of the partner | No | – |
view | view=1 counts an impression (view) instead of a click | No | - |
ref | Referrer; only evaluated for deeplinks (wmid=cc) | No | - |
clickid | ClickID from anchor tracking | No | – |
rwmid | Creative ID for statistics with deeplinks; an already known creative ID takes precedence | No | - |
var1 to var3 | Free 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:
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)
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.