[GH-ISSUE #984] [QUESTION] Matomo Analytics in Whoogle? #608

Closed
opened 2026-02-25 20:36:08 +03:00 by kerem · 3 comments
Owner

Originally created by @Johnnii360 on GitHub (Apr 10, 2023).
Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/984

Hi guys!

Is there a way to insert a Matomo tracking code into Whoogle? My Whoogle instance run with docker-compose and I already tried to edit the files in app/templates/.

My goal is just to track the visitors only without any search string to see how many people is using my Whoogle instance. It's also doable via importing logs to Matomo but I want to avoid this.

Originally created by @Johnnii360 on GitHub (Apr 10, 2023). Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/984 Hi guys! Is there a way to insert a Matomo tracking code into Whoogle? My Whoogle instance run with `docker-compose` and I already tried to edit the files in `app/templates/`. My goal is just to track the visitors only without any search string to see how many people is using my Whoogle instance. It's also doable via importing logs to Matomo but I want to avoid this.
kerem 2026-02-25 20:36:08 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@benbusby commented on GitHub (Apr 13, 2023):

What did you try editing in app/templates? Whoogle mainly uses index.html for the home page, and display.html for search results. I've never used Matomo, but I'm assuming you could just insert their script into the header of one of those?

<!-- gh-comment-id:1507541748 --> @benbusby commented on GitHub (Apr 13, 2023): What did you try editing in `app/templates`? Whoogle mainly uses [`index.html`](https://github.com/benbusby/whoogle-search/blob/9d9022ed9934c409095348641fef911f731d9de6/app/templates/index.html) for the home page, and [`display.html`](https://github.com/benbusby/whoogle-search/blob/9d9022ed9934c409095348641fef911f731d9de6/app/templates/display.html) for search results. I've never used Matomo, but I'm assuming you could just insert their script into the header of one of those?
Author
Owner

@Johnnii360 commented on GitHub (Apr 14, 2023):

What did you try editing in app/templates? Whoogle mainly uses index.html for the home page, and display.html for search results. I've never used Matomo, but I'm assuming you could just insert their script into the header of one of those?

Hi Ben! I already did but when I visit the page the code isn't set in the sourcecode.

<!-- gh-comment-id:1509068365 --> @Johnnii360 commented on GitHub (Apr 14, 2023): > What did you try editing in `app/templates`? Whoogle mainly uses [`index.html`](https://github.com/benbusby/whoogle-search/blob/9d9022ed9934c409095348641fef911f731d9de6/app/templates/index.html) for the home page, and [`display.html`](https://github.com/benbusby/whoogle-search/blob/9d9022ed9934c409095348641fef911f731d9de6/app/templates/display.html) for search results. I've never used Matomo, but I'm assuming you could just insert their script into the header of one of those? Hi Ben! I already did but when I visit the page the code isn't set in the sourcecode.
Author
Owner

@Johnnii360 commented on GitHub (Apr 24, 2023):

Found a solution by fetching visitors via server log analysis: https://matomo.org/log-analytics/

<!-- gh-comment-id:1520399874 --> @Johnnii360 commented on GitHub (Apr 24, 2023): Found a solution by fetching visitors via server log analysis: https://matomo.org/log-analytics/
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/whoogle-search#608
No description provided.