Here are the events which can trigger the affiliate marketing code:
Triggered on the order completion page.
Triggered when a customer visits the store home page (http://yourwebstore.com/store/);
Triggered when a customer completes the registration form;
Triggered on contact form submission;
Below is a list of variables which can be put into that code:
#ORDERSUBTOTAL# : total before shipping and taxes; #ORDERTOTAL# : total including shipping and taxes; #ORDERNUMBER# : web order number. #FIRSTNAME# : customer's first name; #LASTNAME# : customer's last name; #NAME# : customer's full name (first and last); #COMPANY# : customer's company name (blank if not entered); #ADDRESS1# : line 1 of the customer's address; #ADDRESS2# : line 2 of the customer's address (blank if not entered); #CITY# : customer's city #ZIPPOSTCODE# : customer's zip or postal code; #STATENAME# : customer's state or county name; #STATE# : customer's state or county name; #STATECODE# : customer's state or county code; #COUNTRY# : customer's country name; #NEWCUSTOMER# : prints 'new customer', returns nothing in case of returning customer #COUNTRYCODE# : customer's country code; #TELEPHONE# : customer's phone number; #EMAILADDRESS# : customer's e-mail address. #PROMOCODE# : promotion code used by the customer - returns 'none' if no promotion code is entered for the transaction.
Technical Information - if you wish to deploying Tracking Code yourself
Your files should only contain snippets of HTML (usually
<SCRIPT> and <IMG> tags) and should not be complete pages in themselves: they should exclude
<HTML>, <HEAD> and <BODY> tags;
The goal and file names are case sensitive – they should always be in lowercase;
<SCRIPT>tags should point to URLs beginning with either https:// or //. Otherwise, your customers will receive browser security warnings on the order completion page;
You can test if your tracking code is being successfully included by viewing the page source on the relevant page.