From app backend or other sources

You can use the /api/v0/count API endpoint to send pageviews from essentially anywhere, such as your app’s middleware.

A simple example from curl:

token=[your api token]

curl -X POST "$api/count" \
    -H 'Content-Type: application/json' \
    -H "Authorization: Bearer $token" \
    --data '{"no_sessions": true, "hits": [{"path": "/one"}, {"path": "/two"}]}'

The API documentation contains detailed information and more examples.

Questions or problems?

Feel free to get in touch if you’ve got any questions or having any problems; a lot of times they can be resolved without too much problems.

Ways to contact me: show