It is not possible to add custom measurements at different levels in a measurement protocol. Google analytics

I want to have a few more measurements so that user data is more human readable. I set values ​​like {v: '1', tid: "UA-XXXXX-1", cid: '55555', t: event, ec: 'GA', ea: "GA_Recharge", el: ' Recharge_NameofUer ', ev:' 30 '}

which provides me with a three-layer dimension, but I want to add some more dimensions, how can I achieve this.

+5
source share
2 answers

It looks like you are tracking events through a measurement protocol. Events by default have 3 dimensions:

  • Event Category (ec)
  • Event Action (ea)
  • Event Label (Email)

If you want to add more, the first idea is to create customDimensions. You can have up to 20 custom measurements (200 for GA360 clients).

You need to configure them on the interface first . You did not provide a lot of information about your use case, but I think you want to set them using the coverage level. Give everyone a descriptive name in the user interface and pay attention to their indexes.

Then you can use them in the measurement protocol with the cdX parameter , for example:

  • Custom size 1 (cd1)
  • Custom size 2 (cd2)
  • ...
  • Custom size 20 (cd20)

You can create custom reports that mix these dimensions with an event (Category | Action | Label) to simplify reporting.

+2
source

The event category, event action, and event label are all independent descriptors of a single hit.

To get more "levels" of an event, for example:

Event Category Event Action Event Label Event Label 2 Event Label 3 Event Label 4 Event Label 5 

You need to use custom sizes. Custom dimensions of the level of impact are in the same volume of the event, so any additional information that you send with this strike will be tied only to this single event.

For example, if you want to record the following event information:

Clicks> Click Clicks> Social Link Clicks> Facebook> Footer> Image Link

You will need to create 3 custom level sizes. You can send it as follows:

 { v: '1', tid: 'UA-XXXXX-1', cid: '55555', t: 'event', ec: 'Clicks', ea: 'Link Clicks', el: 'Social Link Clicks', ev: '30', cd1: 'Facebook', cd2: 'Footer', cd3: 'Image Link'} 

Since all events are at the achievement level, you can create and reserve additional custom dimensions as additional levels of events and not worry about the values ​​above each other's writing.

This means that you can send the following without problems:

Clicks> Link Links> Social Settings> Facebook> Body> CTA

 { v: '1', tid: 'UA-XXXXX-1', cid: '55555', t: 'event', ec: 'Clicks', ea: 'Signup Links', el: 'Social Options', ev: '30', cd1: 'Facebook', cd2: 'Body', cd3: 'CTA'} 

A report can be generated to see which type of links click most (Event Action), and which social platform interacts with most (CD1) or where users click most (cd2).

+1
source

Source: https://habr.com/ru/post/1268249/


All Articles