I want to have some more dimensions so that the data for the user is more human readable. I have set values such as { v: '1', tid: 'UA-XXXXX-1', cid: '55555', t: 'event', ec: 'GA', ea: 'GA_Recharge', el: 'Recharge_NameofUer', ev: '30' }
which provides me a three layered dimension but I want to add some more dimensions how could i achieve that.
2 Answers
Answers 1
Seems like you are tracking events through the measurement protocol. Events have by default 3 dimensions:
- Event Category (ec)
- Event Action (ea)
- Event Label (el)
If you want to add more the first idea is to create customDimensions. You can have up to 20 custom dimensions (200 for GA360 clients).
You need to setup them on the interface first. You haven't given much information about your use case but I'll guess you want to set them with Hit Scope Level. Give each one a descriptive name on the UI and take note of their indexes.
Then you can use them in the measurement protocol with the parameter cdX, like this:
- Custom Dimension 1 (cd1)
- Custom Dimension 2(cd2)
- ...
- Custom Dimension 20 (cd20)
You can later create custom reports that mix these dimensions with the Event(Category|Action|Label) for easy reporting.
Answers 2
Event category, event action and event label are all independent descriptors of a single hit.
To gain more 'levels' of a event, for example:
Event Category Event Action Event Label Event Label 2 Event Label 3 Event Label 4 Event Label 5
You need to make use of custom dimensions. Hit level custom dimensions are at the same scope of the event, thus any additional information you send through with that hit will only be attached to that single event.
For example, if you want to capture the following event information:
Clicks > Link Clicks > Social Link Clicks > Facebook > Footer > Image Link
You would need to create 3 hit level custom dimensions. You could 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 hit level, you can create and reserve extra custom dimensions as extra event levels and have no concern of the values over writing each other.
This means that you could send the following without concern:
Clicks > Signup Links > Social Options > 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 could be generated to see which type of links get clicked the most (Event Action), as well as what social platform is interacted with the most (CD1), or where users click the most (cd2).
0 comments:
Post a Comment