How to remove WP Statistics HTML comment in page source

After installing WP Statistics on your website, you will have the HTML comment below in your website’s resources.

<!– Analytics by WP Statistics v*.*.* – https://wp-statistics.com/ –>

Due to privacy matters, some might not prefer this comment showing. To remove this frontend comment, You would only need to add the filter below in your current theme’s functions.php file and you will be good to go!

add_filter('wp_statistics_html_comment', '__return_false');
Let’s get started
Take your business to next level

Become part of our growing family of +600,000 users and get the tools you need to make smart choices for your website. Simple, powerful insights are just a click away.