Page MenuHomePhabricator

Setup a Matomo account for DicoAdo to allow a migration from Google Analytics
Closed, ResolvedPublic

Assigned To
Authored By
valerio.bozzolan
Mar 30 2022, 1:22 PM
Referenced Files
F35289026: Screenshot_2022_06_30_122547.png
Jun 30 2022, 10:27 AM
F35287436: image.png
Jun 29 2022, 7:54 PM
F35039642: image.png
Apr 5 2022, 1:33 PM
Tokens
"Yellow Medal" token, awarded by DSwissK."Love" token, awarded by valerio.bozzolan.

Description

DicoAdo's creators have expressed some interest in trying Matomo (FLOSS web monitoring software) to be able to potentially suppress Google Analytics in the future.

The tool was proposed also to do A/B performance testing before and after the migration in WMCH-Infrastructure.

For this, it could be nice to create a domain like matomo.dicoado.org and set it as a trusted domain just like matomo.wikimedia.ch.

BIND9 entry in the dicoado.org zone:

matomo IN A 89.207.237.60

Event Timeline

Hi @DSwissK! Is Matomo still interesting (the open source web tracker)? It could be very useful to adopt it, to do A/B tests and have a perfect migration!

I think that @Raphoraph has enough privileges to do this operation, but maybe we can we can help you!

Thank you so much again!

Hello @valerio.bozzolan, thank you for the suggestion.

We're indeed still very interested in using Matomo to be able to use a more respectful software than Ganalytics. :)

Thank you again @DSwissK!

Hi @Raphoraph, what do you think about? Can I ask you if you are the DNS administrator of DicoAdo.org?

In order to proceed we would like to help you with the setup of a sub-domain called matomo.dicoado.org that should point to the IP 89.207.237.60.

Available for clarifications!

Hi,
I'm very happu about installing Matomo ! This will be better since therefore no cookies are needed.

In order to proceed we would like to help you with the setup of a sub-domain called matomo.dicoado.org that should point to the IP 89.207.237.60.

Done I guess, but we need to wait for it to propagate (TTL is one hour for everything).

Well it's done : http://matomo.dicoado.org/
Nice to meet you, default page !
Do you need anything to set-up the SSL on it ?

Well done! Tomorrow morning I will be able to share with you the Matomo code and Matomo DicoAdo credentials. Everything is ready on your side here.

valerio.bozzolan updated the task description. (Show Details)

Hi @Raphoraph!

This is the Matomo tracking code that can be added in the webpages of fr.dicoado.org:

<!-- Matomo -->
<script type="text/javascript">
  var _paq = window._paq = window._paq || [];
  /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
  _paq.push(["setCookieDomain", "*.dicoado.org"]);
  _paq.push(['trackPageView']);
  _paq.push(['enableLinkTracking']);
  (function() {
    var u="https://matomo.dicoado.org/";
    _paq.push(['setTrackerUrl', u+'matomo.php']);
    _paq.push(['setSiteId', '2']);
    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
    g.type='text/javascript'; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
  })();
</script>
<noscript><p><img src="https://matomo.dicoado.org/matomo.php?idsite=2&amp;rec=1" style="border:0;" alt="" /></p></noscript>
<!-- End Matomo Code -->

Do you think that it's everything you may need? Do you need something to put it online?

Looks like it's working great !

image.png (308×1 px, 18 KB)

Thanks !

Hello, why aren't we using the Matomo extension directly ?

Because I didn't know there was one.

That being said, why install it since it's working and it's more flexible (we can use it for anything that would go into head)?

The Matomo extension is nice but the HeadScript extension is nice too.

Thank you again for that!

the matomo extension is easier to configure I guess (for non cookie usage or things like this)

Hi @valerio.bozzolan
Matomo isn't updating any stats since 23rd June midday, despite getting hits (see visits in real-time). Would you happen to know why ?
See screenshot :

image.png (1×736 px, 51 KB)

Thank you !

valerio.bozzolan raised the priority of this task from Medium to High.

I've inspected this problem.

It seems, after every Let's Encrypt SSL renewal on server members2.wikimedia.ch (hosting Matomo and other stuff), we were missing an Apache2 configuration reload (to read new certificates). This problem was causing at least:

  • end-users problems connecting to Matomo (causing low visits collected)
  • server problems connecting to Matomo (skipping reports generation)

As quick fix I've now reloaded apache2 and manually run the Matomo's archiviation process and everything seems "less flat" now:

Screenshot_2022_06_30_122547.png (196×812 px, 35 KB)

As definitive fix, I've registered this renewal hook:

certbot renew --deploy-hook "systemctl reload apache2"

Sorry for this stats hole and thank you for reporting this!

In my opinion this was causing problems in https://members.wikimedia.ch/ as well, but it seems nobody reported the thing. Marked as resolved but feel free to reopen.