Audience poll
GET/audiences/poll
Polling endpoint gives the data response of global and detailed requests by given datacode
Request
Query Parameters
Responses
- 200
- 400
- 500
OK
- */*
- Schema
- Example (from schema)
Schema
Array [
]
Array [
]
Array [
]
Array [
]
Possible values: [ERROR
, READY
, WAITING
]
data
object
The inclusive start of the period for which statistics are calculated. YYYY-MM-DDThh:mm:ss
The exclusive end of the period for which statistics are calculated. YYYY-MM-DDThh:mm:ss
Indicates at what level the calculations were made.
Possible values: [VISIT
, VISITOR
]
globalStats
object
Summed up calculations for all tracked segments
Amount of tracked visits
Amount of tracked conversions
Amount of tracked converted visits
How often visits are being converted. It's being calculated as convertedVisits
/visits
Amount of revenue. It can be tracked by kameleoon.js. Or it can be calculated based on audience configuration settings. If you set default amount of revenue per 1 conversion then revenue will be = conversions
* the default revenue
revenue
/visits
revenue
/conversions
conversions
/visits
How much conversion rate for current period changed according to previous period in percents
How much amount of visits for current period changed according to previous period in percents
How much amount of revenue for current period changed according to previous period in percents
How much revenue per visit for current period changed according to previous period in percents
How much revenue per conversion for current period changed according to previous period in percents
segmentStats
object[]
Calculations per every segment.
Identifier of the segment for which the stats was tracked
Amount of tracked visits
Amount of tracked conversions
Amount of tracked converted visits
How often visits are being converted. It's being calculated as convertedVisits
/visits
Amount of revenue. It can be tracked by kameleoon.js. Or it can be calculated based on audience configuration settings. If you set default amount of revenue per 1 conversion then revenue will be = conversions
* the default revenue
revenue
/visits
revenue
/conversions
conversions
/visits
How much conversion rate for current period changed according to previous period in percents
How much amount of visits for current period changed according to previous period in percents
How much amount of revenue for current period changed according to previous period in percents
How much revenue per visit for current period changed according to previous period in percents
How much revenue per conversion for current period changed according to previous period in percents
periodStats
object[]
Calculations separated by day interval
Amount of tracked visits
Amount of tracked conversions
Amount of tracked converted visits
How often visits are being converted. It's being calculated as convertedVisits
/visits
Amount of revenue. It can be tracked by kameleoon.js. Or it can be calculated based on audience configuration settings. If you set default amount of revenue per 1 conversion then revenue will be = conversions
* the default revenue
revenue
/visits
revenue
/conversions
conversions
/visits
breakdownData
object
Filter audience by segment criteria.
usualBreakdownStats
object
property name*
object[]
Identifier of the segment for which the stats was tracked
Amount of tracked visits
Amount of tracked conversions
Amount of tracked converted visits
How often visits are being converted. It's being calculated as convertedVisits
/visits
Amount of revenue. It can be tracked by kameleoon.js. Or it can be calculated based on audience configuration settings. If you set default amount of revenue per 1 conversion then revenue will be = conversions
* the default revenue
revenue
/visits
revenue
/conversions
conversions
/visits
How much conversion rate for current period changed according to previous period in percents
How much amount of visits for current period changed according to previous period in percents
How much amount of revenue for current period changed according to previous period in percents
How much revenue per visit for current period changed according to previous period in percents
How much revenue per conversion for current period changed according to previous period in percents
Proportion of the number of visits of the breakdown subtype to the whole breakdown
Proportion of the revenue of the breakdown subtype to the whole breakdown
Proportion of the conversion rate of the breakdown subtype to the whole breakdown
Proportion of revenue of the breakdown to the revenue without separation by breakdown
Proportion of conversions of the breakdown to the number of conversions without separation by breakdown
customDataStats
object
property name*
object[]
Identifier of the segment for which the stats was tracked
Amount of tracked visits
Amount of tracked conversions
Amount of tracked converted visits
How often visits are being converted. It's being calculated as convertedVisits
/visits
Amount of revenue. It can be tracked by kameleoon.js. Or it can be calculated based on audience configuration settings. If you set default amount of revenue per 1 conversion then revenue will be = conversions
* the default revenue
revenue
/visits
revenue
/conversions
conversions
/visits
How much conversion rate for current period changed according to previous period in percents
How much amount of visits for current period changed according to previous period in percents
How much amount of revenue for current period changed according to previous period in percents
How much revenue per visit for current period changed according to previous period in percents
How much revenue per conversion for current period changed according to previous period in percents
Proportion of the number of visits of the breakdown subtype to the whole breakdown
Proportion of the revenue of the breakdown subtype to the whole breakdown
Proportion of the conversion rate of the breakdown subtype to the whole breakdown
Proportion of revenue of the breakdown to the revenue without separation by breakdown
Proportion of conversions of the breakdown to the number of conversions without separation by breakdown
{
"status": "ERROR",
"data": {
"startDateTime": "2024-07-29T15:51:28.071Z",
"endDateTime": "2024-07-29T15:51:28.071Z",
"analyticsLevel": "VISIT",
"globalStats": {
"elementCount": 0,
"conversions": 0,
"convertedElementCount": 0,
"conversionRate": 0,
"revenue": 0,
"averageRevenuePerElementCount": 0,
"averageRevenuePerConversion": 0,
"averageConversionPerElementCount": 0,
"conversionRateEvolution": 0,
"elementCountEvolution": 0,
"revenueEvolution": 0,
"averageRevenuePerElementCountEvolution": 0,
"averageRevenuePerConversionEvolution": 0
},
"segmentStats": [
{
"segmentId": 0,
"elementCount": 0,
"conversions": 0,
"convertedElementCount": 0,
"conversionRate": 0,
"revenue": 0,
"averageRevenuePerElementCount": 0,
"averageRevenuePerConversion": 0,
"averageConversionPerElementCount": 0,
"conversionRateEvolution": 0,
"elementCountEvolution": 0,
"revenueEvolution": 0,
"averageRevenuePerElementCountEvolution": 0,
"averageRevenuePerConversionEvolution": 0,
"elementCountGapTotal": 0,
"conversionsGapTotal": 0,
"revenueGapTotal": 0,
"averageRevenuePerConversionGapTotal": 0
}
],
"periodStats": [
{
"elementCount": 0,
"conversions": 0,
"convertedElementCount": 0,
"conversionRate": 0,
"revenue": 0,
"averageRevenuePerElementCount": 0,
"averageRevenuePerConversion": 0,
"averageConversionPerElementCount": 0,
"startDateTime": "2024-07-29T15:51:28.071Z",
"endDateTime": "2024-07-29T15:51:28.071Z"
}
],
"breakdownData": {
"usualBreakdownStats": {},
"customDataStats": {}
}
},
"errorDescription": "string"
}
Bad Request
- */*
- Schema
- Example (from schema)
Schema
{
"serviceName": "string",
"message": "string"
}
Internal Server Error
- */*
- Schema
- Example (from schema)
Schema
{
"serviceName": "string",
"message": "string"
}