Track and Strack
What is Track?
Offerit uses the track feature in order to handle primary tracking for in-bound affiliate traffic. This can usually be found in affiliate link codes, such as the following example:
http://<tracking_domain>/track/xxxxxxx
In the above link, Offerit will replace <tracking_domain> with the actual link domain for your site and replace xxxxxxx with the proper affiliate Offerit code. This can be seen in the following image:
Figure 1.1 An Example link code using the standard track feature
As surfers hit the track link, Offerit will perform its tracking, cookie, and session procedures before redirecting the surfer to their original destination tour URL from the offers admin. The Offerit code itself, or the link domain (if no Offerit code is present) will be used by Offerit to match a Tracking domain or offer id to the correct tour URL.
What is strack?
In contrast to track, strack replaces one offer ID or commission ID with another site or commission ID. If you need to provide links from one Offerit site to another, for example, you can use /strack/ to replace the default offer ID in the Offerit code with a new site ID for the other site. This also serves the purpose of preserving relevant affiliate information, as well as ensuring that affiliates get credit for any offers that have been completed.
strack Formatting
http://<trackingdomain>/strack/<offerit_code>/<offerid_or_shortname>:<landing_pageid_or_shortname>/<program_id_or_shortname>/<track_flag>/<optional_subdirectory_path>/
- trackingdomain is the tracking domain of the offer in Offerit, which will usually be something like example.com or join.example.com, where example.com is the domain of your main landing page.
- offerit_code is the Offerit code from your affiliate or the default Offerit code for the site. Normally this is available to you on a PHP-enabled site through the usage of the following in-line PHP if statement --
<?=$_REQUEST[offerit]?$_REQUEST[offerit]:xxxxxx?>
-- which translates to "If there is a value for Offerit set in either GET, POST, or Cookie, use that value. Otherwise, use the default value provided (which is different for every site)."
- offerid_or_shortname is the ID number or shortname of your desired site. This variable represents the target site and may be different than the site currently being viewed. If you wish to indicate that you do not want to override the site ID number with a new one, you can use the value of 0 as the site ID.
- landing_pageid_or_shortname is the ID number or shortname of your desired tour. This is the target tour and may be different than the site currently being viewed. You will need to have the site ID set to the site that your tour is available on to use this variable.
- program_id_or_shortname is the ID number or shortname of the desired commission. You can use this variable to switch from one commissionto another in your Offerit. Switching commissions can be useful for things such as special offer links. If you do not wish to change the commission, set this value to 0.
- track_flag is going to count as a new hit and reset the tracking cookie if it wasn't set to 0. If track_flag wasn't set then it will track the hit. If you don't want to track the hit then set the track_flag to 0.
- optional_subdirectory_path specifies a path to a specific script, document, or subdirectory that is added onto the end of the URL after the tracking redirect. For example, if your offer's main landing page URL in the Offers Admin is www.example.com and you pass in /landingpage1/preview, it will add /landingpage1/preview to end of the URL after redirecting the surfer.