You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Disable all performance tracking. This feature required for single page application (SPA).
Current Behavior
With disablePerformanceTracking all page views contains old page performance. Without disablePerformanceTracking first request contains not complete page performance (without DOM info), second request contains full page performance and other next requests does not contain page performance data.
Possible Solution
Additionally check variable configPerformanceTrackingEnabled before calling appendAvailablePerformanceMetrics(request).
Steps to Reproduce (for Bugs)
Create single page application;
Push disablePerformanceTracking;
Track page view — page performance is sent;
Change window.location;
Track page view — old page performance is sent.
Context
SPA without page reload.
Your Environment
Matomo Version: 4.2.0
PHP Version: PHP/7.4.15
Server Operating System: Docker image matomo:4.2.0
Additionally installed plugins: none
The text was updated successfully, but these errors were encountered:
tsteur
added
Bug
For errors / faults / flaws / inconsistencies etc.
and removed
Potential Bug
Something that might be a bug, but needs validation and confirmation it can be reproduced.
labels
Feb 25, 2021
Hi @ufoproger thanks for reporting this bug and the suggestion for the solution 👍 very appreciated. I've created the PR in #17275 and the fix should be included in the 4.3.0 release (not the next 4.2.1 release)
Expected Behavior
Disable all performance tracking. This feature required for single page application (SPA).
Current Behavior
With disablePerformanceTracking all page views contains old page performance.
Without disablePerformanceTracking first request contains not complete page performance (without DOM info), second request contains full page performance and other next requests does not contain page performance data.
Possible Solution
Additionally check variable
configPerformanceTrackingEnabled
before callingappendAvailablePerformanceMetrics(request)
.Steps to Reproduce (for Bugs)
disablePerformanceTracking
;window.location
;Context
SPA without page reload.
Your Environment
Server Operating System: Docker image matomo:4.2.0
The text was updated successfully, but these errors were encountered: