vince
vince copied to clipboard
Possibility to have sources on timeseries?
Is it possible to retrieve the time series from the sources? It might be cool to see how many people come each day by source, in addition to the total.
Example :
URL : {{ANALYTICS_URL}}/api/v1/stats/timeseries?site_id={{ANALYTICS_SITE_ID}}&period=6mo&metrics=visitors,visits,pageviews,views_per_visit,bounce_rate,visit_duration&property=source
Response :
{
"results": [
{
"timestamp": "2024-03-25T00:00:00Z",
"values": [
{
"key": "twitter",
"value": {
"bounce_rate": 1,
"pageviews": 22,
"views_per_visit": 1.8333333333333333,
"visit_duration": 132.03175,
"visitors": 10,
"visits": 12
}
},
{
"key": "threads",
"value": {
"bounce_rate": 1,
"pageviews": 22,
"views_per_visit": 1.8333333333333333,
"visit_duration": 132.03175,
"visitors": 10,
"visits": 12
}
},
...
]
},
{
"timestamp": "2024-03-24T00:00:00Z",
"values": [
{
"key": "twitter",
"value": {
"bounce_rate": 1,
"pageviews": 22,
"views_per_visit": 1.8333333333333333,
"visit_duration": 132.03175,
"visitors": 10,
"visits": 12
}
},
{
"key": "threads",
"value": {
"bounce_rate": 1,
"pageviews": 22,
"views_per_visit": 1.8333333333333333,
"visit_duration": 132.03175,
"visitors": 10,
"visits": 12
}
},
...
]
},
...
]
}
Currently it is not possible. Basically you are combining three concepts into a single api call.
- breakdown: ( by source)
- aggregates : ( the computed
bounce_rateetc) - timeseries :( by time segment)
Not that it is not possible to add this feature, but it is beyond the scope of vince at the moment. My goal is to stabilise existing features before I add new ones.