Mobile with piwik


#1

Hi ,

I’m using perl with Piwik for a mobile site (cpan module WWW:: Tracking and WWW:: Tracking:: Data:: Plugin:: Piwik) .

Everything seems ok, but when I put debug mode I see this message :

token_auth = 42d72b6061c06e07fc9a5108b721c18c - Warning: Super User / Admin was NOT authenticated

What’s means that message ?

Mario
PD: Full Debug:

Debug enabled - Input parameters:
array ( ‘idsite’ => ‘2’, ‘token_auth’ => ‘42d72b6061c06e07fc9a5108b721c18c’, ‘rec’ => ‘1’, ‘apiv’ => ‘1’, ‘rand’ => ‘2025855112’, ‘cip’ => ‘1.2.3.4’, ‘cid’ => ‘4’, ‘cdt’ => ‘2011-10-06 15:15:55’, ‘h’ => ‘15’, ‘m’ => ‘15’, ‘s’ => ‘55’, ‘res’ => ‘240x320’, ‘url’ => ‘http://xxxxxx/web/home’, ‘action_name’ => ‘/web/home HTTP/1.1"’, )
token_auth = 42d72b6061c06e07fc9a5108b721c18c - Warning: Super User / Admin was NOT authenticated
Loading plugins: { Provider }
Current datetime: 2011-10-06 15:28:35
Action is a Page URL, Action name = web/home HTTP/1.1", Action URL = http://xxxxxx/web/home
COOKIE piwik_visitor, rows count: 0, cookie size = 0 bytes array ( )
Visitor doesn’t have the piwik cookie.
The visitor is known (idvisitor = cf2d115f1159a601, config_id = ee8b7099f1aaf775, idvisit = 5, last action = Thu, 06 Oct 2011 15:17:12 +0000, first action = Thu, 06 Oct 2011 15:17:12 +0000, visit_goal_buyer’ = 0)
Visit is known.
Updating existing visit: array ( ‘visit_exit_idaction_url’ => 2, ‘visit_exit_idaction_name’ => 7, ‘visit_last_action_time’ => ‘2011-10-06 15:28:35’, ‘visit_total_time’ => 683, ‘visit_goal_buyer’ => ‘0’, )

array (
‘idvisit’ => ‘5’,
‘idsite’ => 2,
‘idvisitor’ => ‘Ï-_Y¦’,
‘server_time’ => ‘2011-10-06 15:28:35’,
‘idaction_url’ => 2,
‘idaction_name’ => 7,
‘idaction_url_ref’ => ‘2’,
‘idaction_name_ref’ => ‘7’,
‘time_spent_ref_action’ => 683,
)

COOKIE piwik_visitor, rows count: 0, cookie size = 0 bytes array ( )
-> Scheduled tasks not triggered.
Next run will be from: 2011-10-06 16:15:55 UTC
Nothing to notice => default behaviour
End of the page.

array (
‘piwik_auth’ => ‘login=czo1OiJhZG1pbiI7:token_auth=czozMjoiM2ZhM2IwNWFlNmQ1YThjMWZmZDRhNjgwYjc0NjUyM2EiOw==:=8b6cd4d7239c5fe34c57266b4ec1292f174d9d13’,
‘piwik_lang’ => 'language=czoyOiJlcyI7:
=efdbeafef19ed3bbe446a90e9a68ff11040f028a’,
‘PIWIK_SESSID’ => ‘8fb148e38c12fbeb6e4fad5a9bc22326’,
‘PHPSESSID’ => ‘576d81f80d3fe0866f1170de0c80af43’,
)

Time elapsed: 0.045s


(Matthieu Aubry) #2

Per Tracking API - Analytics Platform - Matomo

So probably you must call setTokenAuth to set the token to make it possible to overwrite the user IP or request date/time.

This particular error message means that there was a specified token, but it is not the correct super user (or admin user) one.