Tracking User Activity¶
You can configure Airflow to route anonymous data to Google Analytics, Segment, Metarouter, or Matomo.
Edit airflow.cfg
and set the webserver
block to have an analytics_tool
and analytics_id
(and analytics_url
if you’re using matomo
):
[webserver]
# Send anonymous user activity to Google Analytics, Segment, or Metarouter
analytics_tool = google_analytics # valid options: google_analytics, segment, metarouter, matomo
analytics_id = XXXXXXXXXXX
analytics_url = https://your-matomo-instance.example.com # only required for Matomo
Note
You can see view injected tracker html within Airflow’s source code at
airflow/www/templates/airflow/main.html
. The related global
variables are set in airflow/www/templates/app.py
.
Note
For more information on setting the configuration, see Setting Configuration Options