TrackPageParam — insert specified variables' values in the user track file
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.
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
Interchange 5.9.0:
Source: lib/Vend/Config.pm
Line 3188 (context shows lines 3188-3205)
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); }