Visits by Browser

Display which browser visitors have installed. This specific api call is turned off by default, please contact support@opentracker.net to turn this api call on.

API Usage

This API produces a json array. Use this URL to perform GET or POST requests. Visits can also be retrieved based on browser, and/ or a machine_idx.

Parameters

One or more of the following parameters are required:

filterByBrowser: Find all visits with specified browser. Default is all browsers.
filterByMachineId Display data for these machine ids. Machine id is a unique identifier of each visitor. Default is all machine_ids.
filterByVisitId Display data for these visit ids. Visit id is a unique identifier of each visit. Default is all visit ids.
from Find all visits from the specified unix timestamp. Default is all unix timestamps.
to Find all visits up to the specified unix timestamp. Default is all unix timestamps.
offset The starting point from where the records are to be displayed. Default is [0] (most recent chronological event).
limit Maximum number of records to be displayed in the output. Default is [40]. Maximum is 10,000.
login Your opentracker login email. Default is [demo@opentracker.net].
password Your password.
ticketId A ticketId can be used to provide credentials with an expiring token. A ticketId can be used instead of a login/ password combination. Further information can be found here. Default is [demo123].
site The site for which to display data. Default is [www.opentracker.net].
locale The locale parameter is an identifier for a particular combination of language and region (e.g. en_US) and determines the format of the data returned. A list of locales can be found here.
dataType The dataType parameter determines the format of the data returned. Values can be [json] | html | jsondatatable | jsonjqgrid
ignoreLocale Display columns without language translation. Boolean. [false]|true.
dateFormat The dateFormat parameter determines the format of dates returned. An example is dateFormat=yyyy-dd-MM. The syntax can be found here.

Examples

To search all visits to www.opentracker.net with firefox 3.6.3:
HTTP GET/ POST: view_browser.jsp?login=demo@opentracker.net&password=demo123&site=www.opentracker.net&filterByBrowser=*firefox 3.6.3&offset=0&limit=2

Response

This page returns a json array with 'n' entries starting from the specified offset formatted as:











{ "resultsList": [
{
"visit_id":"834382",
"machine_idx":"635505",
"last event":"Oct 04 21:06 PM +0500",
"duration":"01m 39s",
"country":"\/images\/general\/login\/flags\/bd.gif",
"status":"\/images\/general\/login\/puppets\/puppet_offline.png",
"visits(pv)":"1 (5)",
"current page (exit page)":"http:\/\/www.opentracker.net\/article\/access-facebook-user-profile-data-fb-login",
"currentTitle":"Access Facebook user profile data with FB Login | Opentracker Analytics",
"countryName":"Bangladesh",
"city":"Dhaka",
"region":"Dhaka",
"isp":"Unknown",
"org_company":"Unknown",
"isp/ org":"Grameenphone",
"provider":"Unknown",
"area code (tel)":"0",
"ZIP/ postal code":"1000",
"referrers Logo":"http:\/\/google.com\/favicon.ico",
"referrer":"google.com",
"search term":"visitor fb",
"user status":"offline",
"number of visits":"1",
"pageviews":"5",
"total pages viewed":"10",
"last visit duration":"01m 39s",
"current visit duration":"00s",
"total duration":"01m 39s",
"first measurement":"Oct 04 21:04 PM +0500",
"platform/ OS":"Windows XP",
"browser":"Firefox 3.6.3",
"resolution":"1024 x 768",
"IP address":"119.30.39.89"}
,
{
"visit_id":"760332",
"machine_idx":"574652",
"last event":"Aug 11 17:02 PM +0500",
"duration":"s.e.",
"country":"\/images\/general\/login\/flags\/bw.gif",
"status":"\/images\/general\/login\/puppets\/puppet_offline.png",
"visits(pv)":"1 (1)",
"current page (exit page)":"http:\/\/www.opentracker.net\/article\/choosing-search-terms",
"currentTitle":"Choosing Search Terms | Opentracker Analytics",
"countryName":"Botswana",
"city":"Gaborone",
"region":"South-East",
"isp":"Botswana Telecommunications Corporation",
"org_company":"Btc-Gate1",
"isp/ org":"",
"provider":"Unknown",
"area code (tel)":"Unknown",
"ZIP/ postal code":"Unknown",
"referrers Logo":"http:\/\/plusnetwork.com\/favicon.ico",
"referrer":"plusnetwork.com",
"search term":"Unknown",
"user status":"offline",
"number of visits":"1",
"pageviews":"1",
"total pages viewed":"2",
"last visit duration":"single event( s.e.)",
"current visit duration":"00s",
"total duration":"00s",
"first measurement":"Aug 11 17:02 PM +0500",
"platform/ OS":"Windows 7",
"browser":"Firefox 3.6.3",
"resolution":"1366 x 768",
"IP address":"168.167.175.222"}
]
}

Errors

If errors are encountered, the first encountered error will be returned of form "Error: exception: message

Error: java.lang.RuntimeException: Login/ site combination is not valid

We would love to hear your feedback. Please use the facebook comment box below