Download

Documentation

Print This page

How to Add Simple Shortcode in Post or Page

Would you like to check the analytics of your website page or blog post to view the performance of a specific page or post content that will help you improve the performance of your content?

Analytify has tons of simple shortcodes, so users can use plugin functionality anywhere they want. Yeah, we know remembering all WordPress shortcodes is difficult. That’s why Analytify has the option to create the shortcode in the text editor with just a few clicks. If you haven’t installed our plugin already, learn How to Install and Activate the Analytify Pro Plugin.

Normally, Analytify has two types of WordPress shortcodes.

1- Simple Shortcode

2- Advanced Shortcode

In a simple shortcode, you just need to set only the Metrics and Visibility role.

Metrics are quantitative measurements. The Metrics session is the total number of sessions. The Metrics Pages/Session is the average number of pages viewed per session.

Requirements

You can set any Session from Metrics and set the Visibility role for the present total number of sessions.

Here is an example of getting this site’s total number of users.

Get the number of Visitors by Using Analytify Simple Shortcode

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.

In our case, we are adding shortcodes to Post.

edit post.png

Step 3: Select Analytify Shortodes Block

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

analytify shortcodes

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

Step 4: Add the Simple Analytify Shortcode

Select Advance Shortcode from the sidebar options.

simple shortcodes

After selecting Simple Shortcode, you’ll be navigated to its settings.

In Metrics, select the option that you want to show. (e.g., Total number of users or page views). In our case, we choose Users as metrics.

Next, select the Visibility option. Who can see the result of this shortcode?

After this, click on Make Shortcode. You’ll see a shortcode will be automatically generated on your post.

shortcode setting

Step 5: Publish or Update the Post/Page

After adding the shortcode, you can either publish your new page or post or click Update on a current page or post.

And you’ll get similar results as shown below.

simple shortcodes result

That’s it!

This is how you can easily implement/add a simple shortcode to your specific page or blog post for analytics. Check our guide on how to add the advance shortcode on a page or post.

Note: The above-mentioned shortcodes support Universal Analytics. We are developing a new block for GA44 support You can contact us for GA4 equivalent shortcodes until we develop an automated solution. 

Feel free to contact our support team.

Google Analytics 4

Analytify is fully compatible with GA4
Migrate to GA4 Now
* Hurry up, Goode bye UA Universal Analytics
close-link
Analytify is fully Compatible with Google Analytics 4 (GA4)
Buy Analytify Now
close-image