Download
Documentation
Print This page — Print the full How to Get the Number of Pageviews in the Last 30 Days documentation

Analytify is a powerful WordPress plugin that provides analytics about your website performance from Google Analytics. With its easy-to-use interface and shortcodes, you can quickly get the important data like your site’s page views, user count, bounce rates, and more. This guide will show you how to use an Analytify shortcode to find out the number of page views of your website in the last 30 days.

Requirements

Procedure

Step1: Login to the WordPress site

Log in to the dashboard of your WordPress site.

Step 2: Create a New Post or Page, or Edit an Existing One

You can make a new post or page where you want to show how many pageviews you’ve had.

You can also edit a post or page that is already there. For this, you need to navigate to that particular post >> edit.

Step 3: Select Analytify Shortodes Block

First, select the Analytify Shortcodes block from your post editing bar.

 A sidebar will open on the right side of the page. 


Step 4: Add the Analytify Shortcode

The side panel has three controls:

SELECT METRICS Click inside the metrics list and select Page Views. You can scroll through the list to see all available metrics including Bounce Rate, User Engagement Duration, Average Session Duration, and Screen Page Views Per Session.

PERIOD Open the Period dropdown and select Last 30 days.

Other period options are available from this dropdown. Select whichever time range you need.

ANALYTICS FOR Open the Analytics For dropdown and choose one of the following:

  • Current Post/Page — displays page views only for the specific post or page where the shortcode is placed
  • Entire Site — displays total page views across your whole website

Step 5: Publish or Update the Post/Page

Click Publish for a new post or Update for an existing one. Once live, the block will display the page view count for the selected period and scope, pulled directly from your connected GA4 property.

Now you know how to use the Analytify shortcode to show the number of pageviews for the last 30 days on the pages or posts of your WordPress site.

This is a great way to track site’s performance and make data-driven strategies for content creation and site improvements.

However, you may also like to read How to Add Advance Shortcode on Post or Page

Feel free to contact our support team.