Electronic Manual - YourAffiliates
© SunnyScript - www.sunnyscript.com

 
Table of contents
 
Installation and configuration [go] Directory structure
[go] File transfer to the server
[go] Configuration
General information about affiliate systems [go] Common affiliate systems
[go] Beginner's questions
Administration panel [go] Admin menu
YourAffiliates settings adjustment [go] Edit YourAffiliates parameters
[go] Affiliate programs - overview
[go] Affiliate programs - available affiliate program settings
Advanced features, tasks and applications [go] 3rd-party software integration - overview
[go] 3rd-party software integration - click-through based affiliate systems
[go] 3rd-party software integration - lead based affiliate systems
[go] 3rd-party software integration - sale based affiliate systems
[go] 3rd-party software integration - combined affiliate systems
[go] Manage system tables - general
[go] Manage system tables - restructure tables
[go] Manage system tables - change table parameters and layout
[go] Send out mailings
[go] Moderate affiliate actions
[go] Additional admin tools - statistics
[go] Additional admin tools - payments
[go] Printing of cheques and payment documents
[go] Individual affiliate settings
[go] Public statistics information pages
[go] Database import and export tools
Affiliate lounge and template management [go] Access the affiliate lounge
[go] Affiliate lounge - basic overview
[go] Affiliate lounge customization with templates
[go] Available templates
[go] Customization of templates
Helpful hints and technical reference [go] SunnyScript software integration
[go] Background processes
[go] Amount formatting and rounding
[go] Manage offline generated commissions
[go] Supporting recurring sale commissions
[go] Advanced applications and possibilities
[go] Special affiliate tracking (advanced users)
[go] Alter affiliate counter
[go] Forgot your admin password ?
[go] Affiliate lounge and template translations
[go] Advanced search features
Customer services [go] Need help ? Contact the SunnyScript service department !

Smart tip: This handbook is also designed to be printed... set your printer's page orientation to landscape format, so there is enough space to place hand-written notes on the left and right margin easily.
 


 
Installation and configuration
 
SunnyScript offers an optional available installation service, if you don't want to install the software yourself.
Please contact our customer service department by e-mail for detailed information and pricing.
 
Directory structure...

The software can be installed at any place that allows the execution of CGI software: Most server systems provide a special directory called "cgi-bin" where you have to install the application, while others are not limited to a particular location.

In a common environment, we recommend to create a new sub-directory within the existing "cgi-bin" folder to separate the software from other already installed products.

Required "template.en" directory:

Inside the directory you desired for installation, please create a new sub-directory called "template.en". It's used to hold the content of "template.en" directory delivered with your software package.

Required "data" directory:

Inside the directory you desired for installation, please create a new sub-directory called "data". It's used to hold the content of "data" directory delivered with your software package.

Adjust path to Perl:

Open all program files (*.pl and *.cgi) in a text editor and change the first line "#!/usr/bin/perl" that it reflects the correct path to Perl 5 (or higher version) on your system. This is required to let your server know where the Perl interpreter is located.

Usage note: On most systems, /usr/bin/perl is already the default path to Perl and so no modifications are required.
 

File transfer to the server...

Upload all files to the created directories. If a ftp client is used, ensure to set the "ASCII transfer mode" for file submissions.

Detailed file table: Scheme: [filename | suggested place to upload (short description); file permission]:
 
Filename...
Description...
Filename...
Description...
* cgi-bin (program & data files); 755 template.en/* template.en (templates); 666
    data/* data (basic data files); 666

Important notes: Please double-check file permissions and transfer mode, otherwise the software may not work as intended. Depending upon the server configuration, different file permissions than the ones stated above may be necessary.

Smart tip: Our installation helper install.cgi makes it easier... just call it from your web browsing software (requires correct installation of this script) and it automatically checks your entire installation, adjusts permissions and fixes typical errors.
 

Configuration...

After you have uploaded all files, you may wish to start the admin panel first time to initialize the system parameters. In order to do so, please call admin.cgi with your favorite web browsing software:
 
Action to perform...
URL to call (location varies on your system, of course)...
Open admin panel http://www.sunnyscript.com/cgi-bin/ya/admin.cgi

Before you proceed, it is highly recommended to set an administration password. After this is done, access to the admin panel is granted only by using "admin" as login together with the chosen password.

Now click on the button "Edit system parameters" and configure the shown parameters according your needs.

Usage note: Since all parameters are automatically filled with correct values, modifications on your side may not be required.

Directories and files:
 
Name of parameter to set...
Description...
CGI files directory
Example: /usr/www/cgi-bin/ya
Absolute path to the location of YourAffiliates on your server.

Platform specific settings:
 
Name of parameter to set...
Description...
Mailing program (for Unix only)
Example: /usr/bin/sendmail
Absolute path to Sendmail (or compatible) application on your server.
SMTP server
Example: smtp.sunnyscript.com
SMTP server for handling mails; when left blank, the default mail application is used. This setting is required for non-Unix systems, otherwise optional.
Don't use flock
Example: Unchecked
"flock" is normally supported directly by the operating system; should it be unavailable for any reason (e.g. on Win9x, WinMe), mark this checkbox.
Don't use fork
Example: Unchecked
"fork" is normally supported directly by the operating system; should it be unavailable for any reason, mark this checkbox.
Forked process respawn interval (seconds)
Example: 60
Respawn interval for processes; recommended range: 30 to 60 seconds.
Admin e-mail address
Example: admin@sunnycript.com
E-mail address of the system administrator (e.g. webmaster).

URLs:
 
Name of parameter to set...
Description...
URL of CGI files directory
Example: http://www.sunnyscript.com/cgi-bin/ya
URL to the location of YourAffiliates on your server.
URL of user's help document (optional)
Example: http://www.sunnyscript.com/myhelp.htm
URL to an optional help document (not included); may also consist of an e-mail link (e.g. "mailto:support@sunnyscript.com").

Usage note: Should contain a link to your company's terms of business, customer service details or any other related document.

Various parameters:
 
Name of parameter to set...
Description...
Authentication time (in seconds)
Example: 10800
Time frame keeping user authentications active (after expiration, people must log in again); recommended value: 10.800 seconds (3 hours).

After you have verified all settings carefully, click on the button "Save parameters" to take over modifications to the system. It is also possible to bring back previous values with the "Let the script restore defaults" button.
 

Congratulations - you have successfully installed the software :-)

 
General information about affiliate systems
 
By the way: If you are already experienced with affiliate systems, you may skip this chapter and directly go to the next one.
 
Common affiliate systems...

YourAffiliates supports the following types of affiliate systems:
 
Click-through based
Lead based
Sale based (fix and variable commissions)
Recurring commissions per sale
Multi-level systems with up to four tiers
Engaging new affiliates (as part of the multi-level system)
As well as any combination of the above ones

It is possible to manage multiple affiliate programs at once (e.g. different product groups, departments or company subsidiaries, standard/premium programs with individual commission levels), each coming with its own preference settings.

Click-through based systems:

Affiliates receive commissions for each visitor forwarded to your website or any other online location (e.g. web shop).

Lead based systems:

Similar to the click-through system above, however commissions are granted for carrying out specific actions, like newsletter registrations or submissions of application forms.

Sale based systems:

Affiliates receive commissions for each sale made by a visitor referred to your website. Depending upon the used web shop or e-commerce system, you can also pay variable and recurring commissions based upon sale totals (or other countable units).

Smart tip: Have a look at SunnyScript's SunnyShop - powerful e-commerce software to built Internet-based shopping solutions.

Multi-level systems (up to four tiers):

Affiliates receive commissions for click-throughs, leads and/or sales generated by affiliates originally referred through them.

YourAffiliates is able to handle up to four levels, where each level is configurable independently from others. And all kinds of commissions (even for recurring sales) are supported by the multi-level system.

Engaging new affiliates (as part of the multi-level system):

Beside of paying commissions for click-throughs, leads and/or sales, you may also grant commissions to affiliates for referring new people signing-up as affiliates (regardless or with care of their future success).

Combined affiliate systems:

YourAffiliates allows any combination of the previously described systems - it doesn't matter whether you intend to pay just a click-through commission or want to handle a complex multi-level system.
 

Beginner's questions...

How do I setup an affiliate program ?

Click on the button "Edit YourAffiliates parameters" available on the main admin menu in order to set up new affiliate programs and manage existing ones. Please refer to the following chapters for more details.

What is the affiliate lounge ?

The affiliate lounge provides an interactive platform for existing affiliates to let them handle their profiles online in a comfortable way (including statistics and payment history as well as download of banners and HTML codes).

Additionally, the affiliate lounge is also the right place for people who are interested in becoming new affiliates to learn more about the business opportunities you have to offer.

How does the software recognize an affiliate ?

Each time a visitor comes to your website through an affiliate (each affiliate uses its own URL to link to your site), YourAffiliates will save a cookie on concerned visitor's computer to mark this person as somebody coming from an affiliate.

YourAffiliates can read out this cookie later at any time (or as long as you decide to let it alive) to grant commissions to the affiliate(s). Even if the visitor disconnects from the Internet and comes back after days, the commissions are paid correctly.

Which software (e.g. shopping carts) is supported ?

YourAffiliates works together with most shopping carts, e-commerce providers and payment processors. For more information, please refer to the following chapters or contact our customer service.

If you wish to pay variable* commissions based upon the sale totals, you need a compatible e-commerce system which hands over the total amount to YourAffiliates. We recommend products from SunnyScript, designed for working together perfectly.

* Fix commissions are possible with most 3rd-party products.

YourAffiliates supports the following SunnyScript products directly:
 
SunnyShop** - click-throughs, sales (processed orders)
AccessGuardian** - click-throughs, sales (memberships)
AdvertisingSuite** - click-throughs, sales (advertising campaigns)
MailingStar (plus) - click-throughs, leads (subscriptions)
PowerForm** - click-throughs, leads, sales and recurring sales

** These products support variable commissions based upon the sale totals.

Smart tip: Have a look at SunnyScript - intelligent software technology for today's Internet commerce.


 
Administration panel

The administration panel is a convenient way to work interactively with YourAffiliates. You can start the admin panel by calling admin.cgi with your favorite web browsing software:
 
Action to perform...
URL to call (location varies on your system, of course)...
Open admin panel http://www.sunnyscript.com/cgi-bin/ya/admin.cgi

How to access the affiliate lounge (registered users area, affiliate subscriptions):
 

Action to perform...
URL to call (location varies on your system, of course)...
Access affiliate lounge http://www.sunnyscript.com/cgi-bin/ya/login.cgi             or
http://www.sunnyscript.com/cgi-bin/ya/my.cgi
 
Admin menu...

This screen allows the following actions:
 
Main menu options...
Description...
Manage system tables
 
Table...
Description...
... of registered users Database containing affiliate profiles.
... of logged clicks Database containing affiliates' logged clicks.
... of logged leads Database containing affiliates' logged leads.
... of sales Database containing affiliates' logged sales.
... of payments Database containing processed payments.
... of daily statistics Database containing daily statistics.
 
Additional admin tools
 
Section...
Description...
Statistics View system statistics and genealogy reports.
Payment Pay commissions to affiliates.
 
Quick statistics View summarized system statistics.
Edit YourAffiliates parameters Modify general parameters and manage affiliate program settings.
Change password Change admin password.
Other administrative features
 
Section...
Description...
Edit system parameters Modify system related parameters.
Edit templates Edit the layout templates.
Import / export data Import and export databases.
 

The top menu line provides additional selections (depending on the current system status):
 

Top menu options...
Description...
Admin Go to the main admin menu.
Settings Adjust software parameters.
Statistics Review brief system statistics.
Home Browse the currently active system table.
Search Search the currently active system table.
Login / Logout Login or logout as administrator.
Moderate Approve or decline user modifications.
Restructure Modify structures and parameters of the currently active database.
Mailings Send out mailings to your affiliates.
Add / Clone / Update / Delete Add, clone, update or delete profiles / records.
 

 
YourAffiliates settings adjustment
Edit YourAffiliates parameters...

First of all, you must configure basic system settings which take effect to the behavior of the software. In order to do so, click on the button "Edit YourAffiliates parameters" when you're in the admin menu. 

General settings:
 

YourAffiliates asks...
Description...
Name of site being promoted Name of your website (e.g. "My sample company").
URL of site being promoted URL of your website (e.g. "http://www.sunnyscript.com"), as it will be displayed at the affiliate lounge and within mailings.

Usage note: This parameter is used for informational purposes only.

URL of site for affiliates URL of the website, which advertises your affiliate opportunities (like an overview about offered commissions, terms of business and other related information).

Usage note: This parameter is used for informational purposes only.

Footer to be added to each e-mail Default footer being added to all outgoing e-mails; suited especially for showing your business card or advertisements.
Date format Specify the date format applicable for the affiliate lounge.

Default setting: DD. MMMM YYYY
Example for default: 01. January 2525

Available components for this parameter:
 

Component...
Description...
Date format parts
D 2-digit day (without leading zero).
DD 2-digit day (with leading zero).
DDD Abbreviation of the weekday.
DDDD Complete name of the weekday.
M 2-digit month (without leading zero).
MM 2-digit month (with leading zero).
MMM Abbreviation of the month.
MMMM Complete name of the month.
YY 2-digit year.
YYYY 4-digit year.

Some sample combinations:

DD. MMM YYYY               -> 01. Jan. 2525
DDD, MM. D. YYYY           -> Wed., 01. 1. 2010
YY-MM-DD                   -> 25-01-01

Usage note: Additional text is taken over unmodified (e.g. "Today, DD. MM YYYY").

Security settings:
 

YourAffiliates asks...
Description...
Number of days to store aff. cookie Specify the time period, affiliate IDs are hold on visitors' computers. During this period, commissions are granted to concerned affiliate(s).
Overwrite existing affiliate cookie When enabled, an already existing affiliate cookie will be overwritten by a new one.
Block clicks from these IPs or
segments
Determine a list of IP addresses (one per line) not allowed to be accepted for receiving commissions (this happens invisible to the affiliate and visitor).

It is possible to replace the last IP segment by the asterisk character, to catch multiple IP addresses at once. For example: "123.456.78.*".

Technical note: More specific security settings can be done for each affiliate program.

"Welcome new affiliate" message:
 

YourAffiliates asks...
Description...
Send "welcome message" Mark the button to send a welcome message to new affiliates.

Currency settings:
 

YourAffiliates asks...
Description...
Currency prefix Type in the prefix of the currency (e.g. "$" for usage in "$12.34 USD").
Currency suffix Type in the suffix of the currency (e.g. " EUR" for usage in "12.34 EUR").
Currency decimals Specify the number of decimal places in desired currency (commonly two).
Primary currency 3-digits separator Decide for a character you want to use in order to separate amounts every three digits (e.g. $1'499.80 USD or 2.700,40 EUR).
Currency name Place the name of your currency here (e.g. "European Currency Unit").

Affiliate control panel layout:
 

YourAffiliates asks...
Description...
Menu layout
Menu items separator Characters that will appear between the top menu items (standard value: " | ").
Main menu entries Right box (available selections): Choose entry and click on "Add" to select it.

Left box (current selections): Click on "Delete" to remove an entry or use "Up" and "Down" buttons to change entry order.

Alternatively you can type in a comma delimited list of entries manually.

"Home", "Profile update",
"Statistics", "HTML code",
"Payments", "Logout",
"Help" entry text
Labels (linking text) used for top menu entries.

You can also insert image tags according valid HTML standard. "Help" allows also an e-mail address, like "mailto:support@sunnyscript.com".

Payment settings:
 

YourAffiliates asks...
Description...
Minimum payable amount Min. amount of commission (as calculated at the end of concerned payment period), an affiliate must reach, before the particular profile is marked for receiving payment.
Disable cheques generation Mark this button to disable the generation of cheques or other payment documents.

If enabled, cheques (payment documents in general) are created and attached to the consolidated payment report you receive (see next chapter).

Payment period * Select the duration of a payment period (at which time are affiliates paid).
First payment period start date * Type in the starting date of the first payment period.

Format: YYYY-MM-DD

Examples: 2010-01-01 or 2010-12-31

* Important note: "Payment period" and "First payment period start date" should be only set once (during the software setup). If you change these settings after closing the first payment period, future calculations may be incorrect !

If you find it necessary to alter "Payment period", click on "Recalculate statistics" (main admin menu) first before proceeding - however please be aware that some commissions could be counted twice for the current payment period.

Multi-level affiliate program:
 

YourAffiliates asks...
Description...
Enable multi-level feature Mark the checkbox to activate the multi-level capabilities of YourAffiliates or unmark it to disable this feature (following settings will be ignored).
Banner / text links HTML code for attracting new affiliates
Referring program name Name of the multi-level affiliate referring program; used as label at the affiliate lounge.
Referring program description Description which appears at the affiliate lounge (e.g. explain how a multi-level affiliate program works and which commissions are paid for each level).
HTML code generator position Determine the position of the multi-level affiliate program compared to other programs on the HTML code generator section of the affiliate lounge.
Advertising HTML code (#1 to #4) Provide up to four different HTML codes to be selected by your affiliates for being added to their websites in order to advertise the multi-level affiliate program.

Affiliates will see a preview and can simply copy&paste the HTML codes into their own websites and documents.

It is possible to use text links, image-based banners, multimedia objects as well as all other elements according the HTML language standard.

Sample text link:

<A HREF="http://www.sunnyscript.com/cgi-bin/ya/click.cgi?action=refer&affil=<!--$AFFILIATE-->"> Webmasters: <B>Earn money</B> with SunnyScript</A>

Sample banner link:

<A HREF="http://www.sunnyscript.com/cgi-bin/ya/click.cgi?action=refer&affil=<!--$AFFILIATE-->"><IMG SRC="http://www.sunnyscript.com/sunny.gif"></A>

Explanation of the code parts:

The linked URL of click.cgi must point to the place where YourAffiliates is located on your server (e.g. see setting "URL of CGI files directory" within system parameters).

<!--$AFFILIATE--> will be automatically replaced with the correct affiliate ID.

When using an image (or a similar multimedia object) as link, ensure that it is called in URL format (paths would not work when the affiliate copies the HTML codes).

Technical note: Should an affiliate use a misspelled affiliate ID, nevertheless visitors are correctly forwarded to your website.

Commission from ... level referrals
Specify the commissions you grant to the concerned level of affiliates. Keep all options empty to disable the entire level or just selected ones to disable only partial services.
Pay flat amount for referred
affiliate registration
Specify the amount which will be paid to concerned level of affiliates for referring new affiliate registrations (don't use any currency prefix or suffix).

Example: 9.80

Pay percentage of sales earnings Specify the percentage of the collected sales commission (by referred affiliate) this level's affiliates will receive (don't use a percentage sign).

Example: 25 -> 25 % of collected commission

Pay percentage of clicks earnings Specify the percentage of the collected click-throughs commission (by referred affiliate) this level's affiliates will receive (don't use a percentage sign).

Example: 25 -> 25 % of collected commission

Pay percentage of leads earnings Specify the percentage of the collected leads commission (by referred affiliate) this level's affiliates will receive (don't use a percentage sign).

Example: 25 -> 25 % of collected commission

Data maintenance:

Each time data maintenance runs, the following actions are performed:
 
* Refresh the table of registered affiliates and the "daily statistics" table.
* Report suspicious fraudulent actions via e-mail.
* Update all static statistics and shortcut pages.
* Clean expired records (click/lead/sale records, statistics).
* Pay recurring commissions.

Important note: Executing data maintenance is required and needs "fork" function to be enabled (see "System parameters"). If it is disabled due to technical limitations of the server, please follow the instructions below.
 

YourAffiliates asks...
Description...
Re-calculation interval in hours Specify the re-calculation interval in hours; recommended range: 3 to 12 hours.

Important note: This setting requires enabled "fork" function. See below for workaround.

Store clicks, leads and sales data
for this number of payment periods
Number of payment periods to keep raw data in databases. After expiration, admin is offered to clean such data during affiliate payout procedure automatically.

Data clearance is intended to regularly clean up unused raw data (you will not lose any bit of information, because concerned data was already processed earlier).

Recommended range: 1 to 6 months (specified as payment periods).

Store records in daily statistics
table this number of days
Number of days to keep the "daily statistics" table data stored (this table does contain processed raw data, like usage statistics).

After removal, all statistical information for the concerned time period is lost (so it is advisable to use a generous limit).

Recommended range: 180 days (~ 1/2 year) to 1095 days (~ 3 years).

Data maintenance with disabled "fork" function:

Schedule the file cron_run.pl (the file is located in the software directory of YourAffiliates) to be ran regularly by your server (recommended scheduling: each hour). You may use Cron or your server's scheduling tool in order to manage this task.

Technical note: Even when starting data maintenance in this way, ensure to fill in the parameters above.

By the way: If you are new at scheduling server actions, please contact your webhoster for details or refer to available literature. Alternatively you may use the Cron editor we provide (call cron_edt.pl from the command line, e.g. "perl5 cron_edt.pl").

Public statistics pages content update:

This feature is explained more detailed in the next chapter.

Static HTML pages as shortcuts for referring links:

This feature is explained more detailed at the chapter "Helpful hints and technical reference".
 

YourAffiliates asks...
Description...
Enable shortcut static pages Mark this button to enable shortcut static pages being generated and shown instead of the normal referring links in the HTML generator (affiliate lounge).
Target directory for generation of
shortcut pages
Type in a full path to the directory intended to contain the static redirection pages.

Important note: The path must point to a web-accessible directory.

Template of filename Specify the template used to create the filenames for each affiliate's static redirection page. There will be one page created for each affiliate and program.

<!--$AFFILIATE--> will be automatically replaced with the correct affiliate ID.
<!--$PRG--> will be automatically replaced with the program code as specified above.

Some possible filename templates:

<!--$AFFILIATE-->.htm
company<!--$PRG--><!--$AFFILIATE-->.html
<!--$PRG-->/<!--$AFFILIATE-->.htm *

* A trailing slash inside the filename template creates a new directory automatically (see third sample, where each affiliate program has its own folder).

By default, a pre-defined template page is used (see "Templates editor" screen). You may wish to customize it with additional content (there is one used for all programs).

Important notes: At least the <!--$AFFILIATE--> tag is required; never use a trailing slash after the filename (causes access errors).

Technical note: When having multiple affiliate programs, but miss the <!--$PRG--> tag, then the last program stored in the system is chosen.

Fraud detection:

YourAffiliates compares actual and historical data of each affiliate profile to detect possible fraudulent actions (e.g. affiliate uses a special script to achieve a high number of click-throughs or tries to generate invalid leads).

If such actions are detected, YourAffiliates can contact you by e-mail sending a notification. Then you have the chance to investigate this case further and either remove concerned profiles or reduce their earnings.
 

YourAffiliates asks...
Description...
Fraud risk top limit If the risk of fraudulent actions is higher than this specified one, a warning message is sent and concerned affiliates will be not selected to get paid by default.

Recommended range: 10 % to 20 % (use numerical values only, no percentage signs).

Send fraud alerts via e-mail Mark this button to enable the sending of warning msgs. in case of fraudulent actions.

Mailing:
 

YourAffiliates asks...
Description...
Send payment report e-mails
to paid users
Payment reports contain all payment details of addressed affiliates.

Mark this button to automatically generate and send payment reports to paid affiliates.

Send carry-over report e-mails
to users
Carry-over reports are sent to affiliates not being paid (failed to reach min. amount).

Mark this button to automatically generate and send carry-over reports to the affiliates who could not be paid within the actual payment period (e.g. insufficient amount).

Technical note: The text scheme used for all these reports is stored in editable templates. Please refer to the chapter "Affiliate lounge and template management" for more details.

Notifications:
 

YourAffiliates asks...
Description...
New ... notification
For each action that leads to a commission payment, the concerned affiliate as well as the admin can be notified.
Send ... notification to admin Mark this button to send a mail to the administrator for each action.

Usage note: Depending on the usage frequency of your affiliate programs, a huge amount of messages can arrive daily. So it is advised to use a different e-mail address than the pre-defined administrator's one.

Allow affiliate to receive ...
notification
Mark this button and the affiliate has the choice to receive a notification, too. It is possible to modify these preferences at the affiliate lounge individually.

Usage note: If "Pre-moderate sale records" is enabled, affiliate sale notifications are sent after the sale has been approved (no notifications for declined sales).

Technical note: The text scheme used for all these notifications is stored in editable templates. Please refer to the chapter "Affiliate lounge and template management" for more details.
 

Affiliate programs - overview...

After you have configured YourAffiliates, you can start to create affiliate programs. The affiliate program settings are located at the bottom of the screen "YourAffiliates parameters".

What is an affiliate program ?

An affiliate program allows you to pay commissions to people registered as affiliates for referred visitors and customers.

It is possible to manage multiple affiliate programs at once (e.g. different product groups, departments or company subsidiaries, standard/premium programs with individual commission levels), each coming with its own preference settings.

How to create a new affiliate program:

Type in an abbreviation of the new affiliate program (e.g. "software") and click on the button "Create new".

How to edit / remove an affiliate program:

Select the program from the list, click on "Delete" or "Edit" and follow the provided instructions.

By the way: Modifications made to existing affiliate programs (e.g. changed commissions) take effect after the next data maintenance was performed. So you may have to wait a few hours before you see all modifications active.

How to change the sorting of affiliate programs:

Select the one you wish to move around and click on either "Move up" or "Move down" button to change its position (this affects the program's position within the affiliate lounge).
 

Affiliate programs - available affiliate program settings...

Affiliate program identification:
 
YourAffiliates asks...
Description...
Affiliate program code Code of affiliate program as it will be used in affiliate URLs. Use only alphanumerical characters: A-Z, a-z and 0-9 are supported. Keep it as short as possible.

Important note: This setting should be never changed once it is set, because otherwise existing affiliate URLs becomes invalid.

Affiliate program name Name of the affiliate program, as it will be displayed at the affiliate lounge.
Affiliate program description Descriptive text for this program, as it will be displayed at the affiliate lounge.
Advertising HTML code (#1 to #4) Provide up to four different HTML codes to be selected by your affiliates for being added to their websites in order to advertise the concerned affiliate program.

Affiliates will see a preview and can simply copy&paste the HTML codes into their own websites and documents.

It is possible to use text links, image-based banners, multimedia objects as well as all other elements according the HTML language standard.

Sample text link:

<A HREF="http://www.sunnyscript.com/cgi-bin/ya/click.cgi?prg=<!--$PRG-->&affil=<!--$AFFILIATE-->"> Webmasters: <B>Earn money</B> with SunnyScript</A>

Sample banner link:

<A HREF="http://www.sunnyscript.com/cgi-bin/ya/click.cgi?prg=<!--$PRG-->&affil=<!--$AFFILIATE-->"><IMG SRC="http://www.sunnyscript.com/sunny.gif"></A>

Explanation of the code parts:

The linked URL of click.cgi must point to the place where YourAffiliates is located on your server (e.g. see setting "URL of CGI files directory" within system parameters).

<!--$AFFILIATE--> will be automatically replaced with the correct affiliate ID.
<!--$PRG--> will be automatically replaced with the program code as specified above.

When using an image (or a similar multimedia object) as link, ensure that it is called in URL format (paths would not work when the affiliate copies the HTML codes).

Technical note: Should an affiliate use a misspelled affiliate ID and/or program code, nevertheless visitors are forwarded at least to your website correctly.

Paid advertising methods:
 

YourAffiliates asks...
Description...
Pay-per-click
Pay a commission for each referred visitor to your website.
Don't pay for clicks Mark this button in order to disable click-through based commissions for this program.
Pay this amount per click Mark this button and type in the amount (without currency signs) you wish to pay for each successful click-through.
Pay variable rate per click Mark this button and type in variable rates according the scheme below you wish to pay an affiliate depending upon its click-through activity.

Format: <# clicks per period>:<Payment per click>
(put only one pair into a single line)

<# clicks per period>: Minimum amount of clicks, that must be reached within a payment period, before the paired commission is granted.
<Payment per click>: Amount of commission paid per click-through.
 

Sample input...
Description...
10:0.05
100:0.10
150:0.12
>= 10 and less than 100 clicks per period = 0.05 paid / click
>= 100 and less than 150 clicks per period = 0.10 paid / click
>= 150 clicks per period = 0.12 paid per click

An unlimited number of combinations is possible.

Usage note: Ranges kept unspecified will lead into not paying comissions for them (e.g. in above sample, for less than 10 clicks, no commission is granted).

Count clicks You may limit the click-throughs for which commissions are granted, in order to prevent abuse of the affiliate program.
 
Available options...
Description...
Raw clicks Each click-through is counted.

This setting counts all clicks, which makes it not very recommendable due to the high risk of abuse.

Clicks from unique IP Within a given time period *, each unique IP address is only counted once.

Even if different people (with same IP) are brought to you, just one click is counted -> budget friendly.

Clicks from unique visitor Within a given time period *, each unique visitor is only counted once (recommended selection).

In this way, also people using the same IP are counted correctly, so this is the most fair option.

* Collected IP addresses are kept stored (and blocked) until you select to clear raw data of previous payment periods during payment processing.

Also click-throughs not paid because of this parameter's setting are correctly forwarded to your website, so you never lose a visitor.

Usage note: "Raw clicks" option may be the right setting, if you earn money by showing content (e.g. ad banners) on your website. Since each visit leads to displaying content, the risk of abuse is acceptable compared to the desire of fair affiliate payment.

Use double-click method If enabled, YourAffiliates creates an "intermediate" page with a random confirmation code, which is checked before the visitor is forwarded to your website.

In this way, fraudulent click-throughs are prevented, but it requires to press a button before your website is shown (which may lead into losing some visitors).

Technical note: This setting is compatible with all web browsers.

Template for double-click
intermediate page
Select the desired template used as "intermediate" page or keep the standard one.
Require referring document In order to prevent abuse of the affiliate program, you may limit the sources for which commissions are granted.
 
Available options...
Description...
Don't require Count clicks from any URL (recommended).
Require any referring URL Count only click-throughs coming from websites (clicks coming from e-mails are not counted).
Require URL from affiliate's site
domain
Count only click-throughs coming from the website of concerned affiliate (field site_url in profiles).

It's a matter of course, that also click-throughs not paid because of this parameter's configuration are correctly forwarded to your website - so you never lose a visitor.

Usage note: "Require URL from affiliate's site domain" is the most strict setting which limits counting of clicks to the affiliate's website (if you feel that the abuse risk is high).

After logging click,
redirect user to this default URL
Type in the URL being shown to visitors coming from affiliates. Normally, this should be the website for which the concerned affiliate program is intended.

You can also point the URL to dynamic pages or scripts.

Important note: Since this setting is absolutely essential, please check it twice.

Allow redirection to custom URL Mark this button to allow affiliates using variable target URLs to sent visitors to.

This feature is espcially suited for e-commerce websites to let affiliates promote specific products and services or for websites having different sections being advertised.

Implementation at advertising HTML codes:

In advertising HTML codes the additional argument "url" specifies the custom redirection URL. So a text link may look like this one:

<A HREF="http://www.sunnyscript.com/cgi-bin/ya/click.cgi?prg=<!--$PRG-->&affil=<!--$AFFILIATE-->
&url=http://www.sunnyscript.com/hosting.htm"> Webmasters: <B>Earn money</B> with SunnyScript</A>

Usage note: In order to achieve compatibility with all browser platforms, it's advised to URL-encode the custom redirection URL at provided HTML codes.

Custom URL verification template In order to prevent abuse of custom URLs, specify a verification string required being fulfilled by a custom URL before redirection is done.

If verification fails, the default URL (as determined at "After logging click, redirect user to this URL") is used instead of.

Within the template string, the placeholder "*" indicates variable content.

Example 1: http://www.sunnyscript.com/*

-> URL "http://www.sunnyscript.com/anything..." is allowed.
-> URL "http://www2.sunnyscript.com/anything..." is disallowed.
-> URL "http://www.starenterprise.com/anything..." is disallowed.

Example 2: http://*sunnyscript.com/item*.htm

-> URL "http://www.sunnyscript.com/item1.htm" is allowed.
-> URL "http://sunnyscript.com/item1s.htm" is allowed.
-> URL "http://www.sunnyscript.com/item1.html" is disallowed.

Pay-per-lead
Pay a commission for each lead ("action") done by the visitor forwarded to your website. Such possible actions are joining a newsletter, filling out an application form, taking a survey or performing a search operation. Please refer to the next chapter for more details about how to implement the pay-per-lead feature into existing 3rd-party applications.
Don't pay for leads Mark this button in order to disable lead based commissions for this program.
Pay this amount per lead Mark this button and type in the amount (without currency signs) you wish to pay for each successfully performed lead.
Pay variable rate per lead Mark this button and type in variable rates according the scheme below you wish to pay an affiliate depending upon its lead activity.

Format: <# leads per period>:<Payment per lead>
(put only one pair into a single line)

<# leads per period>: Minimum amount of leads, that must be reached within a payment period, before the paired commission is granted.
<Payment per lead>: Amount of commission paid per lead.
 

Sample input...
Description...
10:0.49
100:0.80
150:1.20
>= 10 and less than 100 leads per period = 0.49 paid per lead
>= 100 and less than 150 leads per period = 0.80 paid per lead
>= 150 lead per period = 1.20 paid per lead

An unlimited number of combinations is possible.

Usage note: Ranges kept unspecified will lead into not paying comissions for them (e.g. in above sample, for less than 10 leads, no commission is granted).

Count leads In order to prevent abuse of the affiliate program, you may limit the sources for which commissions are granted.
 
Available options...
Description...
Raw leads Each lead is counted.

This setting counts all leads, which makes it not very recommendable due to high risk of abuse.

Leads from unique IP Within a given time period *, each unique IP address is only counted once.

Even if different people (with same IP) are brought to you, just one lead is counted -> budget friendly.

Leads from unique visitor Within a given time period *, each unique visitor is only counted once (recommended selection).

In this way, also people using the same IP are counted correctly, so this is the most fair option.

* Collected IP addresses are kept stored (and blocked) until you select to clear raw data of previous payment periods during payment processing.

Also leads not paid because of this parameter's setting are correctly handled.

Don't require referring document If marked, leads coming from all locations are accepted (recommended).
Require any referring document If marked, only leads coming from websites are counted (e.g. leads originating from e-mails are not counted).
Require this referring document Mark this button and type in an URL from which the lead must origin (referring URL may also be just the beginning part of specified URL, e.g. in case of dynamic URLs).

Usage note: This setting is useful to pay only for leads coming from your website or an other specified location (e.g. location of application form).

After logging lead,
redirect user to this URL
Type in the URL you wish to redirect users after the lead was processed. This can be something like a "thank you" or confirmation page (see top of this chapter for details).
Name of "reference_id" form variable Type in the name of the variable delivered by a 3rd-party software (e.g. search engine), which contains some kind of reference ID.

Its value is used to allow you finding a particular lead later; each reference ID should be unique per lead. Usage of this parameter is optional.

Default setting (if field left empty): reference_id

Technical note: Commissions are only granted one time per unique reference ID (stored IDs are set back when clearing raw data during payment processing).

Pay-per-sale
Pay a commission for each sale made by the visitor forwarded to your website.
Don't pay commissions per sale Mark this button in order to disable sales based commissions for this program.
Pay this commission per sale Mark this button and type in an amount, percentage value (with % sign) or combination of both (+, - operators supported) being granted per sale.

Format (amount): 12.34
Format (percentage): 12.34%

Examples (amount): "0.50", "9.98" or "25"
Examples (percentage): "0.50%", "10%", "15.2%" or "3.123%"
Examples (combined): "10+2%", "9.80%+0.50" or "25-1.25%"

Pay variable commission per sale Mark this button and type in variable rates according the scheme below you wish to pay an affiliate depending upon generated sales.

Format: <Min. amount per sale>:<Commission>
(put only one pair into a single line)

<Min. amount per sale>: Minimum total amount, that must be reached per sale, before the paired commission is granted.
<Commission>: Amount of commission paid per sale.

Important note: Variable commissions are calculated per sale, not per payment period as it is done for click-throughs and leads.
 

Sample input...
Description...
50:3%
200:5%+8.50
750:8%+10
3 % commission for sale totals of 50 or higher.
5 % commission and 8.50 per sale for sale totals of 200 or higher.
8 % commission and 10 per sale for sale totals of 750 or higher.

An unlimited number of combinations is possible.

Usage note: Ranges kept unspecified will lead into not paying comissions for them (e.g. in above sample, for a total amount of less than 50, no commission is granted).

Pre-moderate sale records Mark this button in order to manually approve each done sale before it is added to the concerned affiliate's profile.

May be useful when paying high sale commissions or in case of special risk handling (e.g. order must be first fulfilled before granting commissions).

Important note: If using this feature together with other SunnyScript software, ensure to set the order log format to "New release format, moderated" there.

After logging sale,
redirect user to this URL
Type in the URL you wish to redirect users after the sale was processed. This can be something like a "thank you" or confirmation page (see top of this chapter for details).
Name of "total" form variable Type in the name of the variable delivered by a 3rd-party software (e.g. shopping cart), which contains the total amount of sale.

Its value is used as basis for paying variable commissions, otherwise optional.

Default setting (if field left empty): total

Auto-detecting the content structure of the "total" form variable:

Each source may deliver the total amount in a different layout and formatting (e.g. with extra text parts or surrounding currency signs).

YourAffiliates uses intelligent routines to retrieve the total amount also from a complex string - so you don't have to take care about this.

Name of "reference_id" form variable Type in the name of the variable delivered by a 3rd-party software (e.g. shopping cart), which contains some kind of reference ID (e.g. order-#).

Its value is used to allow you finding a particular order later; each reference ID should be unique per order. Usage of this parameter is optional.

Default setting (if field left empty): reference_id

Technical note: Commissions are only granted one time per unique reference ID (stored IDs are set back when clearing raw data during payment processing).

Name of "purchase_content"
form variable
Type in the name of the variable delivered by a 3rd-party software (e.g. shopping cart), which contains the purchased content of the order.

Its value is used to allow you finding a particular order later. Usage is optional.

Default setting (if field left empty): purchase_content

Technical note: In order to prevent fast growing of databases, the content of this variable should be a summarized shopping cart, not a detailed one.

Recurring sales
Same as pay-per-sale, but allows to pay recurring commissions automatically. For more details, please refer to the chapter "Advanced features, tasks and applications".
Don't pay commissions per
recurring sale
Mark this button in order to disable recurring sales based commissions for this program.
Pay this commission per
recurring sale
Mark this button and type in an amount, percentage value (with % sign) or combination of both (+, - operators supported) being granted per recurring sale.

Format (amount): 12.34
Format (percentage): 12.34%

Examples (amount): "0.50", "9.98" or "25"
Examples (percentage): "0.50%", "10%", "15.2%" or "3.123%"
Examples (combined): "10+2%", "9.80%+0.50" or "25-1.25%"

Pay variable commission per
recurring sale
Mark this button and type in variable rates according the scheme below you wish to pay an affiliate depending upon generated sales.

Format: <Min. amount per sale>:<Commission>
(put only one pair into a single line)

<Min. amount per sale>: Minimum total amount, that must be reached per sale, before the paired commission is granted.
<Commission>: Amount of recurring commission paid per sale.

Important note: Variable recurring commissions are calculated per sale, not per payment period as it is done for click-throughs and leads.
 

Sample input...
Description...
50:3%
200:5%+8.50
750:8%+10
3 % commission for sale totals of 50 or higher.
5 % commission and 8.50 per sale for sale totals of 200 or higher.
8 % commission and 10 per sale for sale totals of 750 or higher.

An unlimited number of combinations is possible.

Usage note: Ranges kept unspecified will lead into not paying comissions for them (e.g. in above sample, for a total amount of less than 50, no commission is granted).

Recurring sales generation interval Type in the number of days between each commission cycle.
Generate this total number of
recurring sales
In combination with the sales generation interval set above, this parameter specifies the durance of paying recurring sale commissions.

Sample configuration to pay a monthly commission for a half year:

Recurring sales generation interval = 30
Total number of recurring sales = 6

Important note: Please consider that the first recurring commission is paid after the number of days passed by specified at "Recurring sales generation interval".

Name of recurring flag form variable Type in the name of the variable delivered by a 3rd-party software (e.g. shopping cart), which contains the indicator to pay a recurring commission.

Its value is used to decide whether or not paying a recurring sale commission.

Default setting (if field left empty): recurring

Expected value of rec. flag variable Specify the content that has to be delivered by the recurring flag form variable indicating to pay a recurring commission.

When you have done all settings, please click on the button "Save parameters" in order to take over the changes to the system or to create the new affiliate program.

Usage notes: You can make modifications to your affiliate programs whenever you like. Each affiliate can have also custom commission settings, please refer to the next chapter for details.

For details about implementation of YourAffiliates into existing software (e.g. e-commerce systems and payment processors), please refer to the next chapter "Advanced features, tasks and applications".
 


 
Advanced features, tasks and applications

This chapter explains common applications, tasks and advanced features of YourAffiliates. Before you proceed, you should have been read the previous chapters (some matters are described there we have considered as being known).
 
3rd-party software integration - overview...

YourAffiliates is designed to work together with most shopping carts, e-commerce products, payment processors and other applications used for your online business.

In the following we want to show how to implement YourAffiliates into an existing software or service solution.

By the way: If you run SunnyScript software, please take a look at the chapter "Helpful hints and technical reference" to get more information about how to achieve cooperation between YourAffiliates and our other products.

Technical note: The 3rd-party software products (e.g. shop systems) or services (e.g. payment processors) may be installed on different servers and may also use different domain names - YourAffiliates will work in all cases.

Enhanced compatible 3rd-party products:

Some 3rd-party products may support YourAffiliates in a special way, like setting affiliate IDs and program codes automatically as well as taking over sale/lead/click-through logging to YourAffiliates' databases.

If a 3rd-party product provides such enhanced features to support YourAffiliates, please follow the provided instructions within its user manual in order to configure the software and YourAffiliates correctly.
 

3rd-party software integration - click-through based affiliate systems...

There is no need to modify existing software or service configuration. Click-throughs will be handled by YourAffiliates directly while the visitors are forwarded to your website.

All your affiliates have to do, is to choose from the HTML codes of the affiliate lounge and add them to their websites.
 

3rd-party software integration - lead based affiliate systems...

Lead based affiliate programs - method 1:

Overview about implementation:

Modify the "thank you" / confirmation page template of the 3rd-party product by implementing YourAffiliates' lead tracking script lead.cgi as hidden image into it (or an equivalent way required by concerned solution).

Important note: This method also works, if the 3rd-party product provides a special parameter to specify a lead tracking script.

3rd-party software pre-requisites:

* Possibility to place an image to the "thank you" / confirmation page template (or equivalent way).
* Optional: Ability to use placeholders for variables' contents (reference ID) within this template.

Step 1... Configuration of YourAffiliates:

There is no special configuration required.

Step 2... Configuration of the 3rd-party product:

Usage note: This step is only mandatory, if the 3rd-party product uses placeholders for system content and you want to submit these information to YourAffiliates - e.g. to prevent abuse, because each unique reference ID is allowed only once.

Determine the name of the placeholder that will be replaced by the 3rd-party product with the reference ID.

Take a look at the schemes below and change our sample placeholder #var1# with the one used by the 3rd-party product (when just leaving ours, it does not work very likely).

Step 3... Implementing lead tracking to the 3rd-party product:

After you have modified the scheme, you should either implement it as IMG tag somewhere to the "thank you" / confirmation page as shown below (location varies on your system, of course) or in the way required by the 3rd-party product.

Scheme to call the lead tracking script without placeholders:
 
lead.cgi

Scheme to call the lead tracking script with placeholder:
 
lead.cgi?reference_id=#var1#

Sample implementation as hidden image (without placeholder):
 
<IMG SRC="http://www.sunnyscript.com/cgi-bin/ya/lead.cgi" HEIGHT=1 WIDTH=1 BORDER=0>

Sample implementation as hidden image (with placeholder):
 
<IMG SRC="http://www.sunnyscript.com/cgi-bin/ya/lead.cgi?reference_id=#var1#"
HEIGHT=1 WIDTH=1 BORDER=0>

By the way: Because of layout reasons, the IMG tag may be shown broken, but it has to be entered as one single line.

Lead based affiliate programs - method 2:

Overview about implementation:

Replace the "thank you" / confirmation page shown after successfully processed leads by YourAffiliates' lead.cgi script. It will manage affiliate tracking (if any) and then forwards the customer transparently to the originally intended page.

3rd-party software pre-requisites:

* Possibility to replace the "thank you" / confirmation page with an URL of your choice.
* Optional one variable is supported to recognize a particular lead, like a reference ID (POST and GET submissions works).

Step 1... Configuration of YourAffiliates:

Customization of variable names:

Go to the screen "Edit YourAffiliates parameters" and select the affiliate program you wish to edit. On the following screen, please go to the part "Paid advertising methods" and take a look at "Pay-per-lead"...

There you find parameters to customize the name of the variables holding the reference ID. Change it according specifications of the 3rd-party product (usage of this variable is optional; reference ID must be individual per action).

Technical note: If you don't want to track a reference ID, please skip this step.