Description Usage Arguments Details Value Examples
View source: R/matomo_media_video_resources.R
Returns the media analytics for video resources.
1 2 3 4 5 6 7 8 9 10 |
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 |
This function expects the hostname and token to be set as environment variables.
A list containing a data frame with the requested analytics values.
1 2 3 4 | Sys.setenv(MATOMO_HOST = "https://demo.matomo.org")
Sys.setenv(MATOMO_TOKEN = "anonymous")
matomo_media_video_resources(idSite = 62)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.