K
K
kaspartus2014-04-14 13:48:16
Android
kaspartus, 2014-04-14 13:48:16

How to pledge string values ​​for events in GA?

I will give an example that cannot be adequately pledged.
There is a search field, the user begins to fill in - we offer him options that are loaded from the server.
I would like to see what is most often searched for, and we will only write down when the user selects one of the proposed options, so as not to spray the possible options too much.
The event is recorded in the format: Category - Action - Label - Value, and the latter can only be of type integer. In my understanding, these are - Category of events - Name of the event - Field of the event - Value of the field of the event.
In my case, it will be something along the lines of: Search - DetailsActivitySearch - SelectedItem - and then I want to pledge such and such an option, for example, a sofa, chair, table, etc., but there is no possibility. Well, even when there are not very many options, even if 8, we keep a separate plate, we compare. But in my case there are thousands of options.
I saw a crutch with colleagues when everything shifts to the left and the final value is written to the label and it turns out: DetailsActivitySearch-SelectedItem-Divan, but here again, if we want to add another field for the event, we get DetailsActivitySearch-SearchType-Product. As a result, it turns out that for each event, in fact, events are generated according to the number of properties. Yes, on some screens you can look at the values ​​for the category and imagine that this is an event, but on some screens there is a terrible mess due to the fact that the event properties (label) are logged as the event itself.
In the same Flurry there are no categories of events, but Action - Label - Value works fine with strings, as it is to win in GA.
Question: How to pledge a string value for events?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ruslan, 2014-04-14
@buttersmai

If I'm not mistaken, I answered you in another thread.
The fact is that if the parameter is already set in Google Analytics as an integer, then you won’t defeat it with any hacks.

value (optional)
An integer that you can use to provide numerical data about the user event.

In general, there are two types of parameters in Google Analytics: dimensions and metrics. The first is string data and the second is numeric data. For numerical values, all kinds of averages, percentages, and other things are considered. The value parameter is metric, while Category - Action - Label is dimensions.
About the shift to the left - this is not a hack at all, and not a crutch, but a normal practice. In most cases, three levels of data storage is sufficient.
I might have suggested some solution to you, I just have a hard time understanding (without examples and other things) what kind of data you would like to send to GA. Although you have described everything in detail, it is easier to look at the site to understand.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question