Track Device Used When A Customer Places An Order

Hi all,

I was wondering if anyone knows if its possible to see what kind of device is used when someone places an order on my site. Eg - Desktop Computer, Mobile Phone, Tablet etc?

Does anyone know if this is possible or can it only be achieved via google analytics?

Thanks

Hi all,

I was wondering if anyone knows if its possible to see what kind of device is used when someone places an order on my site. Eg - Desktop Computer, Mobile Phone, Tablet etc?

Does anyone know if this is possible or can it only be achieved via google analytics?

Thanks

Hello, yes it is possible.

You can use this library to detect device type - http://mobiledetect.net/

Code samples:

// Include and instantiate the class.
require_once 'Mobile_Detect.php';
$detect = new Mobile_Detect;

// Any mobile device (phones or tablets).
if ( $detect->isMobile() ) {

}

// Any tablet device.
if( $detect->isTablet() ){

}

Thank you for the reply! I will have a look into this.