I recently migrated my Piwik installation running 1.12 (old server! couldn’t upgrade beyond that) to a shiny new server running Piwik 2.10.
I literally exported the MySQL database from the old server, imported it into the new server, and then allowed Piwik to upgrade the old database to the new schema.
It brought in all my websites and displays historical data, but I get nothing in the Referrers, Keywords, and Search Engines reports. I read the “Visits from search engines or campaigns are not recorded” FAQ, and none of that seems to apply. I was certainly getting accurate reports on the old server, so all my tracking codes appear to be fine. And there are no weird redirects going on.
Potentially relevant, just in case:
The old server was "logs.example.org"
The new server was configured as “piwik.example.org” so I could access it until the DNS was updated and propogated.
I updated the DNS record for “logs” to point to the new server.
I put a redirect on the old server so that hits to “logs.example.org” would redirect to “piwik.example.org”. And I can get that referrer information might be lost for such redirects, but that was only a temporary measure.
I had installed (but not activated) the “AdvancedCampaignReporting” plugin. Mentioned only because it might interact with Referrers reports, and I don’t know what effect installing-but-not-activating might have. I ended up deleting it, and nothing changed.
Any suggestions on troubleshooting?
Later: all DNS propagation has completed, so I'm pretty sure that isn't relevant here. I still have no Referrer, Keywords, or Search Engine results. The "Visitors in Real Time" report, however, clearly shows referrer information:
Wed 7 Jan - 14:20:43 [United States, Provider Comcast] - IP: 220.127.116.11 from forbes - "2013-06-28-what-is-an-etf-three-simple-answers/" <-- The "forbes" is properly linked to the referrer page Pages: [Are You A Savvy Manager Of Your IRA? - Rebalance IRA Wed 7 Jan 14:20:43 ]
So I’m guessing that the data is being recorded, but isn’t being pulled by the reports for some reason.
I’m happy to poke around the code and/or MySQL tables, if someone can point me in the right direction.