Get data from a database
const params = [
start: new Date(2015, 0, 1),
end: new Date(2015, 2, 1)
};var params = {
start: new Date(2015, 0, 1),
end: new Date(2015, 2, 1)
};Get complete analytics
// Full query
const result = await analytics.list(DBNAME);
// result.list is an array containing the whole DB
// Example with optional time range
// The same applies for all data requests
const result = await analytics.list(DBNAME, params);// Full query
analytics.list(DBNAME)
.then(function(result) {
// result.list is an array containing the whole DB
...
});
// Example with optional time range
// The same applies for all data requests
analytics.list(DBNAME, params)
.then(function(result) { ... });Get the count of analytics
const result = await analytics.count(DBNAME);
// result looks like { total: 300, unique: 150 }analytics.count(DBNAME)
.then(function(result) {
// result looks like { total: 300, unique: 150 }
...
});Get aggregated analytics by countries
Get aggregated analytics by platforms
Get aggregated analytics by domains
Get aggregated analytics by events
Get aggregated analytics as a time series
Last updated