microsoft / clarity

A behavioral analytics library that uses dom mutations and user interactions to generate aggregated insights.
https://clarity.microsoft.com
MIT License
2.16k stars 215 forks source link

Cannot read properties of undefined (reading 'sequence') #714

Open deepankarappricus opened 3 days ago

deepankarappricus commented 3 days ago

I integrated MS Clarity with my project on multiple servers. When I am trying to see recording, getting the above mentioned error. Here is my code below:

(function(c,l,a,r,i,t,y){ const hostnameToIdMap = { 'dev.abc.com': 'p1 fdkbnf', 'abc.us': 'jxsyb dpi', 'abc08.com': 'jx 4vf5ax', 'abc05.com': 'jg6j7i f0', 'abc02.com': 'jg 3qfbcw', 'abc.com': 'i5 gfoxlw' }; const currentHostname = window.location.hostname; i = 'p1 fdkbnf'; for (const [key, value] of Object.entries(hostnameToIdMap)) { if (currentHostname.includes(key)) { i = value; break; } } 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");

Repro Steps

Data is sent to clarity but when click on any recording, error message appears on screen. Also can't see live recording as well.

Image

Project info

Currently testing on my local, in one of our projects same configuration is working fine but on this one, this error appears.

Browser info:

Edge/Chrome

deepankarappricus commented 1 day ago

@mtodd @tpope @sverrejoh @radical any updates?