Some examples of how to use analytics to collect various events on websites, servers, and apps.
To collect a custom click you can add the following to the anchor tag:
If you want to collect a custom page view, like a successful checkout on the invoice page, you can add anywhere on the page:
All of our data gets stored in the database in a JSONField called "data". If you want to send more details with events you can add more data key-value pairs. As an example:
You can technically collect anything from anywhere by sending a POST request to the server with JSON data in the body. Make sure you include a valid collectorId, event, and data. As an example:
Sometimes you may want to collect events from a server and you can send events using any http request library. For example, if using "requests" on Python: