Python snippet for Tracking HTTP API

python function for basic usage tracking Matomo (Python 3). Just add a line at the right places in your python-based application / web app, and you’ll be able to get basic usage analytics.

2 Likes

Sure, you can use the provided Python function to send a simple usage ping to your self-hosted Matomo analytics site. It allows you to track usage without relying on Google analytics. You can skip the operating system metrics part if it’s not relevant to your use case.