Skip to content
This repository has been archived by the owner on Apr 28, 2022. It is now read-only.

IE 8: Version mismatch; please ensure you're using the latest version of the Mixpanel code snippet. #81

Closed
pheuter opened this issue Feb 4, 2013 · 15 comments

Comments

@pheuter
Copy link

pheuter commented Feb 4, 2013

When attempting to use Analytics.js with Mixpanel on IE 8, the following error is thrown:

Version mismatch; please ensure you're using the latest version of the Mixpanel code snippet.

This does not occur on any other browser...

@paulyoung
Copy link

+1

@ianstormtaylor
Copy link
Contributor

Gah super weird. Looking into this now! Sorry for the trouble

@ianstormtaylor
Copy link
Contributor

What version of analytics.js are you using btw?

@pheuter
Copy link
Author

pheuter commented Feb 4, 2013

0.2.2

@ianstormtaylor
Copy link
Contributor

Ah, can you add the latest version and see if it's still there? We upgraded the Mixpanel snippet in 0.3.4 to use their version 2.2, so that could easily be it.

@pheuter
Copy link
Author

pheuter commented Feb 4, 2013

Tried with 0.5.0, same error.

@calvinfo
Copy link
Contributor

calvinfo commented Feb 7, 2013

Any chance that you guys have some code that can reproduce this reliably? I've seen the error you're talking about on a few occasions, so there is definitely a bug somewhere. I'm finding it to be pretty intermittent which is making it difficult to test in IE8.

My best guess is that it has something to do with how the mixpanel object gets loaded on IE8. I'm curious whether moving the a.__SV = 1.2 line before the script element gets added to the page will fix it. I'm pretty sure IE8 doesn't block the execution for that dynamic node, but it might be worth a shot.

If you have a gist or a page I can look at which replicates the problem consistently, that would be incredibly helpful.

@paulyoung
Copy link

I first noticed the warning when trying to debug #80 and since we implemented the workaround for that issue I haven't been able to reproduce this.

@calvinfo
Copy link
Contributor

calvinfo commented Feb 7, 2013

@paulyoung - cool! I'm not sure how the two problems would be related at the moment, but I'm glad to hear that it seems to have fixed things. :)

@pheuter - do you happen to have a consistent test case which fails independent of KM? If there is still a problem, I'd love to fix it asap.

Thanks for your help!

@pheuter
Copy link
Author

pheuter commented Feb 9, 2013

@calvinfo Unfortunately I do not. Like @paulyoung mentioned, it has been difficult to reproduce since #80 was fixed, though it seems unlikely the two had anything in common...

@ianstormtaylor
Copy link
Contributor

Hey guys, if you can reproduce let us know and we'll check it out more. Gonna go ahead and close for now

@rshubbard
Copy link

I have reproduced the issue at http://www.reverbnation.com in IE8. I was able to debug it in a failed state and found IE was loading the mixpanel-2.2.min.js as soon as the statement d.parentNode.insertBefore(b,d); was run before the rest of the snippet had finished. Thus it was loading and running the script before it had set the version with the statement a.__SV=1.2;. If I move the statement d.parentNode.insertBefore(b,d); to the end of the snippet the problem goes away. Apparently IE8 can load the script as soon as it is inserted in the DOM.

@calvinfo
Copy link
Contributor

calvinfo commented May 7, 2013

@rshubbard what version of analytics.js are you using?

I had guessed this might be an issue. We updated the snippet in v0.9.5 to set a.__SV=1.2; before the loading script executes. Can you confirm that it still happens on the latest version?

@rshubbard
Copy link

Sorry my issue was with Mixpanel itself. I have forwarded them the issue. Appears to only happen on IE8.

@nayaabkhan
Copy link

We have started getting this error again on IE8 today, did Mixpanel change something just recently? Because I think it was fine until last week and today we just saw this come up in our IE8 console.

Mixpanel error:
Version mismatch; please ensure you're using the latest...
Object doesn't support property or method 'track_forms'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants