@MaghSamana opened this Issue on June 4th 2021


I was getting strange metrics sometimes, and today I was able to locate the problem in real-time. My site offers PDF documents for download in a section. I had noticed high DOM times (both processing & completion) when visitors downloaded some of those, in the past.

Today, I had one visitor spending almost 2 hours there, browsing that section. The visitor downloaded several PDFs and also printed some articles of that section (not PDF prints, just regular content). I saw the DOM metrics rise very high, reaching almost 40 seconds, and only due to that one visit. The visitor used Chrome 91.0 and Windows 10.

These particular pages load fast, and mostly contain text. In general, this problem of high DOM metrics appears to be associated with visitors who also download. I do not know why, but I happened to witness it today in real-time with only 1 visit.

Visitor info and summary & the metrics of the last days where there was an increase in visitors who downloaded PDFs. The last bar is from today, and is only from one visit - I saw the bar increase from 3.5s to almost 30s and then to 40s.


Our Environment

Matomo version: 4.3.1
PHP version: 7.4.19
Server Operating System: Apache

@diosmosis commented on June 5th 2021 Member

Hi @MaghSamana, if you were to perform the same actions as this user, would you see the same performance metrics show up in Matomo (in other words, is the problem reliably reproducible)? Can you see what browser, os, internet provider the specific user is using?

@MaghSamana commented on June 5th 2021

The visitor used Chrome 91.0 and Windows 10 (and 1366x768). I haven't added internet provider tracking.

I will try to reproduce this tonight, and get back to you.

@MaghSamana commented on June 9th 2021

After various tests, and with various browsers, the problem of extremely high DOM is certainly tied to Chrome browser v. 91.0.

Both in my tests, and in the visits with excessive DOM (from 20 secs, reaching as high as 80secs the more downloads there are), it was always this particular browser version.

Browsers like Safari, Edge, do not reproduce this. I got partial reproduction with Firefox 89 - high DOM but not as much (10-12secs at most).

@diosmosis commented on June 9th 2021 Member

Hi @MaghSamana, thanks for testing this! Would you be able to reproduce this and collect the network requests made to your matomo.php instance, then share them here? Or if you're comfortable sharing the website this is happening on, we can take a closer look (email me at dizzy@innocraft.com if so).

@MaghSamana commented on June 14th 2021

I keep seeing these bizarre metrics again and again. Anyway, I sent you an email, and let's see what could be the issue here.

@diosmosis commented on July 14th 2021 Member

Based on communication w/ @MaghSamana, this is definitely some kind of bug, though I'm still not sure what the cause is. I'll keep looking.

@diosmosis commented on July 27th 2021 Member

Finding the cause of the issue is proving to be rather difficult. It seems to be due to a single visitor that downloads PDF documents.

The quickest way to solve this would be to add segments for page performance dimensions. This would allow users to ignore values that are greater than a threshold, or find visits with abnormal values to figure out why they are like that. As it is now, it's extremely difficult to find this information, having to query the log tables directly.

@tsteur commented on July 28th 2021 Member

👍 We'll look further into it once the issue is scheduled. We'll probably wait first to see if other users are having a similar issue. Possible it's an issue with that Chrome version. For the segments we have an issue here: https://github.com/matomo-org/matomo/issues/10202

And also created https://github.com/matomo-org/matomo/issues/17824

Powered by GitHub Issue Mirror