clarity
clarity copied to clipboard
React - Sessions, Distinct Users, Pages Per Session confusion
We have started injecting clarity for our developing react app. It works great so far and love the heatmaps and recordings. However... with a single user just navigating between pages over a minute period... it resulted in: 14 distinct users when actually 1 14 sessions when it was just the 1 user going to different pages within the application 1 Page Per Session when it was more than one page
My assumption is it would be 1 distinct user, 1 session and multiple pages per session?
fix here for a similar issue: https://github.com/microsoft/clarity/pull/170
@stergosjk we have the same problem on our end, really confusing and chaotic.
@swaathee How should I implement the fix #170 when my implementation is not providing verisions? https://docs.microsoft.com/en-us/clarity/clarity-setup
<script
type="text/javascript"
dangerouslySetInnerHTML={{
__html: `(function(c,l,a,r,i,t,y){
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
})(window, document, "clarity", "script", "XXXXXXXX");`,
}}
></script>