Sources plugin required
This collection might not appear if you don't have sources plugin enabled
Collection sources contains break down of new, total and unique sources of app installs for mobile and visitor referrers for web, provided in the metrics by time periods.
For shorter representation, these stats are abbreviated as:
- n - new
- t - total
- u - unique
There are 4 types of documents available:
- Zero document, which id is formed from {appID}_{year}:0 And it contains stats breakdown by months and weeks for the specified year
- Month document, which id is formed from {appID}_{year}:{month} And it contains stats breakdown by days of the month
- Splitted zero document which id is formed from {appID}{year}:0{shardname}
- Splitted month document which id is formed from {appID}{year}:{month}{shardname}
Here is the list of possible fields
Field | Description | Example |
---|---|---|
_id | ID formed as {appID}{year}:0 or {appID}{year}:{month} or {appID}{year}:0{shardname} or {appID}{year}:{month}{shardname} | 542e95d747f0be510c000004_2014:10 |
a | App ID | 542e95d747f0be510c000004 |
d | Data for specific document | { "3": { "Android": { "u": 1 } }, "7": { "com.android.vending": { "u": 1 } }, "com.android.vending": { "u": 1 }, "w31": { "com.android.vending": { "u": 1 } }, "Android": { "u": 1 }, "w11": { "Android": { "u": 1 } } } |
m | {year}:{month} for which data is provided | 2014:10 |
meta | Information about all sources values. Note it exists only for Zero documents of each year | "sources": [ "com.android.vending", "Android" ] |
meta_v2 | New way to store meta info, much faster writes than using sets | "sources": { "com.android.vending":true, "Android":true } |
Here are examples of both document types:
{
"_id": "56e53eae4a359b2f5057c8bb_2015:0",
"m": "2015:0",
"a": "56e53eae4a359b2f5057c8bb",
"d": {
"3": {
"Android": {
"u": 1
}
},
"7": {
"com.android.vending": {
"u": 1
}
},
"com.android.vending": {
"u": 1
},
"w31": {
"com.android.vending": {
"u": 1
}
},
"Android": {
"u": 1
},
"w11": {
"Android": {
"u": 1
}
}
},
"meta": {
"sources": [
"com.android.vending",
"Android"
]
}
}
{
"_id": "56e53eae4a359b2f5057c8bb_2016:3",
"m": "2016:3",
"a": "56e53eae4a359b2f5057c8bb",
"d": {
"13": {
"com.android.vending": {
"t": 3,
"n": 2,
"u": 2
}
},
"15": {
"Android": {
"t": 1,
"n": 1,
"u": 1
},
"com.android.vending": {
"t": 1,
"n": 1,
"u": 1
}
},
"16": {
"Android": {
"t": 1,
"n": 1,
"u": 1
}
},
"17": {
"Android": {
"t": 2,
"n": 2,
"u": 2
},
"com.android.vending": {
"t": 3,
"n": 2,
"u": 2
}
},
"18": {
"com.nokia.nstore": {
"t": 9,
"n": 2,
"u": 2
},
"Android": {
"t": 1,
"n": 1,
"u": 1
}
},
"20": {
"com.android.vending": {
"t": 1,
"n": 1,
"u": 1
}
},
"21": {
"com.android.vending": {
"t": 1,
"n": 1,
"u": 1
},
"Android": {
"t": 1,
"n": 1,
"u": 1
}
},
"27": {
"com.android.vending": {
"t": 2,
"n": 1,
"u": 1
},
"Android": {
"t": 1,
"n": 1,
"u": 1
}
},
"28": {
"Android": {
"t": 1,
"n": 1,
"u": 1
}
},
"29": {
"Android": {
"t": 1,
"n": 1,
"u": 1
}
},
"31": {
"Android": {
"t": 1,
"n": 1,
"u": 1
},
"com.nokia.nstore": {
"t": 5,
"n": 3,
"u": 3
}
}
}
}
Custom Countly metrics
Same collection data pattern is also used in other custom Countly metrics you might want to use in your Countly installation