• Resolved thunder86

    (@thunder86)


    Due to a plugin issue one page got 1000 views in seconds.. Is there any possibility to reset the whole statistic ?

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Hessel de Jong

    (@hesseldejong)

    Hi @thunder86,

    The simplest method is to deactivate the plugin. A prompt will appear asking you to delete all data. Once you have deactivated and deleted the plugin, you can reactivate it and start fresh. I hope this helps!

    Kind regards,
    Hessel

    Thread Starter thunder86

    (@thunder86)

    Thats what I already tested but the stats aren’t reset

    Thread Starter thunder86

    (@thunder86)

    I tested it again. It shows the message you posted above but the data of the singe site visits which are mention in the WordPress Header-Menu are not deleted. The rest is reseted like it should. Is this maybe a bug in the Plugin? What’s the name to the Databank Table? I can check if the data is still available there.



    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    Did you also delete the plugin? The data will only be cleared if the plugin is deleted.

    Thread Starter thunder86

    (@thunder86)

    Yes! That what I dit in the second try. I also deleted the browser cache, used different Clients and tried it a third time.

    Page-Stats are still there.

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    @thunder86 I just tested this, the wp_burst_statistics table gets deleted without issues. Do you see any database errors in the logs after the reset? To view the logs you can install a plugin like WP Debugging.

    Alternatively, you can use mySql directly to clear the table:

    TRUNCATE TABLE wp_burst_statistics

    To use this, you need to access phpMyAdmin, and select your database.

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    @thunder86 I found the issue. I don’t know how the table was deleted on my test site, probably this was a different development version from the one currently live on WordPress. The line that contains the table name has been commented out there, which causes the table not to get removed. I’ve corrected this on GitHub:

    https://github.com/burst-Statistics/burst

    You can download this version to run a working uninstall.

    Sorry for the delay in the fix, and thanks for reporting the issue!

    Thread Starter thunder86

    (@thunder86)

    Just to check if I have understood your instructions correct:

    I copy all files from your GitHub link in the wp-content/plugins/burst-statistics folder and overwrite the files?

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    Easiest way is to remove the current version, then download the GitHub version as a zip file, and install it as a normal plugin (add new, upload)

    Thread Starter thunder86

    (@thunder86)

    Okay I′m confused:

    I removed the plugin, installed the zip and removed it again.

    After I installed the plugin again with your zip, the counter in the Admin Toolbar is still 1500 Pageviews.

    I check phpmyadmin where I saw 3 tables from your plugin. Burst_Goals, burst_session and bust_statistics.

    I deleted the plugin again to check if the tables are deleted and yes they were deleted but after reinstalling again, the Pageview Counter in the Admin Toolbar was still 1500.

    Does the Plugin use any other table to save the Pageviews?

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    @thunder86 I didn’t think about the page count shown on the post itself. These counts are stored in a post meta, for performance reasons.

    I’ll add these to the uninstall procedure as well, but for now you can use this branch:

    https://github.com/Burst-Statistics/burst/tree/extend-uninstall

    or this snippet:

    $post_meta = [
    	'burst_total_pageviews_count',
    ];
    
    if ( ! function_exists( 'delete_post_meta_by_key' ) ) {
    	require_once ABSPATH . WPINC . '/post.php';
    }
    foreach ( $post_meta as $post_meta_key ) {
    	delete_post_meta_by_key( $post_meta_key );
    }

    I’m now reviewing the uninstall mechanism, it needed updating! Thanks.

    Thread Starter thunder86

    (@thunder86)

    Feedback for you:

    I used your last posted version. Deactivation had no impact on the pageviews.

    After deactivating, deinstalling and reinstalling finally the page views are reseted

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    Sorry it took so long to fix this. I forgot about the post meta. Thanks for your patience and feedback!

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Reset Pageviews’ is closed to new replies.