Audience poll
Polling endpoint gives the data response of global and detailed requests by given datacode
Query Parameters
- dataCode string required
- 200
- 400
- 500
OK
- */*
- Schema
- Example (from schema)
Schema
- status string
Possible values: [
ERROR
,READY
,WAITING
] data object
startDateTime date-timeThe inclusive start of the period for which statistics are calculated. YYYY-MM-DDThh:mm:ss
endDateTime date-timeThe exclusive end of the period for which statistics are calculated. YYYY-MM-DDThh:mm:ss
analyticsLevel stringPossible values: [
VISIT
,VISITOR
]Indicates at what level the calculations were made.
globalStats object
Summed up calculations for all tracked segments
elementCount int64Amount of tracked visits
conversions int64Amount of tracked conversions
convertedElementCount int64Amount of tracked converted visits
conversionRate doubleHow often visits are being converted. It's being calculated as
convertedVisits
/visits
revenue doubleAmount 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 revenueaverageRevenuePerElementCount doublerevenue
/visits
averageRevenuePerConversion doublerevenue
/conversions
averageConversionPerElementCount doubleconversions
/visits
conversionRateEvolution doubleHow much conversion rate for current period changed according to previous period in percents
elementCountEvolution doubleHow much amount of visits for current period changed according to previous period in percents
revenueEvolution doubleHow much amount of revenue for current period changed according to previous period in percents
averageRevenuePerElementCountEvolution doubleHow much revenue per visit for current period changed according to previous period in percents
averageRevenuePerConversionEvolution doubleHow much revenue per conversion for current period changed according to previous period in percents
segmentStats object[]
Calculations per every segment.
Array [segmentId int64Identifier of the segment for which the stats was tracked
elementCount int64Amount of tracked visits
conversions int64Amount of tracked conversions
convertedElementCount int64Amount of tracked converted visits
conversionRate doubleHow often visits are being converted. It's being calculated as
convertedVisits
/visits
revenue doubleAmount 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 revenueaverageRevenuePerElementCount doublerevenue
/visits
averageRevenuePerConversion doublerevenue
/conversions
averageConversionPerElementCount doubleconversions
/visits
conversionRateEvolution doubleHow much conversion rate for current period changed according to previous period in percents
elementCountEvolution doubleHow much amount of visits for current period changed according to previous period in percents
revenueEvolution doubleHow much amount of revenue for current period changed according to previous period in percents
averageRevenuePerElementCountEvolution doubleHow much revenue per visit for current period changed according to previous period in percents
averageRevenuePerConversionEvolution doubleHow much revenue per conversion for current period changed according to previous period in percents
elementCountGapTotal doubleconversionsGapTotal doublerevenueGapTotal doubleaverageRevenuePerConversionGapTotal double]periodStats object[]
Calculations separated by day interval
Array [elementCount int64Amount of tracked visits
conversions int64Amount of tracked conversions
convertedElementCount int64Amount of tracked converted visits
conversionRate doubleHow often visits are being converted. It's being calculated as
convertedVisits
/visits
revenue doubleAmount 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 revenueaverageRevenuePerElementCount doublerevenue
/visits
averageRevenuePerConversion doublerevenue
/conversions
averageConversionPerElementCount doubleconversions
/visits
startDateTime date-timeendDateTime date-time]breakdownData object
Filter audience by segment criteria.
usualBreakdownStats object
property name* object
Array [breakdownName stringIdentifier of the segment for which the stats was tracked
elementCount int64Amount of tracked visits
conversions int64Amount of tracked conversions
convertedElementCount int64Amount of tracked converted visits
conversionRate doubleHow often visits are being converted. It's being calculated as
convertedVisits
/visits
revenue doubleAmount 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 revenueaverageRevenuePerElementCount doublerevenue
/visits
averageRevenuePerConversion doublerevenue
/conversions
averageConversionPerElementCount doubleconversions
/visits
conversionRateEvolution doubleHow much conversion rate for current period changed according to previous period in percents
elementCountEvolution doubleHow much amount of visits for current period changed according to previous period in percents
revenueEvolution doubleHow much amount of revenue for current period changed according to previous period in percents
averageRevenuePerElementCountEvolution doubleHow much revenue per visit for current period changed according to previous period in percents
averageRevenuePerConversionEvolution doubleHow much revenue per conversion for current period changed according to previous period in percents
elementCountPart doubleProportion of the number of visits of the breakdown subtype to the whole breakdown
revenuePart doubleProportion of the revenue of the breakdown subtype to the whole breakdown
conversionRatePart doubleProportion of the conversion rate of the breakdown subtype to the whole breakdown
revenueGapSegment doubleProportion of revenue of the breakdown to the revenue without separation by breakdown
conversionRateGapSegment doubleProportion of conversions of the breakdown to the number of conversions without separation by breakdown
]customDataStats object
property name* object
Array [breakdownName stringIdentifier of the segment for which the stats was tracked
elementCount int64Amount of tracked visits
conversions int64Amount of tracked conversions
convertedElementCount int64Amount of tracked converted visits
conversionRate doubleHow often visits are being converted. It's being calculated as
convertedVisits
/visits
revenue doubleAmount 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 revenueaverageRevenuePerElementCount doublerevenue
/visits
averageRevenuePerConversion doublerevenue
/conversions
averageConversionPerElementCount doubleconversions
/visits
conversionRateEvolution doubleHow much conversion rate for current period changed according to previous period in percents
elementCountEvolution doubleHow much amount of visits for current period changed according to previous period in percents
revenueEvolution doubleHow much amount of revenue for current period changed according to previous period in percents
averageRevenuePerElementCountEvolution doubleHow much revenue per visit for current period changed according to previous period in percents
averageRevenuePerConversionEvolution doubleHow much revenue per conversion for current period changed according to previous period in percents
elementCountPart doubleProportion of the number of visits of the breakdown subtype to the whole breakdown
revenuePart doubleProportion of the revenue of the breakdown subtype to the whole breakdown
conversionRatePart doubleProportion of the conversion rate of the breakdown subtype to the whole breakdown
revenueGapSegment doubleProportion of revenue of the breakdown to the revenue without separation by breakdown
conversionRateGapSegment doubleProportion of conversions of the breakdown to the number of conversions without separation by breakdown
]- errorDescription string
{
"status": "ERROR",
"data": {
"startDateTime": "2024-12-20T15:04:33.751Z",
"endDateTime": "2024-12-20T15:04:33.751Z",
"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-12-20T15:04:33.751Z",
"endDateTime": "2024-12-20T15:04:33.751Z"
}
],
"breakdownData": {
"usualBreakdownStats": {},
"customDataStats": {}
}
},
"errorDescription": "string"
}
Bad Request
- */*
- Schema
- Example (from schema)
Schema
- serviceName string
- message string
{
"serviceName": "string",
"message": "string"
}
Internal Server Error
- */*
- Schema
- Example (from schema)
Schema
- serviceName string
- message string
{
"serviceName": "string",
"message": "string"
}