Closed (fixed)
Project:
Matomo Analytics
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
11 Sep 2025 at 21:48 UTC
Updated:
7 Dec 2025 at 23:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mmbkComment #3
mmbkComment #5
mmbkComment #6
mmbkHmm… I don't understand that error, locally the test succeeds.
The test tests whether the matomo.js is loaded, if not the whole module should not work, but in my project, everything is tracked correctly.
Comment #7
jamesoakleyWhat error did you get? I'm not seeing it
Are all of the changes in this patch to do with Drupal 11 readiness, or are some of them other pieces of tidying up.
I'm looking at sections of the patch like
and
Comment #8
mmbkI changed all things that were complained by rector, so yes, it's D11 related.
The error was in the pipeline
Comment #9
jamesoakleyI have applied this patch, and was able to upgrade from Drupal 10 to Drupal 11. The module correctly serves up the tracking code in the HEAD area of the HTML, and the admin area works fine.
I'd say that this patch can safely be applied to 8.x-1.x, and a new release tagged as compatible with Drupal 11.
Then people do not need for the 2.x branch of this module to be ready before they can use Matomo with Drupal 11.
Comment #10
j-leeThe error from the test says:
I don't think, this has to do with the MR.
Comment #11
jamesoakleyAh, I see.
That's because, if you look at the tracking code to insert given by Matomo, you get this snippet:
So the string
"/matomo/js/matomo.js"won't be found in the page HTML.This module follows that, and inserts
u+'matomo.js'into the page (it's inmatomo.module). Looking through the commit history, that's been so at least as far back at 2019, then I stopped looking.So the problem is the test, not the code. As far as I can see, that's also been the way it is for ages.
So I doubt this test failure is new, and it certainly isn't something that works fine with Drupal 10 but fails for Drupal 11.
So I'd still say that the 8.x-1.x branch of this module can safely be released to support Drupal 11.
Comment #12
j-leeThanks jamesoakley. Still RTBC. Maybe a maintainer can look into this?
Would be nice to have this in a release.
Comment #13
c-logemannIt's wrong that there is no D11 version of Matomo module. But this in in Branch/Version 2.x which is currently not stable yet. I think the plan was to make Version 2 stable and mark 8.1.x unsupported. Because you did this probably not needed extra work on the old branch it make sense to take a look into it. But even if we commit and maybe do a new stable release did not mean that we will support this version longer when version 2.x gets a stable release.
Comment #14
c-logemannIn any case you are invited to help e.g. with testing to get version 2 stable.
Comment #15
c-logemannComment #16
c-logemann@mmbk Next time please go on with the existing issue. It was not needed to create this one.
Comment #17
jamesoakleyHi Carsten, thanks for reviewing this.
I can see that the 2.x branch is the one that you want to focus on, and that it makes no sense to work on two branches at once.
When I said there is no D11 version of Matomo, I meant no usable version that allows a site maintainer to bring their site over to Drupal 11. If I recall correctly, the first tagged release of Matomo for D10 came some time after D10 was released, because the plan was that 2.x would be the Drupal 10 version. With Drupal 9 now unsupported, it's a good thing that we have a 1.x version that supports Drupal 10.
We're now over half-way through the period between the release of Drupal 11 and Drupal 12, and in just over a year's time Drupal 10 will drop off. Who knows how long the remaining work to get 2.x released will take, but as a maintainer of several sites I wouldn't want to have to rush a D10→D11 migration at the last minute.
I'm sure, once the 2.x branch has a stable release, there will be no need to keep the 1.x branch supported. I haven't looked at the main additional features coming in 2.x, but the only reason I'm using 1.x not 2.x is because I need a stable release to adopt.
Happy to help get version 2 stable. Is there a meta issue that outlines the roadmap and the remaining tasks?
Comment #18
c-logemann@jamesoakley I was not involved in the last steps to bring matomo module forward. So I only reviewed the logic of this issue and did not look into the code yet. I just found this issue (again): #3252606: [X.0.x] Roadmap.
After reading it I think it will take a little bit longer to get it stable. So getting D11 compatibility in version 1 is more important than I thought. I try to check and commit in the next days.
Comment #19
jamesoakleyMuch appreciated, thank you.
Comment #20
jamesoakleyComment #21
j-leeGreat to hear this. Thank you.
Comment #22
sense-designThanks Carsten, we are also waiting with the Drupal upgrade because of Matomo.
Comment #23
c-logemannComment #25
c-logemannThanks to everybody helping on this. Before creating next stable release I need to review last changes and maybe add some other bugfixes for problems especially for those blocking my manual tests today.