Description Usage Arguments Value Examples
View source: R/month_relative.R
This function allows you to get monthly data from 'AT Internet' using relative period. Relative periods allow you to use periods that are automatically updated based on the last minute of available data. METRICS are visits, visitors, conversions visits, conversions rate, visits with sales, time spent per pages, bounce rate
1 2 3 | month_relative(ATuser, ATpassword, space, period_duration,
dim_source = NULL, dim_device = NULL, dim_level2 = NULL,
segment = NULL, pagination = 1)
|
ATuser |
Your 'AT Internet' user login |
ATpassword |
Your 'AT Internet' password login |
space |
Analysis space |
period_duration |
Analysis period. The last X Months. |
dim_source |
Optional - DIMENSION Trafic Source : Direct+traffic, Search+engines, "Referrer+sites", "Social+Campaigns" |
dim_device |
Optional - DIMENSION Device Type |
dim_level2 |
Optional - DIMENSION Sub-set of your site |
segment |
Optional - SEGMENT applied to the result set |
pagination |
By defaut the pagination is set to 1. This allows you to get 10,000 rows of data. If you need more, you must make multiple calls to the API using the pagination feature. |
month_relative extract the monthly data you need from 'AT Internet' database, according to parameters you entered and then provides a dataset.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run:
ATuser <- "user_email_adress"
ATpassword <- "my_password"
space <- 113736
start_date <- "2018-11"
end_date <- "2018-11"
dim_source <- "Search+engines"
dim_device <- "Desktop"
dim_level2 <- "MyLevel2"
segment <- 204529097
pagination <- 1
dataset <- month_relative(ATuser, ATpassword, space, period_duration, dim_source, dim_device, dim_level2, segment, pagination)
dataset4 <- month_relative(ATuser, ATpassword, space, period_duration, dim_source=NULL, dim_device=NULL, dim_level2, segment, pagination)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.