|
Checkmystats Tracking - Cookie based lead tracking
Cookie based lead tracking
is quite easy
to install: You just add a few lines of HTML
code to the web page that confirms order
placement. A confirmation page is the last step
in your customers ordering process; this is the
location where you must install our code.
However, if you install the code 'as-is' it won't work,
you must modify the required strings to match your web sites output.
Most web sites are configured differently and our software needs to
understand how you process orders. You will need to check what strings are used on
your web site processes orders. Below are a few examples of what how form processor
could handle the strings order_id, and amount.
There are two extra Checkmystats proprietary codes that can be
added for extra security: 'sig' and 'UKP'.
|
checkmystats strings
|
Possible strings that your
site currently uses
|
|
order_id
|
order_no / order_id /
invoice_code
|
|
amount
|
total / cart_total /
order_amount
|
|
sig (signature)
|
N/A this is a checkmystats
proprietary string
|
|
UKP (Site that charge in
UK Pounds)
|
N/A this is a checkmystats
proprietary string
|
If you choose to use the 'sig' string for ultimate
security you will need to add the following to the CGI script that processes your orders,
not the web page that confirms your order.
use MD5;
$USERCONFIGS{'checkmystats_signature'} = MD5->hexhash($USERCONFIGS{'order_number'} .
'ENTER YOUR CHECKMYSTATS PASSWORD HERE');
This example assumes you are
using Perl and CartIt shopping cart software.
Check with your Webmaster if MD5 is packaged
with your server set-up.
If you use PHP3 or PHP4, MD5
function is already built-in. For instance, if
your checkmystats password is 'by4pvqiv7' and
order ID is stored in variable $order_number,
insert this code to calculate the signature
$checkmystats_signature=md5($order_number.'by4pvqiv7');
If your server is powered by
ASP, you don't have a built-in MD5 function but
you have at least two options where to get MD5
from. Either use it as a COM
component (though there is a security risk
with components since you don't have its source
code and can't be sure that it does only what it
is meant to do and nothing more), or use MD5
function written in ASP (you can get it here).
Both links above contain examples of how they
can be used.
Important: Remember to add the
above code to your script that processes orders,
and not the order confirmation page.
Another benefit with cookie-based tracking is the ability to pay
Checkmystats affiliates based on percentage of sale. Cookie based tracking will
require a slight modification to the HTML code we supply so you can report the
correct details back to the Checkmystats server.
|