Customizing an Affiliate Tracking Link

Affiliate tracking links are ready to go once you create an offer, and there are many ways to tailor them to your campaign specifics. You can add parameters that help track certain campaigns or store values from an affiliate's tracking system.

Here, we'll go over how you can customize an affiliate tracking link to your needs using HasOffers parameters. We introduced parameters, values, macros, and how they fit into your workflow in our article on Parameters & Macros in HasOffers.

This article is part of our HasOffers Basics series.

Tracking Link Parameters

Depending on which tracking protocol your offer uses, its affiliate conversion link may already include parameters for offer ID or affiliate ID. Using the parameters generated by default, HasOffers has enough information to create a session and redirect the user to the offer URL.

However, there are many instances where you or your publisher may want to keep track of additional information. In those cases, you can add the following parameters to your affiliate tracking link for your publisher to provide more data:

Source & Affiliate Sub ID

Frequently, you won't need to add many parameters to an affiliate tracking link. The most commonly used parameters are the traffic source and affiliate sub ID parameters:

  • source
  • aff_sub
  • aff_sub2
  • aff_sub3
  • aff_sub4
  • aff_sub5

You can use up to one source parameter and five sub ID parameters, each of which appear in your stats and conversion reports. Not only that, but these parameters are also stored by HasOffers and can be returned in affiliate conversion URLs via HasOffers macros.

These parameters are most commonly used to store session information from the affiliate’s tracking system that they want passed back on conversion. Here's an example of an affiliate tracking link that uses these parameters:

http://demo.go2cloud.org/aff_c?offer_id=1&aff_id=1&aff_sub=AFF_SUB&source=SOURCE

For the above tracking link, the affiliate would provide the appropriate macros from their tracking system to replace the "AFF_SUB" and "SOURCE" placeholder values. As an example, their tracking system could have a macro for click ID that you use to replace "AFF_SUB", and another macro for traffic source that you use to replace "SOURCE".

Additional Offer URLs & Random URL

If the offer has more than one URL to send traffic to, the offer's Generate Tracking panel will have an additional dropdown below the Affiliate dropdown menu. Here, you can provide an additional offer URL. This appends one of the two following parameters to the tracking link:

  • url_id
  • random_url

When the url_id parameter is added to the tracking link, the numerical ID value references the ID of an additional offer URL in the offer that the affiliate can redirect traffic to:

http://demo.go2cloud.org/aff_c?offer_id=1&aff_id=1&url_id=5

If there is more than one offer URL added in the offer, there will also be an option to select a random URL from the list. The tracking link would then look something like this:

http://demo.go2cloud.org/aff_c?offer_id=1&aff_id=1&random_url=1

If you add the random_url parameter, then the ad server selects an offer URL at random from the offer (including the default offer URL) and redirects the user to that page. There is no equal distribution of traffic with this setting, and traffic to specific pages varies.

Creative Files

When creative files have been added to an offer, the offer's Generate Tracking panel will have an additional item labeled Creative. When you select a creative file from the dropdown menu, your tracking link is appended with the following parameter:

  • file_id

This parameter also appears in the standalone tracking link to track the performance of the creative in the stats reports:

http://demo.go2cloud.org/aff_c?offer_id=1&aff_id=1&file_id=15

Deep Links

If you have the custom deep link feature enabled for an offer, you can set a custom redirect URL to use instead of using one of the existing landing page URLs set in the offer already. Once this is enabled, you can append the following parameter to your tracking link:

  • url

Unlike the url_id parameter, this parameter expects a valid, encoded deep URL to be added for traffic to redirect to:

http://demo.go2cloud.org/aff_c?offer_id=1&aff_id=1&url=http%3A%2F%2Fexample.com

Payout on Click

In some cases, you may want to dynamically pass the payout that the publisher receives for a session. If you're driving internal pay-per-click traffic and want to pass the cost per click through the tracking link, you can use the following parameter:

  •  payout

To enable this feature, go to Company > Customize Application > Settings > Tracking. On that page, set Specify payout on click to "Enabled" and click Save once you're finished. Once you've done so, you'll be able to use the payout parameter:

http://demo.go2cloud.org/aff_c?offer_id=1&aff_id=1&payout=2.49

Warning: This setting can be prone to abuse and should only be used for internal campaigns. There is no way to stop affiliates from adding their own custom payout on click using this parameter.

Click Macro Redirect

You can specify a custom click macro by first enabling the offer tracking setting, and then passing in a URL using the following parameter:

  • redirect

For this parameter, you can include either the {redirect} or {eredirect} macro to track your clicks in another tracking system. The {redirect} macro is replaced by the offer URL for the click, and the {eredirect} macro is replaced by the URL-encoded offer URL for that click. We recommend using {eredirect} if your click macro URL contains a query string.

Here's an example of a URL that can be set as the custom click macro for an offer:

http://track.3rdpartytracking.com/track?redirect={redirect}

On click, the {redirect} macro in the above URL is replaced with the HasOffers tracking link for the offer:

http://track.3rdpartytracking.com/track?redirect=http://demo.go2cloud.org/aff_c?offer_id=1&aff_id=1

Custom Transaction IDs

Before using the parameter for custom transaction ID, contact your account manager or our support team to enable the feature for your network.

To pass a custom transaction ID in your tracking link, append the following parameter:

  • ad_id

You or your publisher needs to insert an externally generated transaction ID value in this parameter before the click registers in HasOffers. HasOffers stores the value of ad_id as the transaction ID for the session.

If no value is provided for ad_id on a click, then conversions in that click session are rejected with the "No Transaction ID provided" error. However, if the ad_id parameter is omitted entirely from the tracking link, then HasOffers generates a typical transaction ID for the click session.

Custom Variables

If using the affiliate sub IDs and source values are insufficient for passing through values on click to the landing page, you can set up custom variables to use in the offer URL and tracking link. A common example of this is when publishers want to pre-populate a lead generation form with user contact information to help improve conversion rates.

Here's an example of a tracking link using custom variables for the email and phone parameters:

http://demo.go2cloud.org/aff_c?offer_id=1&aff_id=1&phone=1-206-555-4921&email=john@example.com

Table of Parameters

The following HasOffers parameters can be used in your affiliate tracking links:

Parameter Description
ad_id Externally generated custom transaction ID
aff_id ID of affiliate promoting the offer
aff_sub Publisher sub ID 1
aff_sub2 Publisher sub ID 2
aff_sub3 Publisher sub ID 3
aff_sub4 Publisher sub ID 4
aff_sub5 Publisher sub ID 5
file_id ID of the creative file used in HasOffers
offer_id Offer's ID in HasOffers
payout Specified offer payout to publisher
random_url Flag to randomly select an offer URL from the ones available. Value is "1" when enabled.
source Publisher's traffic source
url Custom redirect URL for HasOffers deep links
url_id Offer URL ID in HasOffers

Mobile Tracking Parameters

When you want to support mobile device attribution, you can use our mobile tracking parameters in your affiliate tracking links:

Parameter Description
google_aid Google Android advertising identifier used to attribute clicks to installs for apps in the Google Play store
google_aid_md5 MD5 hash of the Google Android advertising ID
google_aid_sha1 SHA1 hash of the Google Android advertising ID
ios_ifa Apple iOS advertising identifier (iOS 6+)
ios_ifa_md5 MD5 hash of iOS device's IFA ID
ios_ifa_sha1 SHA1 hash of iOS device's IFA ID
ios_ifv Apple iOS vendor identifier (iOS 6+)
unid Catch-all for unknown mobile device identifiers
user_id Application-specific user ID (generated by app developer)
windows_aid Windows device advertising identifier
windows_aid_md5 MD5 hash of the Windows advertising ID
windows_aid_sha1 SHA1 hash of the Windows advertising ID

No Comments

Leave a reply