Home > SEO > Google Analytics > Google Analytics- Custom dimensions and metrics with Example

Google Analytics- Custom dimensions and metrics with Example

This post was most recently updated on July 31st, 2024

Dimension and Metrics allows you to analyze how users are interacting with content on your site or app. For example in a CMS or an android application, if you want to track user specific visits and hits over a particular page/ button/ level in a game.

Example: Lets implement dimensions and metrics in WordPress to get page views according to user names.

Prerequisite: WordPress setup with some users and pages.

Step1: In your Google Analytics account and go to Admin-> Custom Dimension-> Create custom Dimension

8-2-2014 3-32-26 PM

Set the scope to User(because we have to track user activity)

To know what each scope means see Google Analytics- Custom Dimension and Metrics Scope.

8-2-2014 3-55-11 PM

Similarly create a custom metric. 

8-2-2014-3-32-26-PM

Step2: Get the metric/ dimension name and add the following code in header.php file in your current theme to report the analytics.


Step 3: Login to your WordPress site and visit various pages to send the statistics.

Now the questions is where to view the reports and which analytics can be obtained through reports. The next post will show How to generate and use dimension and metric reports?

 Note: Mark the dimension and metrics as active when created to receive analytics.

This Article is TAGGED in , , , . BOOKMARK THE permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">