Answer the question
In order to leave comments, you need to log in
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
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question