matomo_media_video_resources: Query the Matomo Media Analytics for video resources

Description Usage Arguments Details Value Examples

View source: R/matomo_media_video_resources.R

Description

Returns the media analytics for video resources.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
matomo_media_video_resources(
  idSite = NULL,
  period = "day",
  date = "yesterday",
  segment = NULL,
  idSubtable = NULL,
  secondaryDimension = NULL,
  expanded = NULL,
  ...
)

Arguments

idSite

The id of your website.

period

The period you request the statistics for. Can be any of: day, week, month, year or range.

date

The date you request the statictics for. Standard format = YYYY-MM-DD or today or yesterday.

segment

Defines the Custom Segment you wish to filter your reports to.

idSubtable

The id of a possible subtable.

secondaryDimension

Secondary dimension is the dimension used in the sub-table of the Event report you are requesting.

expanded

If is set to 1, the returned data will contain the first level results, as well as all sub-tables.

...

Possible further options to the query in the format variable = value. For a list of possible options see: https://developer.matomo.org/api-reference/reporting-api

Details

This function expects the hostname and token to be set as environment variables.

Value

A list containing a data frame with the requested analytics values.

Examples

1
2
3
4
Sys.setenv(MATOMO_HOST = "https://demo.matomo.org")
Sys.setenv(MATOMO_TOKEN = "anonymous")

matomo_media_video_resources(idSite = 62)

ebbertd/matomoR documentation built on Oct. 25, 2021, 2:09 p.m.