How can I track custom events sent via "/api/event" api endpoint? #4651
Replies: 1 comment
-
I figured it out. I had to create a custom event goal on plausible-ce site, using the same value I have used for the
|
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
-
I have created a sample react-vite app to test the self hosted plausible-ce (using docker). I can connect to the plausible-ce site (hosted locally) and see events come up when I use
form submission
feature. However, I wanted to try out the event api (as per the document here https://plausible.io/docs/events-api#post-apievent) and see if I can see the captured events in my plausible dashboard.When making POST request to this endpoint (using axios), I get the 202 Accepted response (as outlined in the doc), but in the plausible dashboard, I am not sure how to view these events. Plausible recommends specially named CSS classes for HTML elements for tracking and GOAL setting, but what should be the case for api calls? Can someone please advice? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions