rym (version 1.0.3)

rym_add_goal: 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

References

Official docs of 'Yandex Metrica Management API'

Examples

Run this code
# NOT RUN {
rym_add_goal(123456789, 
             name = 'first_goal',
             type = 'action',
             conditions = list(type = 'exact', 
                               url = 'rym-first-goal'),
             login = 'your_login')
# }

Run the code above in your browser using DataLab