Skip to content

Instantly share code, notes, and snippets.

@renard314
Last active July 14, 2016 08:41
Show Gist options
  • Save renard314/b7979791ea65b68fa9db to your computer and use it in GitHub Desktop.
Save renard314/b7979791ea65b68fa9db to your computer and use it in GitHub Desktop.
Clickstream schema
{
"sentAt": "utc timestamp",
"tracking":{
"referralUrl":"referralUrl by which the app was opened or installed. <optional>"
"session":"redmart session",
"id":"value of advertisingId|idfa|idfv|apiConsumerId",
"type":"advertisingId|idfa|idfv|apiConsumerId",
"adTrackingEnabled":"false, if this is false we are not allowed to link this users advertisingId to a previous advertisingId of this user. Users can reset their advertisingId at any time"
},
"emailId": "user@gmail.com",
"userId": "335641",
"userAgent":"Dalvik/2.1.0 (Linux; U; Android 5.0.2; SM-G901F Build/LRX22G)",
"locale":"en-GB",
"timezone":"Asia/Singapore",
"region":"HK|SG",
"batch":[],
"app":{
"build":77,
"name":"RedMart AlphaDebug",
"namespace":"com.android.redmart | com.ios.redmart | com.web.mobile.redmart | com.web.desktop.redmart",
"version":"1.9.8.LOCAL"
},
"browser": {
"engine": "webkit",
"major": "45",
"minor": "0",
"name": "chrome",
"patch": "2454.85",
"version": "45.0.2454.85"
},
"screen":{
"orientation":"undefined|landscape|portrait",
"xdpi":"The exact physical pixels per inch of the screen in the X dimension.",
"ydpi":"The exact physical pixels per inch of the screen in the Y dimension.",
"width":1080,
"height":1920
},
"os":{
"name":"Android",
"version":"5.0.2"
},
"device":{
"id":"id unique to device",
"platform": "MacIntel, optional field to be filled by web app",
"manufacturer":"samsung",
"model":"SM-G901F",
"name":"kccat6",
"pushToken": "iOS Push notification token, Android: gcm registration id"
},
"network":{
"ipAddress": "10.1.3.198",
"macAddress": "12:13:a3:d6:19:3b",
"wifi":"true if device is connected to wifi",
"carrier":"SGP-M1",
"bluetooth":"true if device is connected to a blue tooth network",
"cellular":"true if device is connected to a cellular network"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment