Unable to track session recording with nodejs-piwik-proxy

I follow the instructions from GitHub - mutil/nodejs-piwik-proxy: Nodejs proxy to hide piwik URL to my ReactJs Web Application it is working and tracking my page views.

But it is failing in session recording, getting an error in console as Uncaught SyntaxError: Unexpected token '<' and the url is https://examplesite.com/piwik/plugins/HeatmapSessionRecording/configs.php?idsite=1&trackerid=XYZ123&url=https%3A%2F%2Fabc.com%2Fabc%2Fxyz

Please provide any documentation/solution to hide my secret url in my React Js Web Application like http://matomo.org/faq/how-to/faq_132/

Hi,

nodejs-piwik-proxy is not developed by the Matomo team, so you probably want to contact the author or invite him to answer here.

But it seems like the plugin only forwards the matomo.php request, but session recording depends on the visitor browser loading piwik/plugins/HeatmapSessionRecording/configs.php.

@Lukas ,I logged an issue in github too, it seems that it has been developed 6 years ago. Is there any working solution to enable the same with the current cloud version for ReactJs Application?

I am only aware of

which uses PHP.

What is the significance of token_auth? It seems what ever the query string passed to the website url is appended to the secret url is enough I guess!!??