Title: Website Migration &#8211; Stats Export
Last modified: September 26, 2024

---

# Website Migration – Stats Export

 *  Resolved [Mango](https://wordpress.org/support/users/rockarm/)
 * (@rockarm)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/website-migration-stats-export/)
 * Hi – Thanks for your plugin. I had a client website migrated and the stats are
   now empty. Is there a way to backup and / or import statistics in the case of
   database issues or hosting migrations? Thanks M

Viewing 1 replies (of 1 total)

 *  Plugin Author [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * (@dvankooten)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/website-migration-stats-export/#post-18040052)
 * Hello,
 * You can copy database tables between two different websites to copy over the 
   statistics, however this only works if both sites have the same set of post and
   page ID’s. 
   So if you are moving the same site to a different host and not migrating
   the entire database, you can use a tool like PHPMyAdmin to export and import 
   all the database tables starting with **wp_kokoanalytics_** to copy over your
   statistics.
 * If the two sites are actually different (with different post ID’s) then it is
   impossible to copy over statistics. This is because Koko Analytics uses the post
   ID’s internally in order to not have to store the post name and post URL repeatedly.
   
   Hope that helps. If not, let me know please.

Viewing 1 replies (of 1 total)

The topic ‘Website Migration – Stats Export’ is closed to new replies.

 * ![](https://ps.w.org/koko-analytics/assets/icon.svg?rev=2980600)
 * [Koko Analytics - Privacy-Friendly WordPress Analytics](https://wordpress.org/plugins/koko-analytics/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/koko-analytics/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/koko-analytics/)
 * [Active Topics](https://wordpress.org/support/plugin/koko-analytics/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/koko-analytics/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/koko-analytics/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * Last activity: [1 year, 8 months ago](https://wordpress.org/support/topic/website-migration-stats-export/#post-18040052)
 * Status: resolved