week_set: Get Weekly AT Internet Data - Set Period

Description Usage Arguments Value Examples

View source: R/week_set.R

Description

This function allows you to get weekly data from 'AT Internet' using set perdiod, with a start date and an end date. METRICS are visits, visitors, conversions visits, conversions rate, visits with sales, time spent per pages, bounce rate

Usage

1
2
3
week_set(ATuser, ATpassword, space, start_date, end_date,
  dim_source = NULL, dim_device = NULL, dim_level2 = NULL,
  segment = NULL, pagination = 1)

Arguments

ATuser

Your 'AT Internet' user login

ATpassword

Your 'AT Internet' password login

space

Analysis space

start_date

Start date YYYY-MM

end_date

End date YYYY-MM

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.

Value

week_set extract the data you need from 'AT Internet' database, according to parameters you entered and then provides a dataset.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## 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 <- week_set(ATuser, ATpassword, space, start_date, end_date, dim_source, dim_device, dim_level2, segment, pagination)

## End(Not run)

remibacha/atInternetR documentation built on May 14, 2019, 5:16 a.m.