WWW::Tracking::Data - web tracking data object
my $tracking_data = WWW::Tracking::Data->new( hostname => 'example.com', request_uri => '/path', remote_ip => '1.2.3.4', user_agent => 'SomeWebBrowser', referer => 'http://search/?q=example', browser_language => 'de-AT', timestamp => 1314712280, java_version => undef, encoding => 'UTF-8', screen_color_depth => '24' screen_resolution => '1024x768', flash_version => '9.0', visitor_id => '202cb962ac59075b964b07152d234b70', );
Simple data object for web tracking that allows plugins to add different serialization and deserialization methods. See WWW::Tracking::Data::Plugin::* namespace.
WWW::Tracking::Data::Plugin::*
hostname request_uri remote_ip user_agent referer browser_language timestamp encoding screen_color_depth screen_resolution visitor_id pdf_support cookie_support flash_version java_version quicktime_version realplayer_version mediaplayer_version gears_version silverlight_version
Object constructor.
Clone the data and return as hash.
Create new WWW::Tracking::Data object from has hash. Adds current timestamp if not provided
timestamp
These functions are injected into WWW::Tracking::Data namespace via plugins.
Will generate new random visitor id and store it in visitor_id object property.
visitor_id
Returns string with request URL that includes protocol, hostname and path.
WWW::Tracking::Data::Plugin::* namespace.
Jozef Kutej
To install WWW::Tracking, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Tracking
CPAN shell
perl -MCPAN -e shell install WWW::Tracking
For more information on module installation, please visit the detailed CPAN module installation guide.