derekovecs: log less personal data, bu send more to piwik
diff --git a/w2v-server.pl b/w2v-server.pl
index 2be4f52..3b736c7 100755
--- a/w2v-server.pl
+++ b/w2v-server.pl
@@ -361,19 +361,23 @@
# This won't forward personalized information
my $hash = {
- action_url => $c->url_for->to_abs,
+ action_url => $c->req->url->to_abs,
action_name => $route,
- ua => '',
+ ua => $c->req->headers->user_agent,
urlref => '',
send_image => 0,
dnt => 0,
+ cip => $c->remote_addr,
+ lang => $c->req->headers->accept_language,
uid => $c->random_string('piwik_rand_id')
};
- $c->app->log->info("PIWIK: counting " . $hash->{action_url});
- $c->app->log->info("PIWIK: tag " . $c->piwik_tag);
+ # $c->app->log->info("PIWIK: counting " . $hash->{action_url} . "\nremote:" . $c->remote_addr);
+ # $c->app->log->info("PIWIK: tag " . $c->piwik_tag);
# Send track
$c->piwik->api_p(Track => $hash)->wait;
+
+ # $c->app->log->info("PIWIK: counted.");
}
);