rym_add_goal | R Documentation |
Create new goal in 'Yandex Metrica' counter.
rym_add_goal(
counter,
name,
type = c("number","action","step","url"),
is.retargeting = FALSE,
flag = c(NA, "basket", "order"),
conditions = NULL,
login = getOption("rym.user"),
token.path = getOption("rym.token_path"))
counter |
Yandex Metrika counter ID |
name |
character, goal name |
type |
character, goal type, one of "number","action","step","url" |
is.retargeting |
boolean, if TRUE the goal is retargeting |
flag |
character, target type for Yandex.Market customers |
conditions |
list, the list of conditions, for example |
login |
character, Your Yandex login |
token.path |
character, Directory for store API credential |
Alexey Seleznev
Official docs of 'Yandex Metrica Management API'
## Not run:
rym_add_goal(123456789,
name = 'first_goal',
type = 'action',
conditions = list(type = 'exact',
url = 'rym-first-goal'),
login = 'your_login')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.