Topic on Extension talk:Matomo

Summary by Seb35

Was a bug in MediaWiki 1.39 and 1.40, fixed in MediaWiki 1.39.5 and 1.40.1, so a minor upgrade of MediaWiki is a solution. Else this commit is a temporary fix of the extension Matomo.

Nanash (talkcontribs)

In my console I have thise error : "The method setSiteId is registered more than once in "_paq" variable." In my source code the matomo script is present twice.

And in the matomo dashboard, all pageviews are counted two times...


I use MW 1.39 and last matomo version.


An idea ?

Nanash (talkcontribs)

As a temporary "fix", I copy-paste once the script code in my skin php code and disable the extension. Work fine. But not really elegant...

Urfiner (talkcontribs)
Nanash (talkcontribs)

Thanks for the info. Finally I used the Header scripts extension to manage all this from Local settings. It works like a charm and it suits me.

FunkyBeats99 (talkcontribs)

This commit fixes the problem (just tested on MW 1.39). Carefull though, the extension is apparently not very well-maintained.

Seb35 (talkcontribs)

It was a bug in MediaWiki itself (T345039), it is fixed in MediaWiki 1.39.5 and 1.40.1. Else the mentionned commit works also if you prefer fix only the extension Matomo.