VAR(BrowserType) Always reports Netscape?
September 6, 2016 12:00 AM
So, I'm using the VAR(BrowserType) action to try to capture and report on some of the browser types out there, but regardless of what browser I'm on, it always reports "Netscape"...
Is this something that I've done wrong on my end, or does this action just not work?
Thanks,
Joe
Discussion (8)
Ok, that's helpful - with that I at least have the mobile/desktop reporting, but I'm really after discovering what browser they are using.
Hi,
Sergeys blog post may help:
http://trivantis.com/blog/browser-detection-lectora/
Tim
I'll play around with the file and see what I figure out and if needed send it over to Support. Thanks!
Would you be able to provide the files that is always reporting Netscape to our support team? I’d like them to take a look and make sure you haven’t stumbled across a bug. In theory the BrowserType variable should be reporting back the names of each browser. You can submit a support ticket by using the button under the active users groups or by following this link: http://trivantis.com/contact-support
As my blog (linked above) explains, BrowserType simple displays the value of navigator.appName variable. The returned value varies from different browsers:
IE11, Firefox, Chrome and Safari return "Netscape"
IE 10 and earlier versions return "Microsoft Internet Explorer"
Opera returns "Opera"
Although browser detection is not recommended (feature detection is more accurate) I found this gem in Stack Overflow by a poster named kennebec. I think you'll be able to use this for whatever you're looking to do. Hope it helps.
Darrel
@joejubee - Would you be able to provide the files that is always reporting Netscape to our support team? I'd like them to take a look and make sure you haven't stumbled across a bug. In theory the BrowserType variable should be reporting back the names of each browser. You can submit a support ticket by using the button under the active users groups or by following this link: http://trivantis.com/contact-support
Discussions have been disabled for this post