powered by
Create a new API segment in 'Yandex Metrica' counter.
rym_add_segment( counter, name, expression, login = getOption("rym.user"), token.path = getOption("rym.token_path"))
Yandex Metrika counter ID
character, segment name
character, filter expression, for example "ym:s:trafficSource=='organic' AND ym:s:isNewUser=='Yes'", for more information go link
"ym:s:trafficSource=='organic' AND ym:s:isNewUser=='Yes'"
character, Your Yandex login
character, Directory for store API credential
Alexey Seleznev
Official docs of 'Yandex Metrica Management API'
See rym_add_goal() for create new goal in 'Yandex Metrica'.
rym_add_goal()
if (FALSE) { rym_add_segment( counter = 123456789, name = "my_segment", expression = "ym:s:trafficSource=='organic' AND ym:s:isNewUser=='Yes'", login = "your_login") }
Run the code above in your browser using DataLab