Author: | bachors |
---|---|
Views Total: | 315 views |
Official Page: | Go to website |
Last Update: | December 5, 2016 |
License: | MIT |
Preview:

Description:
A powerful, pure JavaScript based visitor parser that allows to analyze your visitor’s user agent and geo-information.
Features:
- ip
- provider
- city
- lat
- lon
- country
- country_code
- region
- region_code
- timezone
- zip
- platform
- browser
- resolution
- engine
- processor
- mobile
- robot
- date
- referring
How to use it:
Download and insert the JavaScript file visitor-parser.js in the html document.
<script src="/path/to/visitor-parser.js"></script>
Initialize Visitor-Parser-JS and the vistor parser is ready for use.
var visitor = new visitorParser();
API methods.
// Result geo:{object} and ua:{object}getInfo() getInfo() // Result geo:{object} getGeo() // Result ua:{object} getUa() // Result user-agent string getUas()
Possible options.
var visitor = new visitorParser({ // set user-agent string setUa : navigator.userAgent, // get all options result of regex getOpt : false, // set url ip geo location apis geoAPI : 'http://ip-api.com/json' });