-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Matomo initilization hangs when Heatmap & Session Recording plugin is enabled on Matomo server #37
Comments
Upon further investigation we determined that the Ultimately, for our own project we resolved the issue by following the instructions for single-page application tracking with the Heatmaps & Session Recording plugin, using By the time we manually implemented these measures there didn't seem much point in using ngx-matomo library anymore so we're currently connecting to Matomo without it. I'm happy to share some code snippets but I'm not sure I'm ready to write a pull request as I don't know how well our workarounds will work for general cases. |
Hey @ddelabru, sorry to bring this up again but I'm facing a similar issue and I don't know if it may be related to this one. |
@alvaromartmart |
When the the Heatmap & Session Recording plugin is enabled on the Matomo server, the ngx-matomo initialization method retrieves and attempts to execute a
configs.php
file from the Matomo server containing a single line of JavaScript which class a method of thePiwik
object. This call tends to hang indefinitely, driving up CPU usage and crashing our Angular app. Indeed, if I simply try to inspect thePiwik
object from the JavaScript console in Firefox while this is happening, that also hangs until Firefox allows me to forcefully stop the script; once I do that the details of thePiwik
object do print to the console. This happens only when the plugin mentioned above is enabled.The text was updated successfully, but these errors were encountered: