Search code examples
javascriptphpuser-tracking

Detect when smart watches are visiting a web page


Smart watches are getting web browsers and although it may not be the optimal device to use to browse the web a few people will probably use them. What I would like to do is to detect if someone visits a web page with a smart watch.

I would like to do this with either PHP or javascript or a combination of the two.

How could I check to be mostly sure that it is a smart watch visiting the web page?


Solution

  • Screen size and user agent are the two most common routes for detection. User agent would depend on the watch.