If you deactivate the plugin, you can choose to clear all data. Then delete the plugin. The uninstall procedure will delete the tables.
Hi Rogier
I deactivated the plugin and noticed the option to delete all data. I then reactivated the plugin. This is really something that should be added to the Advanced tab inside the plugin settings. Thanks Rogier! Happy New year!
Hi @paaljoachim,
Great this solved it for you. We always want to keep the number of settings to a minimum, so thought this would keep it clean. But I’ll add a reset option to the advanced settings, I can imagine this is sometimes needed even without removing the plugin.
An reset option sounds very helpful!
Hi Rogier
One more vote fore adding a reset button, even better if we could have reset option for specific page as well. What I found is that when page is duplicated, stats for that page are also duplicated. This is a bit of an issue as it’s false data.
I would imagine it’s the duplicate/copy page plugin that is not taking into the account the fact some data like stats should not be carried over (as it’s not aware of it and probably copies all data related with that page).
It would be really useful to have an option to reset stats for that page.
Thank you for this plugin, works well for me so far.
@ch3rub @paaljoachim I have added a setting to clear all data in the database:
https://github.com/Burst-Statistics/burst/tree/reset-option-in-settings
This will get tested, and merged in one of the upcoming releases (probably not the next).
For a specific page, you can simply run:
//the post id you want to clear
$post_id = 80;
delete_post_meta( $post_id, 'burst_total_pageviews_count' );
Let me know if this answers your question.
Hi @rogierlankhorst
That sounds great! Thank you.