Javascript

apple logo black

Marketing

9/20/2017 8:30 AM

Website Optimisation for Apple devices - iPad and iPhone

51Degrees shares updated JavaScript to enable device detection for Apple devices

In 2015 we released a detailed blog on Device Detection for Apple iPhone and iPad. Since then Apple has released many more devices. Identifying Apple devices can be challenging and when putting plans in place to optimise websites for mobile devices like Apple, companies have two choices. Try and run a solution internally or simply have 51Degrees do the work for you with the added benefits of the Apple device properties we provide in our data files.

Because we endeavour to support companies and hobbyists with our unique open source solutions, we are sharing some JavaScript that will enable you to set up an internal solution if you wish. We would, however, encourage you to save yourself the time and effort and use our data files to support your strategic website optimisation decisions.

51d lineicons2016 cloud

51Degrees

9/12/2016 11:06 AM

Using 51Degrees Cloud API with JavaScript

In today’s modern web infrastructures the possibilities for your website are endless, ranging from CMS, all the way to the language your site is built on. Some of these can be quite restrictive, but one thing that almost every website is able to use is JavaScript. This blog is aimed at those who may not be able to use languages such as Java or .NET to access our cloud service and to show you how to get it working with nothing more than basic JavaScript.

smashingmagazine

James Rosewell

11/12/2014 2:42 PM

Upgrade Google Analytics

Enable Multi-Screen Tracking

Analytics techniques haven't kept pace with the rapidly evolving techniques of Responsive Web Design (RWD) and server side adaptive design. Google Analytics will provide information about the device model (i.e. iPhone or Galaxy S4) or whether the device is classified as a mobile, tablet or desktop, but this isn't often sufficient to make informed design decisions to improve a web page or site. Consider click through rate (CTR) on advertising. How do you know if adverts on a 3 to 4 inch diagonal screen performs better or worse than a 5 to 6 inch diagonal screen? You don't without some enhancements.

51degrees logo

Data Team

10/14/2012 12:12 AM

51Degrees.mobi properties in client side script

This blog will describe how to implement 51Degrees.mobi properties client side by generating dynamic JavaScript from the server using 51Degrees.mobi device detection capability. For example; The follow code could be used to perform an action if the screen diagonal dimension is more than 5 inches.

if (feature.ScreenInchesDiagonal > 5) {....}