How to get events lists / clickstream/ events history

// hits/clicks/events

// hits for datapoint: GET /datapoints/4224248/hits?timeframe=last90&limit=100

// hits for group: GET /groups/103/hits?timeframe=last90&limit=100

// hits for conversion: GET  /conversions/4680/hits?timeframe=last90&limit=100

// clickstream (live): GET /clickstream?pageSize=100

// hits history: /hits?timeframe=last90&limit=100

 

/*

OUTPUT

{

 "lastKey": "[email protected]",

 "hits": [

   {

     "id": "[email protected]",

     "accessTime": "20151221173226",

     "entity": {

       "datapointId": 4224316,

       "datapointName": "some datapoint name",

       "datapointTitle": "0bf4",

       "datapointType": "TrackingLink",

       "groupId": 192875,

       "groupName": "some group name",

       "notes": "",

       "creationDate": "20151221160735",

       "destinationUrl": "google.com",

       "trackingCode": "http://34.gs/keyword123"

     },

     "browser": {

       "id": 3340,

       "name": "Chrome 47",

       "familyId": 76,

       "familyName": "Chrome",

       "browserType": "Famous browsers"

     },

     "os": {

       "id": 101,

       "name": "Mac OS X",

       "familyId": 17,

       "familyName": "Mac OS"

     },

     "location": {

       "country": "us",

       "areacode": "",

       "city": "",

       "latitude": 38.0000,

       "longitude": -97.0000,

       "metrocode": "",

       "postalcode": "",

       "organization": "Cogent Communications"

     },

     "conversions": [],

     "clientLanguage": "it",

     "type": "0",                                                  // type = 0 tracking link, type = 1 tracking pixel

     "ip": "149.7.212.210",

     "referer": "http%3a%2f%2fmy.clickmeter.com%2fClickStream",

     "realDestinationUrl": "http%3a%2f%2fgoogle.com",

     "isSpider": "0",

     "isUnique": "0",

     "trackedParameters": {}

   },

   .......

   ]

}

*/

// for next page, offset parameter should be added, use lastKey for this:  

//../hits?timeframe=last180&limit=100&[email protected]

Have more questions? Submit a request

0 Comments

Article is closed for comments.