O
O
Oleg Kotov2018-12-13 09:10:03
API
Oleg Kotov, 2018-12-13 09:10:03

How to pass grouping by login page in API request?

You need to take statistics through the API on the login page (more grouping ym:s:searchEngine). In the documentation, it is listed as dimensions (grouping). But request with
dimensions = "ym:s:startURLPath=='/igrushki/'"
(only encoded) doesn't work and returns error invalid_parameter.
If you substitute the same attribute in the filters, then the data is returned, but the results do not correspond to the report in the metric.
How to make the login page work?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Kotov, 2018-12-17
@AgeofCreations

The problem was solved, and consisted in the fact that within the framework of filtering it was necessary to use the "contains a substring" operator ([email protected]), instead of strict filtering with the "==" operator.
That is, in the end it should look like this:
filters = "ym:s:[email protected]'/igrushki/'"Of course, encoded.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question