Category Archives: wordpress popular posts

How to Display Popular Posts by Day, Week, and Month in WordPress

Do you want to display your most popular posts by day, week, month, or even all-time in WordPress?

Popular posts allow your visitors to quickly discover your top content, which helps you increase user engagement, pageviews, and conversions.

In this article, we will show you how to display popular posts by day, week, month, and all time in WordPress.

Display popular posts by day week month and all time in WordPress

Why Display Popular Posts in WordPress?

When you start a WordPress blog, you don’t have much content, which allows you to display selected posts in a sidebar widget manually.

However, as your website grows, you will notice that older articles on your website don’t get much exposure. By showcasing your top content, you allow new users to quickly discover the best articles on your website. This boosts user engagement on your website and increases your page views.

Now the problem is that if you are showing your all-time popular articles, then a very limited set of articles get repeated exposure. You can diversify it by displaying popular posts by day, week, or month as well.

Let’s take a look at how to easily display popular posts in WordPress by day, week, month, or all time.

Add Popular Posts by Day, Week, and Month in WordPress

The best way to show popular posts in WordPress is using MonsterInsights. It’s the best Analytics plugin for WordPress and helps you set up Google Analytics without editing code.

For this tutorial, we’ll use the MonsterInsights Pro version because it lets you automatically show top posts from Google Analytics.

There is also a MonsterInsights Lite version that’s free and also includes the Popular Posts feature, but does not connect to GA.

First, you’ll need to install and activate the MonsterInsights plugin. If you need help, then please see our guide on how to install a WordPress plugin.

Upon activation, you will be directed toward the MonsterInsights welcome screen. Go ahead and click the ‘Launch the Wizard’ button.

Launch setup wizard

After that, you can follow the onscreen instructions to configure Google Analytics. For more details, please see our guide on how to install Google Analytics in WordPress.

With MonsterInsights, you can also set up a Google Analytics 4 property. This is the new version of Analytics. The previous Universal Analytics version will sunset on July 1, 2023, and you won’t be able to track website data after this date. That’s why now is the best time to switch to Google Analytics 4 and protect your data.

Now that you’ve added Google Analytics to your website, the next step is to go to Insights » Popular Posts from your WordPress dashboard.

MonsterInsights lets you show your top articles within the content, in the sidebar as a widget, and display popular products if you have an online store.

For this tutorial, we’ll use ‘Inline Popular Posts’ and show featured articles within the content of other blog posts.

Popular post in MonsterInsights

The plugin comes with prebuilt themes, and you can see a preview of how your popular posts will appear on the website.

Once you’ve chosen a theme, simply scroll down to see more customization options. For instance, you can change the title color and size, edit the color of the label and background, and more.

Preview of popular post and customization options

Show Popular Posts by Day, Week, Month, and All Time in WordPress

Next, you’ll need to choose how the plugin will determine your popular posts. Let’s see how you can show posts by day, week, month, and all time.

Displaying Popular Posts by Day, Week, and All Time

In MonsterInsights, you can manually select which posts appear in the Popular Posts widget.

This is useful when displaying top content from a specific day or week. Plus, you can also show your all-time best articles anywhere on your website.

Simply select the ‘Curated’ option under Sort By section and then choose the articles you want to feature.

These could be your evergreen content, weekly announcement or news, trending topics from a particular day, and more.

Just begin typing the name of the posts you want to include, and then select them as their name pops up in the field. To continuously display your top posts of all time, you simply need to select them, and as long as ‘Curated’ is chosen, they will appear as popular posts.

Select curated articles to feature

However, if you want to display popular posts by the day or the week, you will have to manually change some of these curated posts so they stay fresh for your audience.

For instance, if you are featuring different WooCommerce products weekly, you will need to choose which posts are listed under ‘Curated’ each week.

Displaying Popular Posts by Month and All Time

In MonsterInsights, you get multiple options to automatically show popular posts by month and all time.

First, you can show your most commented pages from the last 30 days by selecting the ‘Comments’ option. The plugin will randomly rotate blog posts with the highest comments and show them in the popular post widget.

Sort your popular posts

Similarly, MonsterInsights also lets you automatically display popular posts based on social shares using the ‘SharedCount’ option.

It integrates with the SharedCount and helps you display your all-time most shared articles. This way, people can easily find content that’s driving social engagement.

Show popular posts by SharedCount

MonsterInsights also offers an option to show the top 5 posts from Google Analytics in the last 30 days. This way you can show your top-performing content from last month or all-time anywhere on your site.

First, you’ll need to select the ‘Curated’ option under the ‘Sort By’ section.

After that, you can enable the ‘Add Top 5 Posts from Google Analytics’ option under the Automated + Curated section.

Add top 5 posts automatically

To ensure that your data is being fetched from Google Analytics, click the ‘Test Automated Posts’ button under ‘Automated + Curated.’

A popup message will now appear, showing that the popular posts are being fetched correctly. You can click the ‘Close’ button.

Popular post data is correctly fetched

Do note that you’ll need to set up the ‘Post Type’ custom dimensions in MonsterInsights and Google Analytics to use the Automated + Curated feature.

Custom dimensions are additional metrics you can track in Google Analytics. For more details on custom dimensions and how to configure them, you can see our guides on how to enable author tracking in WordPress and the best time to publish a blog.

Insert Popular Posts to Your WordPress Website

Next, you’ll need to select how you’d like to insert the featured articles.

MonsterInsights offers 2 options, including automatic placement and manual placement.

If you select the ‘Automatic’ option, then you can decide after how many words you’d want the popular post widget to appear. There is also an option to include and exclude pages from display featured posts.

Choose placement option

When you’re done, simply click back to the top and click the ‘Save Changes’ button.

This way, your settings will be saved, and MonsterInsights will automatically display popular posts on your site.

Click the Save Changes Button to Store Your New Widget

On the other hand, you can also show popular posts in any blog post by adding the MonsterInsights block or using a shortcode.

First, add a new post or edit an existing one. Once you’re in the content editor, simply click the ‘+’ button and add the ‘Popular Posts’ block.

Select popular posts block

After that, you can see a preview of your featured articles in the content editor.

Once you’re satisfied with the widget’s appearance, you can go ahead and publish your article.

Preview your popular posts

We hope this article helped you display popular posts by day, week, month, and all time in WordPress. You may also want to see our guide on WordPress SEO and the best WooCommerce plugins.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Display Popular Posts by Day, Week, and Month in WordPress first appeared on WPBeginner.

How to Add a Stats Dashboard On Your WordPress Site

Do you want to add a stats dashboard on your WordPress site? Analytics help you find out how people find and use your website, so you can keep them coming back. In this article, we will show you how to easily add a stats dashboard on your WordPress site.

How to add a stats dashboard in WordPress

Why You Need a Stats Dashboard in WordPress

Normally you can install Google Analytics and view your reports by logging into your Google analytics account. This sounds great, but most people forget to check their blog stats on a regular basis.

The two biggest reason for that are:

  1. You have to login to a separate website (Google Analytics) to check the stats.
  2. You have to dig around Google Analytics to actually find what you’re looking for.

While Google Analytics is a powerful tool, it often requires some digging to get to the good parts of the reports you want to view. Most beginners never make it this far.

Adding a stats dashboard to your WordPress website solves this problem. You will be able to quickly view the stats that matter without leaving your WordPress admin area, and it will require far easier.

That being said, let’s take a look at how to easily add a stats dashboard on your WordPress site.

Adding a Stats Dashboard in WordPress

First thing you need to do is install and activate the MonsterInsights plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to visit Insights » Settings page to enter your license key. You can find the license key under your account on the MonsterInsights website.

MonsterInsights license key

Next, you need to connect your website to your Google Analytics account. You can do this by visiting the Insights » Settings page and clicking on the ‘Authenticate with your Google account’ button.

Authenticate with your Google account

This will redirect you to Google accounts where you will be asked to sign in or select a Google account if you are already signed in.

Sign in or select your Google account to continue

You need to click on ‘Next’ to continue.

After that, you will be asked to allow MonsterInsights to access your Google Analytics account. This step is necessary, so MonsterInsights can bring the report back to your WordPress dashboard.

Allow MonsterInsights to access your Google Analytics account

Go ahead and click on the ‘Allow’ button to continue.

The final step is to select the profile you want to track. You need to select your website here and then click on the ‘Complete authentication’ button to continue.

Select your website profile

You will now be redirected back to your WordPress site.

That’s all you have successfully installed and setup Google Analytics on your WordPress site. If you haven’t installed Google Analytics on this website before, then it will take sometime before Google Analytics starts showing your stats.

Viewing Your WordPress Stats Dashboard

Now that you have set up Google Analytics using MonsterInsights, you can view your WordPress stats by visiting Insights » Reports page.

Website stats reports

On top of the stats dashboard, you will see a graph of your WordPress page views and visitor sessions for the last 30 days. This gives you a quick overview of incoming traffic to your blog.

Below that, you will see a comparison of your website stats against previous 30 days. It will show numbers of sessions, page views counter, session duration, and bounce rate.

Stats break down

After that you will see charts showing new vs returning visitors and devices used to access your website. This is followed by top countries people visiting your website from and top referral websites sending you the most traffic.

MonsterInsights also acts as a pageview counter and shows your most popular WordPress posts and pages. This helps you find your top performing content, so you can plan your content strategy accordingly.

Top posts and pages

Viewing More WordPress Stats with MonsterInsights

MonsterInsights also shows custom reports depending on your settings. You can switch to publishers, ecommerce, search console, and dimensions.

The publishers tab shows reports made for content-rich websites like blogs, news, or magazine websites. It will show you the following stats:

  • Top landing pages
  • Top exit pages
  • Top outbound links
  • Top affiliate links
  • Top download links
  • Age, gender, and interests (visible only if you have them enabled in Google Analytics)

Tracking Ecommerce Stats in WordPress with MonsterInsights

If you run an online store using WooCommerce or Easy Digital Downloads, then you’ll love MonsterInsights eCommerce tracking features.

First, you will need to visit Insights » Addons page to install and activate the MonsterInsights eCommerce addon.

Ecommerce addon

Next, you need to visit Insights » Settings and click on the tracking tab.

Enable eCommerce tracking

On the tracking tab, you need to scroll down and select the eCommerce settings and then check the box next to ‘Use Enhanced eCommerce’ option.

Don’t forget to click on the save changes button to store your settings.

Now you can view your ecommerce stats in WordPress by visiting Insights » Reports page and clicking on the ecommerce tab.

ecommerce stats in WordPress

Ecommerce reports will show you the break down of the following stats:

  • Conversion rate, transactions, revenue, and average order value
  • Top products
  • Top conversion sources
  • Total add to cart and total remove from cart
  • Time to purchase and session to purchase stats

We hope this article helped you learn how to easily add a stats dashboard in WordPress. You may also want to see our ultimate WordPress SEO guide to improve your search rankings and get more traffic for your website.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Add a Stats Dashboard On Your WordPress Site appeared first on WPBeginner.