Affiliate Link Code Generator
Previous  Top  Next


From the Administration Panel main menu, select Manage Affiliates. Select Link Code from the top menu bar.

clip0147

The affiliate link code generator enables the store administrator to create banners and text ads for affiliates to use in their web sites, ezines, and newsletters. Once the store administrator enters the banners and text ads, the code generator automatically inserts each affiliate's ID into the code for them to copy from their affiliate support panel.

Add A New Banner
1.Browse for a .jpg or .gif image to upload.  
2.Set the image alt text. (Text that appears on the page when the mouse is passed over the image)  
3.Optionally, set the Redirect URL. If this is not set, customers will be redirected to the default redirect URL, which is set within Store Configuration > Affiliate Program.  
4.Optionally, enter text for a text link.  
5.Submit the form to save changes. AShop will generate a link for each affiliate with their ID code for tracking.  

HTML Code (Link text)

Enter the text and HTML that will be provided to affiliates for advertising. Tokens can be used within the HTML link code to provide affiliates with a copy of the code with the correct affiliate ID number . For example, if the URL to your affiliate.php script is
http://www.yourdomain.com/affiliate.php and the referring affiliate's ID is 2, then when affiliate number 2 logs in, he will see the link code with the id=2 parameter. http://www.yourdomain.com/affiliate.php?id=2

Link Code Tokens
There are two tokens, which can be used to insert the affiliate.php URL with each affiliates' ID number.

%affiliatelink% inserts the URL to the affiliate.php script on your site and adds each affiliates' ID parameter.
Example: You enter this text and HTML into the affiliate link code generator.

We like to <a href="%affiliatelink%">Go here</a>.
Affiliate number 2 sees the following link code when logged into his or her affiliate panel.
We like to <a href="http://www.yourdomain.com/affiliate.php?id=2">Go here</a>.
Customers see "We like to Go here
."
When the mouse is passed over the link, the complete URL appears in the browser status bar.
http://www.yourdomain.com/affiliate.php?id=2

%affiliatecloaklink% inserts the URL to the affiliate.php script on your site and adds each affiliates' ID parameter. It also adds link cloaking code, which prevents the actual URL from being displayed in the browser status bar. This token must be placed within the HTML code in a different way so that it can create the hyperlink opening tag in the correct place.
Example: You enter this text and HTML into the affiliate link code generator.
We like to %affiliatecloaklink% Go here</a>.
Affiliate number 2 sees the following link code when logged into his or her affiliate panel.
We like to <a href="http://www.yourdomain.com" onClick="window.open('http://www.yourdomain.com/affiliate.php?id=2', 'PGM', 'scrollbars=yes, toolbar=yes, status=yes, menubar=yes location=yes resizable=yes'); return false;"> Go here</a>.
Customers see "We like to Go here
."
When the mouse is passed over the link, only the URL from the beginning of the <a> tag appears in the browser status bar.
http://www.yourdomain.com

Read more about how affiliate links work in Store Configuration > Affiliate Program.