How to Create a Google Analytics Custom Dimension

In order to add a custom dimension in Google Analytics follow this steps:

  1. Click admin and navigate to the property you which to add a custom dimension
  1. Click new Custom Dimension

  2. Give it a Name and a Scope and you’l get the javascript to add on your website

  1. After you should modify your tracking code adding for example
ga('send', 'pageview', {
'dimension1': 'My Custom Dimension'
});

When we should use this ?

Let’s say your website does some sort of user classification, you can create a CustomDimension ex: UserCategory and send enrich the data you track.