mixpanel-js icon indicating copy to clipboard operation
mixpanel-js copied to clipboard

Object doesn't support this action

Open dsshap opened this issue 7 years ago • 3 comments

We are using mixpanel in GTM.

I am getting a lot of JS errors (reported by sentry) that Object doesn't support this action

TypeError /libs/mixpanel-2-latest.min.js in g.prototype.pa
Object doesn't support this action

c("disable_persistence")||this.Xa();this.persistence.disabled!==a&&this.persistence.$b(a)};g.prototype.pa=function(){this.c("loaded")(this);

This seems to happen mostly on Windows7, IE 11

dsshap avatar May 04 '18 17:05 dsshap

@tdumitrescu could you help with this one?

dsshap avatar May 07 '18 17:05 dsshap

Thanks for the report @dsshap. Would you be able to write in to [email protected] with the full stack trace from that error? It's tough to tell which part of that minified snippet might have caused it. Also info on when you started seeing it would be useful.

CC @evnp in case this is related to the new GDPR opt-out methods. The code in the snippet above comes from https://github.com/mixpanel/mixpanel-js/blob/5ec5dfb7b09e886baca849f1350a56a2641b6f4f/src/mixpanel-core.js#L853-L860

tdumitrescu avatar May 07 '18 18:05 tdumitrescu

Hey @dsshap, I'm working on resolving this. As @tdumitrescu says, the full trace and time the issue started would be extremely helpful. I'll keep an eye out, thanks!

evnp avatar May 08 '18 00:05 evnp