rym_add_goal {rym}R Documentation

Create goal in 'Yandex Metrica'

Description

Create new goal in 'Yandex Metrica' counter.

Usage

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"))

Arguments

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 list(type = 'exact', url = 'rym-first-goal')

login

character, Your Yandex login

token.path

character, Directory for store API credential

Author(s)

Alexey Seleznev

References

Official docs of 'Yandex Metrica Management API'

Examples

## 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)

[Package rym version 1.0.6 Index]