Hello
I have a script which I run from the command line (http://pastebin.com/dj6V38wt) which uses the Tracking API to generate random data and send requests to piwik.php. When I run this script without my token_auth, I can see the visits and page views being tracked in Piwik. When I run this script with my token_auth the data is accepted by Piwik but not visible in the user interface. (See attachments).
Sadly, I can't seem to force Piwik to show (and compute the reports) for data older than the current date. I have been looking quite extensively over Google and StackOverflow and this was the best I can find: http://stackoverflow.com/questions/17920198/piwik-import-historical-data-via-the-api-shows-only-last-two-days-in-dashboard
---
These are two responses for the HTTP requests made by my script to piwik.php using the Tracking API. One with and one without the token_auth.
Without Token Auth
With Token Auth
Why would the data for the second request with the token_auth not show in Piwik dashboard, but the first would?
Many thanks!
I have a script which I run from the command line (http://pastebin.com/dj6V38wt) which uses the Tracking API to generate random data and send requests to piwik.php. When I run this script without my token_auth, I can see the visits and page views being tracked in Piwik. When I run this script with my token_auth the data is accepted by Piwik but not visible in the user interface. (See attachments).
Sadly, I can't seem to force Piwik to show (and compute the reports) for data older than the current date. I have been looking quite extensively over Google and StackOverflow and this was the best I can find: http://stackoverflow.com/questions/17920198/piwik-import-historical-data-via-the-api-shows-only-last-two-days-in-dashboard
---
These are two responses for the HTTP requests made by my script to piwik.php using the Tracking API. One with and one without the token_auth.
Without Token Auth
Debug enabled - Input parameters: <br/>array ( 'idsite' => '1', 'rec' => '1', 'apiv' => '1', 'r' => '752987', 'cip' => '60.34.172.193', 'cid' => '288a630c8a3e7445', 'cdt' => '2011-04-14 10:13:55', '_idts' => '1392570826', '_idvc' => '0', 'fla' => '0', 'java' => '0', 'dir' => '0', 'qt' => '0', 'realp' => '0', 'pdf' => '0', 'wma' => '0', 'gears' => '0', 'ag' => '0', 'h' => '7', 'm' => '23', 's' => '5', 'res' => '320x480', 'cookie' => '1', 'url' => 'http://www.ncl.ac.uk/about/quality/research.htm', 'urlref' => 'http://www.ncl.ac.uk/research/', 'action_name' => 'Research Excellence - About - Newcastle University', ) Loading plugins: { Provider,Goals,PrivacyManager,UserCountry,UsersManager,SitesManager } Current datetime: 2014-02-16 17:18:56 Visitor IP was _not_ anonymized: 10.0.2.2 (this is not a Site Search request) Action is a PAGE_URL, Action name = Research Excellence - About - Newcastle University, Action URL = http://www.ncl.ac.uk/about/quality/research.htm Visitor doesn't have the piwik cookie... The visitor is known (idvisitor = c21f1bc603ed84cd, config_id = cb000919b43db239, idvisit = 43, last action = Sun, 16 Feb 2014 17:18:56 +0000, first action = Sun, 16 Feb 2014 17:14:04 +0000, visit_goal_buyer' = 0) Visit is known (IP = 10.0.2.2) Updating existing visit: array ( 'visit_exit_idaction_name' => '85', 'visit_exit_idaction_url' => 86, 'visit_total_actions' => 'visit_total_actions + 1', 'visit_last_action_time' => '2014-02-16 17:18:56', 'visit_total_time' => 293, 'idvisitor' => 'c21f1bc603ed84cd', 'visit_goal_buyer' => '0', ) Inserted new action: array ( 'idvisit' => '43', 'idsite' => 1, 'idvisitor' => 'Â??Æ?ÄÃ', 'server_time' => '2014-02-16 17:18:56', 'idaction_url' => '86', 'idaction_name' => '85', 'idaction_url_ref' => '86', 'idaction_name_ref' => '85', 'time_spent_ref_action' => 0, 'idlink_va' => '682', ) -> Scheduled tasks not running in Tracker: Browser archiving is disabled. Nothing to notice => default behaviour End of the page. array ( 'piwik_auth' => 'login=czo1OiJhZG1pbiI7:token_auth=czozMjoiOTFmYjliZTFjZjQ4YTdjYjc5NjIxNWJkYTA5OThmOGUiOw==:_=eeb76d23a72de37b8b631408c3e863dbc3881a6f', 'PIWIK_SESSID' => 'vhgn8achn7cj5kj9k28agjusa0', ) Piwik\Timer::__set_state(array( 'timerStart' => 1392571136.6637, 'memoryStart' => 3018592, ))
With Token Auth
Debug enabled - Input parameters: <br/>array ( 'idsite' => '1', 'rec' => '1', 'apiv' => '1', 'r' => '525016', 'cip' => '15.18.171.171', 'cid' => '0ce3593df1c7748e', 'cdt' => '2010-05-01 16:32:10', 'token_auth' => 'cd27e77092ee3f700785f450ca7785ac', '_idts' => '1392570895', '_idvc' => '0', 'fla' => '0', 'java' => '0', 'dir' => '0', 'qt' => '0', 'realp' => '0', 'pdf' => '0', 'wma' => '0', 'gears' => '0', 'ag' => '0', 'h' => '22', 'm' => '54', 's' => '21', 'res' => '768x1024', 'cookie' => '1', 'url' => 'http://www.ncl.ac.uk/undergraduate/degrees/cc18/courseoverview/', 'urlref' => 'http://en.wikipedia.org/wiki/Newcastle_University', 'action_name' => 'Biology and Psychology BSc Honours : Course Overview - Undergraduate Study - Newcastle University', ) token_auth is authenticated! Loading plugins: { Provider,Goals,PrivacyManager,UserCountry,UsersManager,SitesManager } Current datetime: 2014-02-16 17:18:54 Visitor IP was _not_ anonymized: 15.18.171.171 (this is not a Site Search request) Action is a PAGE_URL, Action name = Biology and Psychology BSc Honours : Course Overview - Undergraduate Study - Newcastle University, Action URL = http://www.ncl.ac.uk/undergraduate/degrees/cc18/courseoverview/ Request will be recorded for this idvisitor = 0ce3593df1c7748e Matching visitors with: visitorId=0ce3593df1c7748e OR configId=de5ae69a12fae43d The visitor is known (idvisitor = 0ce3593df1c7748e, config_id = de5ae69a12fae43d, idvisit = 46, last action = Sat, 01 May 2010 16:32:10 +0000, first action = Sat, 01 May 2010 16:31:41 +0000, visit_goal_buyer' = 0) Visit is known (IP = 15.18.171.171) Updating existing visit: array ( 'visit_exit_idaction_name' => '23', 'visit_exit_idaction_url' => 24, 'visit_total_actions' => 'visit_total_actions + 1', 'visit_last_action_time' => '2010-05-01 16:32:10', 'visit_total_time' => 30, 'idvisitor' => '0ce3593df1c7748e', 'visit_goal_buyer' => '0', ) Inserted new action: array ( 'idvisit' => '46', 'idsite' => 1, 'idvisitor' => ' ãY=ñÇtŽ', 'server_time' => '2010-05-01 16:32:10', 'idaction_url' => '24', 'idaction_name' => '23', 'idaction_url_ref' => '24', 'idaction_name_ref' => '23', 'time_spent_ref_action' => 0, 'idlink_va' => '678', ) Nothing to notice => default behaviour End of the page. array ( 'piwik_auth' => 'login=czo1OiJhZG1pbiI7:token_auth=czozMjoiOTFmYjliZTFjZjQ4YTdjYjc5NjIxNWJkYTA5OThmOGUiOw==:_=eeb76d23a72de37b8b631408c3e863dbc3881a6f', 'PIWIK_SESSID' => 'vhgn8achn7cj5kj9k28agjusa0', ) Piwik\Timer::__set_state(array( 'timerStart' => 1392571134.1059, 'memoryStart' => 3020124, ))
Why would the data for the second request with the token_auth not show in Piwik dashboard, but the first would?
Many thanks!