Lightweight javascript-based to analyze visitors with user-agent & ip geo location parser.
visitorParser(function(data) { console.log(data); });
var config = { // set user-agent string setUa: 'Mozilla/5.0 (Linux; U; Android 2.3.5; de-de; SAMSUNG GT-S5830/S5830BUKS2 Build/GINGERBREAD) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1', // get all options result of regex getOpt: true, // set url ip geo location apis geoAPI: 'http://freegeoip.net/json/' }; visitorParser(config, function(data) { console.log(data); });
- Fork and clone this repository
- Make some changes as required
Hope will usefull for you all.
Question ? please email : bachor.can@gmail.com