How to Add Analytify Advanced Shortcodes on Post or Page
In this article, we will discuss Analytify Advanced Shortcodes and how easy they are to use.
In Advanced Shortcode option, you can modify your Analytify shortcodes with more flexibility. You can also set the date to sort the data.
Analytify Advanced Shortcode Settings
Metrics are quantitative measurements, you can select one or multiple metrics such as total users, new users, sessions and more. There is an option of Clear Metrics as well to remove all your selections.
Dimensions: Describes characteristics of our users, their sessions, and actions. You can select one or multiple dimensions such as city, country, session source/medium and more. There is an option of Clear Dimensions as well to remove all your selections.
Sort By: Select with respect to Metrics value.
Analytics for: Here, you can select the analytics for the full site just for the current page only.
Period: In this option, you can set yesterday, last week, last 15 days, last 30 days, this year or last year for your analytics.
Custom Date: Another useful option if you want to set a custom date range (start date to end date) for all the desired stats.
In this doc, we will explore the example of the Total Users, sessions and bounce rate with respect to the Country dimension.
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 Shortcode Block
First, select the Analytify Shortcode block from your post editing bar.
After clicking the Analytify Shortcode block, a new block will open on your page.
Step 4: Add the Advanced Analytify Shortcode
Select Advanced Shortcode from the block options.
After selecting Advanced Shortcode, you need to navigate to its block settings.
In SELECT METRICS dropdown, choose the options that you want to show. (e.g., Total number of users or page views). In our case, we chose multiple metrics including Total Users, New Users, Sessions and Bounce Rate.
In the SELECT DIMENSIONS section, describe the characteristics of your users like in this case we chose Country as the dimension.
Next, select from the PERIOD option. What time period you want to choose for the stats? For example we selected Last Week.
After this choose the SORT BY option, here we selected Total Users.
Now, finally select from the ANALYTICS FOR dropdown box and select either current post/page or Full Site. In this instance we selected Full Site.
Alternatively you can also set a custom date range for the time period of your stats. This comes handy if you don’t want to choose from the fixed time period options. See the screenshot below:
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 according to the above selected metrics and dimensions.
That’s it!
This is how you can easily implement/add an advanced shortcode to your specific page or blog post for analytics. You may also want to check our guide on how to add the Simple shortcode on a page or post.