Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for the Events API #1

Open
3 tasks
andrerfcsantos opened this issue Nov 7, 2021 · 1 comment
Open
3 tasks

Add support for the Events API #1

andrerfcsantos opened this issue Nov 7, 2021 · 1 comment

Comments

@andrerfcsantos
Copy link
Owner

Recently Plausible introduced the Events API that allows custom events to be sent to Plausible. go-plausible should also support this endpoint.

Notes about this task

  • Since this request requires a domain, this probably should be implemented as method on Site , which contains the domain in the id field
  • This endpoint requires information to be sent in the body of the request. The method client.acquireRequest can be used for this, where formVals QueryArgs represents the body data.
  • This endpoint also requires some extra headers compared to the other requests, as mentioned on the Plausible docs.

Tasks

  • Implement the functionality for the new kind of request
  • Write tests for the new functionality
  • Update the documentation
till added a commit to till/go-plausible-fork that referenced this issue Feb 21, 2024
@till
Copy link

till commented Apr 14, 2024

@andrerfcsantos hey 👋🏼 — any thoughts on my PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants