Description Usage Arguments Value Author(s) References Examples
View source: R/rym_get_segments.R
Returns a list of segments created using the API and related to the specified counter.
1 | rym_get_segments(counter, login = NULL, token.path = getwd())
|
counter |
Yandex Metrika counter ID, you can get ids of all your conters over rym_counters |
login |
character, Your Yandex login |
token.path |
character, Directory for store API credential, by default is your work directory |
Data frame with list of yandex metrica counter segments
id |
Segment id. |
counter_id |
Yandex Metrica counter id. |
name |
Segment name. |
expression |
An expression that matches the value of the filters parameter. |
is_retargeting |
Logical, is retargeting segment or not. |
segment_source |
Source of the segment. Indicates how to create it. Accepts the value of api - segments that are created using the API are used. |
Alexey Seleznev
Official docs of Yandex Metrica Management API
Run vignette("rym-management-api", package = "rym")
to see the corresponding vignette.
1 2 3 4 5 | ## Not run:
segments <- rym_get_segments(counter = "your_counter_id",
login = "your_login")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.