powered by
Returns a list of segments created using the API and related to the specified counter.
rym_get_segments(counter, login = getOption("rym.user"), token.path = getOption("rym.token_path"))
Data frame with list of yandex metrica counter segments
Segment id.
Yandex Metrica counter id.
Segment name.
An expression that matches the value of the filters parameter.
Logical, is retargeting segment or not.
Source of the segment. Indicates how to create it. Accepts the value of api - segments that are created using the API are used.
Yandex Metrika counter ID, you can get ids of all your conters over rym_counters
character, Your Yandex login
character, Directory for store API credential, by default is your work directory
Alexey Seleznev
Official docs of Yandex Metrica Management API
Docs on rym website
Run vignette("rym-management-api", package = "rym") to see the corresponding vignette.
vignette("rym-management-api", package = "rym")
if (FALSE) { segments <- rym_get_segments(counter = "your_counter_id", login = "your_login") }
Run the code above in your browser using DataLab