SourcePriority
Specify a prioritised list of CGI variables (sources) from which to set the
source (affiliate) name.
Synopsis
|
SourcePriority source [source...]
|
The parameter(s) are expected to be the name of one or more sources.
The default is "mv_pc mv_source".
Scope
This directive is only available for use in the local
(catalog.cfg) configuration file.
It will not affect any other website in any way.
This directive will not work in the global
(interchange.cfg) configuration file.
|
Availability
This directive was introduced in version 5.7.2,
and is therefore not available for use with any earlier Interchange version.
|
Description
This directive allows you to specify a prioritised list of CGI
variables (sources) from which to set the source (affiliate) name.
If multiple sources are specified,
then each will be searched in sequence,
when a page is loaded,
until a match is found.
Source can be the name of a CGI variable or any of the following:
| Source
|
Description
|
| mv_pc
|
Has the current special meaning of mv_pc.
For instance, RESET is special,
as are values that contain only digits. |
| cookie-NAME |
Check the named cookie. |
| session
|
Stop processing the list if session already exists,
do not check any further variables. |
| session-NAME |
Stop processing the list if named session variable is set. |
Examples
Check mv_pc first,
and then mv_source if mv_pc is not set (default action):
|
SourcePriority mv_pc mv_source
|
Check the MV_SOURCE cookie for an affiliate name
as well as the other defaults:
|
SourcePriority mv_pc mv_source cookie-MV_SOURCE
|
Check mv_source and the MV_SOURCE cookie
(don't check mv_pc):
|
SourcePriority mv_source cookie-MV_SOURCE
|
Check the CGI variable affid instead.
Don't check anything else:
Say you send affiliate traffic to other sites,
and you don't want those sites to get credit for sales if a customer
follows a banner from them back to your site:
|
SourcePriority session mv_pc mv_source
|
If you want affiliates who use the specialsource CGI
variable instead of mv_source to get special treatment and override
customers who already have sessions:
|
SourcePriority specialsource session mv_pc mv_source
|
If you want to allow affiliates to get credit if there is a session,
but only if no other affiliate is already set:
|
SourcePriority session-source mv_pc mv_source
|