Name

TrackPageParam — insert specified variables' values in the user track file

SYNOPSIS

page_name cgi_var1,cgi_var2 ...

DESCRIPTION

Specify Interchange pages and CGI variables whose values should be inserted into user tracking file along with the visited page information.

Variable names and values are only printed if they are selected for output using this directive, and if they have really been directly passed onto the target page as CGI variables.

DIRECTIVE TYPE AND DEFAULT VALUE

Catalog directive

EXAMPLES

Example: Setting TrackPageParam

TrackFile logs/trackfile
TrackPageParam  index  var1,var2      index2 var3,var4

The example will monitor values of the var1 and var2 CGI variables on page index.html, and values of the var3 and var4 CGI variables on page index2.html.

To see it in practice, visit the index page of your catalog, append &var1=TEST&var2=500 to its URL, and press enter to visit the page with those CGI variables defined. You'll see page accesses recorded in the user tracking file, along with the names and values of the two variables. The log in the trackfile might look like this:

20050812  fft2VXwJ  127.0.0.1  1123868228  VIEWPAGE=index  var1=TEST var2=500

NOTES

AVAILABILITY

TrackPageParam is available in Interchange versions:

4.6.0-5.9.0 (git-head)

SOURCE

Interchange 5.9.0:

Source: lib/Vend/Config.pm
Line 676

['TrackPageParam',   'hash',            ''],

Source: lib/Vend/Config.pm
Line 3181 (context shows lines 3181-3198)

sub parse_hash {
my($item,$settings) = @_;
if (! $settings) {
  return $HashDefaultBlank{$item} ? '' : {};
}

my $c;

if(defined $C) {
  $c = $C->{$item} || {};
}
else {
  no strict 'refs';
  $c = ${"Global::$item"} || {};
}

return hash_string($settings,$c);
}

AUTHORS

Interchange Development Group

SEE ALSO

TrackFile(7ic)

DocBook! Interchange!