Hi,
Is it possible to use a tracking code from matomo in combination with Cumulusutils?
Welcome to the Cumulus Support forum.
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
Use of matomo
Moderator: HansR
- HansR
- Posts: 6926
- Joined: Sat 20 Oct 2012 6:53 am
- Weather Station: GW1100 (WS80/WH40)
- Operating System: Raspberry OS/Bookworm
- Location: Wagenborgen (NL)
- Contact:
Re: Use of matomo
Not at the moment, but if you give me the information of what is needed it should not be too difficult to implement. So for analytics then there would be an identifier (Google or Matomo) and the Id (I imagine). For Google I know the code needed, for Matomo you would have to supply it.
Hans
https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
- Stigian
- Posts: 68
- Joined: Sun 22 Aug 2021 3:56 pm
- Weather Station: 6242EU Vantage Vue
- Operating System: Debian 12 (Bookworm)
- Location: Vaassen (NL)
- Contact:
Re: Use of matomo
Hi Hans,HansR wrote: ↑Sun 05 Nov 2023 1:55 pm Not at the moment, but if you give me the information of what is needed it should not be too difficult to implement. So for analytics then there would be an identifier (Google or Matomo) and the Id (I imagine). For Google I know the code needed, for Matomo you would have to supply it.
That's going to be a script;
Code: Select all
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://www.weerstation-vaassen.nl/matomo/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '1']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->
- HansR
- Posts: 6926
- Joined: Sat 20 Oct 2012 6:53 am
- Weather Station: GW1100 (WS80/WH40)
- Operating System: Raspberry OS/Bookworm
- Location: Wagenborgen (NL)
- Contact:
Re: Use of matomo
OK.
I'll implement parameters StatisticsType being [Google | Matamo] and then the GoogleStatsId or the MatamoTrackerUrl and MatamoSiteId. For the user to edit in cumulusutils.ini. Google stats will be the default.
I assume this is the generic code for a page.
You have to remember that there is only one page in CUtils website so the statistics will only show loads and reloads, not clicks on reports. If you want to register report loads (e.g. a click on a gauge or a menu choice) then for Google I generate a gtag event registration call. Does Matamo have a similar call for registering specific events? If so, howto
I see you are Dutch so I suggest we exchange this generic info in this thread. Once it is ready and your 32 days have past so the site will generate, we can start debug and finetune this. For that phase I propose we do it in Dutch via PM or email.
I'll implement parameters StatisticsType being [Google | Matamo] and then the GoogleStatsId or the MatamoTrackerUrl and MatamoSiteId. For the user to edit in cumulusutils.ini. Google stats will be the default.
I assume this is the generic code for a page.
You have to remember that there is only one page in CUtils website so the statistics will only show loads and reloads, not clicks on reports. If you want to register report loads (e.g. a click on a gauge or a menu choice) then for Google I generate a gtag event registration call. Does Matamo have a similar call for registering specific events? If so, howto
I see you are Dutch so I suggest we exchange this generic info in this thread. Once it is ready and your 32 days have past so the site will generate, we can start debug and finetune this. For that phase I propose we do it in Dutch via PM or email.
Hans
https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
- Stigian
- Posts: 68
- Joined: Sun 22 Aug 2021 3:56 pm
- Weather Station: 6242EU Vantage Vue
- Operating System: Debian 12 (Bookworm)
- Location: Vaassen (NL)
- Contact:
Re: Use of matomo
That would be nice. The code is the same for all pages. Matomo can also handle tags but not so interesting for me. All I would like is insight into visitor numbers. Right now I am still running in simulator mode. The reason is to try out all the features before I hook my weather station to it.