Home > DeveloperSection > Beginner > Create Custom Dimension and Metrics in Google Analytics API

Create Custom Dimension and Metrics in Google Analytics API


Google API Google API 
Ratings:
0 Comment(s)
 1860  View(s)
Rate this:

Create Custom Dimension and Metrics in Google Analytics API

 

In this article, I’m explaining the concept of custom dimension and metrics. How to create custom dimension and metrics?

 

In the google analytics the dimension and metrics are the building block of the google analytics. The dimension are the descriptive data that contain the words and metrics are the measured data that contain the numbers or percentage. Dimension and metrics in the google analytics many but if you need to create the custom dimension and metrics.

In the google analytics, set the custom dimension and metrics at the property level. Edit the permission to create or edit custom dimension and metrics.

Create the custom dimension in the google analytics by the following steps:

 

1.       Click on Admin in the Google analytics and select the account and the property where you want to create the dimension.

2.       Click on the Custom Definition and select the Custom Dimensions under the property.

3.       Click on the New Custom Dimension to create new dimension.

4.       Type suitable Name that was not repeat as dimension name & metric name.

5.       Select the Scope that give the four option Hit, Session, User, or Product level.

6.       Check the Active Box to collecting the data in your reports.

7.       Click on Create to create the dimension.

Let’s see create a sample as select scope session with active option:

When create the dimension it generate the code as:

This feature is only available for properties using Universal Analytics.

 

Let’s create the custom metrics in google analytics:

1.       Click on Admin in the Google analytics and select the account and the property where you want to create the metric.

2.       Click on the Custom Definition and select the Custom Metrics under the property.

3.       Click on the New Custom Metric to create new metric.

4.       Type suitable Name that was not repeat as dimension name & metric name.

5.       Select the Scope that give the only two option Hit or Product level.

6.       In the metric add an option Formatting Type it contain the three option Integer, Currency, and Time.

7.       In the Metric creation we have optional field as minimum and maximum value to give.

8.       Check the Active Box to collecting the data in your reports.

9.       Click on Create to create the metric.

Let’s see create a sample as select scope hit and formatting type integer and  minimum and maximum value is 1-1000 as like this:

And create the custom metric and give the message as like this:

This feature is also available in universal analytics.

 

Note:

This Custom Dimension and Metrics only available for properties using Universal Analytics. We are only the dimension and metrics create only 20.

 

I hope that this article is helpful for you. Thanks!


Don't want to miss updates? Please click the below button!

Follow MindStick