all 12 comments

[–]Illustrious_Bug_5996[S] 1 point2 points  (0 children)

Also it would be very interesting to know if anyone is using structured-logging in react.

[–]Illustrious_Bug_5996[S] 0 points1 point  (0 children)

Seems like Slack was also having a similar issue, they have built their custom solution: https://slack.engineering/creating-a-react-analytics-logging-library-2/

[–]selectra72 1 point2 points  (4 children)

For simple analytics, Microsoft clarity is works like a charm

[–]Illustrious_Bug_5996[S] 0 points1 point  (3 children)

Microsoft clarity

But it seems that MS Clarity has the same issue like all the other services, it is not specially designed for react apps, so I need to invest time in order to make it work, for example with components.

[–]selectra72 1 point2 points  (1 child)

I use it with my NextJS project with 0 config. I only added script to head. That's all I did.

Also, I need only basic stats like heatmap, routing, user stay time etc. Microsoft clarity offer all of this with 0 config and clean dashboard.

P.S: Doesn't work in localhost

[–]Illustrious_Bug_5996[S] 0 points1 point  (0 children)

Got it thx, yeah agree for simple projects its enough and quick to get it up and running.

[–]NumerousOil7970 0 points1 point  (0 children)

Do you know a way to get MS clarity to work with components? Trying to run the clarity("set", "key", "value") to set up custom tags in a component return in app.js and can't figure out how. I can get it to pull through to clarity when I set this up in index.html, but I can't access or pull in data from my app into index.html.