| build_query | R Documentation |
Build the query
build_query( date_from, date_to, website_id, columns, filters = NULL, metric_filters = NULL, offset = 0, max_lines = 0 )
date_from |
Start date of query |
date_to |
End date of query |
website_id |
website_id from piwik |
columns |
tibble containing columns and transformations (metrics and dimensions) |
filters |
list containing filter, best built by
|
metric_filters |
list containing filter, best built by
|
offset |
offset |
max_lines |
limit |
query as list
columns <- tibble::tribble(
~column, ~transformation,
"event_url", "to_path",
"event_url", "to_domain",
"website_name", "",
"timestamp", "",
"timestamp", "to_hour_of_day",
"page_views", ""
)
build_query(lubridate::ymd("2021-01-01"), lubridate::ymd("2021-01-19"),
"xxx", columns)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.