IPv6 Geolocation in Piwik

Note: As of Matomo 3.5.0 or so, none of the below is needed any more as Matomo now supports the Geo IP 2 databases natively. If you followed these instructions, be sure to remove the cron script below – and configure automatic archival of Matomo reports.   Piwik is a fantastic and free web analytics … Read more

Perl CGI.pm and Unicode

Because I always forget how to handle Unicode input/output in Perl .. a few notes to help jog my memory for next time: Remember to use both CGI.pm and Encode.pm: use CGI qw(:standard); use Encode qw(decode encode); Handle webform input with Unicode characters: my $input = decode(‘utf8’, param(‘input’)); Prepare scalar variables to cope with Unicode … Read more