Quantcast
Channel: Piwik Forums - Support & Bugs
Viewing all articles
Browse latest Browse all 13117

Historical data recorded through tracking API does not show up in GUI

$
0
0
Alas, having searched this forum and tried the suggestions others have posed to similar issues, I have run into an issue in my attempts to use the tracking API to import historical data into Piwik—Having used the tracking API (https://piwik.org/docs/tracking-api/reference/#toc-tracking-api-reference), I have noticed that although the data appears in the database, it does not show up in the user interface. I DID try to force Piwik to re-run its reports, and here are the steps I took. (I checked the GUI after each step to see if the problem was solved, but unfortunately, it was not.) Can you please let me know what I might be doing wrong?

1) Ensured that "Delete old logs" was OFF in the Settings area.
2) Deleted the archive tables from the database.
3) Made requests to the tracking API, using the param
&method=CoreAdminHome.invalidateArchivedReports to let Piwik know that the historical data I was
sending it was after the fact. (Tried also without this parameter, too.)
4) Ran the archive.php cron job.

Here’s a sample array of data typical of what I sent to the API:

Array
(
[idsite] => 47
[rec] => 1
[ url ] => sitetobetracked.com
[action_name] => Home
[rand] => 292
[apiv] => 1
[_idvc] => 1
[_viewts] => 1374451200
[_idts] => 1374451200
[res] => 1366x768
[ua] => Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/31.0.1650.57 Safari/537.36
[lang] => en-us,en
[cip] => 11.22.33.44
[cdt] => 2013-07-22
[new_visit] => 1
[country] => us
[region] => MI
)

Viewing all articles
Browse latest Browse all 13117

Trending Articles