rym-calls | R Documentation |
calls Management:
Enable calls tracking for the specified counter.
Disable calls tracking for the specified counter.
Upload callss.
Returns the date and time from which conversions can be linked to visits for the specified counter.
Returns a list of calls downloads.
rym_enable_calls(
counter,
login = getOption("rym.user"),
token.path = getOption("rym.token_path"))
rym_disable_calls(
counter,
login = getOption("rym.user"),
token.path = getOption("rym.token_path"))
rym_allow_calls(
counter,
login = getOption("rym.user"),
token.path = getOption("rym.token_path"))
rym_upload_calls(
counter,
data,
client.id.type = c("CLIENT_ID", "USER_ID"),
new.goal.name = NULL,
comment = paste0("Upload by rym at ", Sys.time()),
login = getOption("rym.user"),
token.path = getOption("rym.token_path"))
rym_get_uploadings_calls(
counter,
login = getOption("rym.user"),
token.path = getOption("rym.token_path"))
counter |
Your yandex metrica counter |
data |
data.frame, expense data for loading |
client.id.type |
Type of visitor identifiers: CLIENT_ID or USER_ID |
comment |
Comment for data loading |
new.goal.name |
The name of the new goal for calls in the event that such a goal does not exist. If the target exists, this parameter is ignored |
login |
character, Your Yandex login |
token.path |
character, Directory for store API credential |
Loading data format.
Require:
Identifier of the visitor to the site or advertising campaign in Yandex.Direct, for example: 12345
Optional:
whether the call is static (1 - static, 0 - dynamic)
target price, the decimal separator is the dot (.)
currency in the three-letter format ISO 4217, for example: RUB
phone number without spaces (with country and city code). For example, +70123456789
call duration in seconds
call waiting time in seconds
whether the call is missed (1 - missed, 0 - answered)
custom label. It can be used to mark the quality of a call or its outcome, etc. For example, “the customer was not satisfied with the price”
primary (1 - primary call, 0 - secondary call)
The URL from which the call came (the page associated with the event). For example, this could be the landing page for an ad campaign that has a phone number (PhoneNumber)
The URL to go to the call tracker interface
Example of CSV file.
Alexey Seleznev
See official dox: API documents Upload calls info into Yandex Metrica Calls in Yandex Metrica
## Not run:
# read data for upload
data <- read.csv("https://bit.ly/2CcsNyl")
# enable offline cnversion
rym_enable_calls(
counter = 123456789,
login = "your_login"
)
# upload data
rym_upload_calls(
counter = 123456789,
data = data,
client.id.type = "CLIENT_ID",
login = "your_login")
# check uploading
rym_allow_calls(
counter = 123456789,
login = "your_login")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.