Timeseries of custom events using the stats API #3495
Closed
salomvary
started this conversation in
Anything Else
Replies: 2 comments
-
This is the answer we got ftom Plausible support:
This is my attempt on a fix: #3505 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Events are now available in |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi folks,
I would like to use the stats API to get timeseries for pageviews and custom events.
For pageviews, this works fine:
GET https://plausible.io/api/v1/stats/timeseries?site_id={{SITE_ID}}&period=custom&date=2023-11-01,2023-11-07&metrics=pageviews&interval=date
However, this does not, for events (I get
"** (CaseClauseError) no case clause matching: :events"
back):GET https://plausible.io/api/v1/stats/timeseries?site_id={{SITE_ID}}&period=custom&date=2023-11-01,2023-11-07&metrics=events&interval=date
...the error is reasonable, because
events
is not documented as possiblemetrics
parameter of/timeseries
, but I do not understand the reason. It works fine with/breakdown?metrics=events
, which suggests the date is there, but not exposed.Am I missing something? Is this a missing feature, and should I file a feature request or send a pull request? Or a limitation I am not aware of?
If there are other ways of getting a timeseries of custom events from the API, I'm all ears :)
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions