Tracking visitors of my Birdnet-Pi station #510
-
Hi, I wish to know the origins of my eventual visitors of my Birdnet-Pi. For that I will install Umami https://umami.is/ on my server. I need to insert code in the head section of my generated Birdnet-Pi website. Could you tell me where is the page, where to insert that code? Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 12 replies
-
You can insert any header code in |
Beta Was this translation helpful? Give feedback.
-
I use Matomo (formerly Piwik) for visitors tracking and have inserted the code in views.php before the end body tag. |
Beta Was this translation helpful? Give feedback.
-
Finally I decided not to use Matomo, I prefer not to track users, thinking about this I decided to get rid of Matomo in my Hugo blog too :-) |
Beta Was this translation helpful? Give feedback.
You can insert any header code in
/home/pi/BirdNET-Pi/homepage/views.php
. There may be a catch in that you won't be able to see if users visit specific pages, since something like /todays_detections.php actually has the HTTP request of /views.php?view=Today's Detections (so technically the same file name), but maybe that's something your software will deal with. Just a heads up, in case you come across that scenario. :)