Analytify is a widely used plugin for WordPress that enables the integration of Google Analytics directly into the WordPress dashboard. It offers streamlined statistical data and facilitates effortless analysis of website traffic. The plugin has a feature named “Analytify Advanced Shortcodes” that offers a range of shortcodes to incorporate diverse Google Analytics data into pages or posts. This technical document provides instructions on how to utilize Advance Shortcodes by Analytify to Add the Top Countries on a Post or Page.
Log in to the dashboard of your WordPress site.
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.
First, select the Analytify Shortcodes block from your post editing bar.
After clicking the Analytify Shortcodes block, a sidebar will open on the right side of the page.
Select Advance Shortcode from the sidebar options.
After selecting Advance Shortcode, you’ll be navigated to its settings.
First, select the Sessions as Metrics.
Next set the value Country which one you want to retrieve in Dimensions.
After this, select the visibility according to your choice.
Then, Sort the value with respect to Metrics (Sessions). Let’s select Session Count in the Sort By column.
Next, also set Analytics For the current page or for the whole website, according to your choice.
Follow the below screenshot, for direction.
After this select the date range and click on Make Shortcode
You’ll see a shortcode will be automatically generated on your post as shown in the below picture.
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 the similar results as shown below.
This is how you can easily implement/add an advance shortcode to your specific page or blog post for analytics. Check our guide on How to Add the Simple Shortcode on a Page or Post.
Note: The above-mentioned shortcodes support Universal Analytics. We are working to develop 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.