arp242/goatcounter

Sending events from a backend

lpil opened this issue · 2 comments

lpil commented

Hello there!

We have some events that get emitted by the backend of our application that we wish to track in goatcounter.

I'm concerned that as these requests will not be coming from a browser they may get filtered out by goatcounter, thinking they are from bots.

Might this happen? If so, is it possible to prevent it?

Thanks
Louis

arp242 commented

There's an API for this: https://www.goatcounter.com/help/backend

List of fields you can set: https://www.goatcounter.com/api2.html#post-/api/v0/count (click "schema" and then "multiline description" ... not a huge fan of how this renders, but it's the least-worst tool I could find).

You can also use the goatcounter import CLI: https://www.goatcounter.com/help/logfile – this is just a front-end for the API.

lpil commented

Wonderful, thank you very much.