Page metrics endpoints
All page groups metrics
Section titled All page groups metrics/v1/metrics/page-group/{pageGroupId}
Section titled /v1/metrics/page-group/{pageGroupId}Returns all page group metrics between two dates.
Parameters
Section titled ParametersprojectId | Only required for an account-level API key. The target project. |
---|---|
startDate | Required. Beginning of date range for analysis.
|
endDate | Required. End of date range for analysis.
|
device | Device filter for analysis.
|
period | Granularity of the results. Can only be used on a date range larger then one day. It allows you to have data for each day instead of having a combine result.
|
segmentIds | Filter analysis with Contentsquare segments.
|
goalId | To return conversion metrics for a non-ecommerce goal |
Example of response
Section titled Example of response{ "payload": { "values": [ { "startDate": "2021-07-16T00:00:00.000Z", "endDate": "2021-07-22T00:00:00.000Z", "value": 4.820247587511826, "name": "activityRate", "currency": "USD" }, { "startDate": "2021-07-16T00:00:00.000Z", "endDate": "2021-07-22T00:00:00.000Z", "value": 64.65578424414478, "name": "bounceRate", "currency": "USD" }, { "startDate": "2021-07-16T00:00:00.000Z", "endDate": "2021-07-22T00:00:00.000Z", "value": 4.267288693743139, "name": "conversionRate", "currency": "USD" }, { "startDate": "2021-07-16T00:00:00.000Z", "endDate": "2021-07-22T00:00:00.000Z", "value": 9.558127422045425, "name": "elapsedTime", "currency": "USD" }, { "startDate": "2021-07-16T00:00:00.000Z", "endDate": "2021-07-22T00:00:00.000Z", "value": 63.23623764917233, "name": "exitRate", "currency": "USD" }, { "startDate": "2021-07-16T00:00:00.000Z", "endDate": "2021-07-22T00:00:00.000Z", "value": 907.4778647504171, "name": "foldHeight", "currency": "USD" }, { "startDate": "2021-07-16T00:00:00.000Z", "endDate": "2021-07-22T00:00:00.000Z", "value": 1009.0064436943848, "name": "interactionTime", "currency": "USD" }, { "startDate": "2021-07-16T00:00:00.000Z", "endDate": "2021-07-22T00:00:00.000Z", "value": 13.648339726452013, "name": "landingRate", "currency": "USD" }, { "startDate": "2021-07-16T00:00:00.000Z", "endDate": "2021-07-22T00:00:00.000Z", "value": 1.6267757352941177, "name": "loadingTime", "currency": "USD" }, { "startDate": "2021-07-16T00:00:00.000Z", "endDate": "2021-07-22T00:00:00.000Z", "value": 3862.80071859361, "name": "pageHeight", "currency": "USD" }, { "startDate": "2021-07-16T00:00:00.000Z", "endDate": "2021-07-22T00:00:00.000Z", "value": 53.2996317888923, "name": "scrollRate", "currency": "USD" }, { "startDate": "2021-07-16T00:00:00.000Z", "endDate": "2021-07-22T00:00:00.000Z", "value": 4.267288693743139, "name": "transformationRate", "currency": "USD" }, { "startDate": "2021-07-16T00:00:00.000Z", "endDate": "2021-07-22T00:00:00.000Z", "value": 7284, "name": "uniqueVisits", "currency": "USD" }, { "startDate": "2021-07-16T00:00:00.000Z", "endDate": "2021-07-22T00:00:00.000Z", "value": 7793, "name": "views", "currency": "USD" }, { "startDate": "2021-07-16T00:00:00.000Z", "endDate": "2021-07-22T00:00:00.000Z", "value": 1.0692919868276618, "name": "viewsVisits", "currency": "USD" }, { "startDate": "2021-07-16T00:00:00.000Z", "endDate": "2021-07-22T00:00:00.000Z", "value": 7288, "name": "visits", "currency": "USD" } ] }, "success": true}
Activity rate
Section titled Activity rate/v1/metrics/page-group/{pageGroupId}/activity-rate
Section titled /v1/metrics/page-group/{pageGroupId}/activity-rateThe ratio of time visitors spend interacting with the page to the time spent on the page. Displayed as percentage. More information regarding the metric and how to interpret it…
Parameters
Section titled ParametersprojectId | Only required for an account-level API key. The target project. |
---|---|
startDate | Required. Beginning of date range for analysis.
|
endDate | Required. End of date range for analysis.
|
device | Device filter for analysis.
|
period | Granularity of the results. Can only be used on a date range larger then one day. It allows you to have data for each day instead of having a combine result.
|
segmentIds | Filter analysis with Contentsquare segments.
|
Example of response
Section titled Example of response{ "payload": { "values": [ { "startDate": "2021-07-16T00:00:00.000Z", "endDate": "2021-07-22T00:00:00.000Z", "value": 4.820247587511827, "name": "activityRate", "currency": "USD" } ] }, "success": true}
Bounce rate
Section titled Bounce rate/v1/metrics/page-group/{pageGroupId}/bounce-rate
Section titled /v1/metrics/page-group/{pageGroupId}/bounce-rateThe ratio between the visitors who landed on the page and left the site without having seen a second page and all visitors who landed on the page. More information regarding the metric and how to interpret it…
Parameters
Section titled ParametersprojectId | Only required for an account-level API key. The target project. |
---|---|
startDate | Required. Beginning of date range for analysis.
|
endDate | Required. End of date range for analysis.
|
device | Device filter for analysis.
|
period | Granularity of the results. Can only be used on a date range larger then one day. It allows you to have data for each day instead of having a combine result.
|
segmentIds | Filter analysis with Contentsquare segments.
|
Example of response
Section titled Example of response{ "payload": { "values": [ { "startDate": "2021-07-16T00:00:00.000Z", "endDate": "2021-07-22T00:00:00.000Z", "value": 64.65578424414478, "name": "bounceRate", "currency": "USD" } ] }, "success": true}
Conversion rate
Section titled Conversion rate/v1/metrics/page-group/{pageGroupId}/conversion-rate
Section titled /v1/metrics/page-group/{pageGroupId}/conversion-rateRatio between the number of users that viewed the page and reached the goal during their navigation and the number of users that viewed the page.
Parameters
Section titled ParametersprojectId | Only required for an account-level API key. The target project. |
---|---|
startDate | Required. Beginning of date range for analysis.
|
endDate | Required. End of date range for analysis.
|
device | Device filter for analysis.
|
period | Granularity of the results. Can only be used on a date range larger then one day. It allows you to have data for each day instead of having a combine result.
|
segmentIds | Filter analysis with Contentsquare segments.
|
goalId | Only required for non “e-commerce” projects. Goal filter for analysis. If not specified for an “e-commerce” project, the API will return data for the “e-commerce” goal. |
Example of response
Section titled Example of response{ "payload": { "values": [ { "startDate": "2021-07-16T00:00:00.000Z", "endDate": "2021-07-22T00:00:00.000Z", "value": 4.267288693743139, "name": "conversionRate", "currency": "USD" } ] }, "success": true}
Time spent / Elapsed time
Section titled Time spent / Elapsed time/v1/metrics/page-group/{pageGroupId}/elapsed-time
Section titled /v1/metrics/page-group/{pageGroupId}/elapsed-timeThe average time spent on the page, from the first page view trigger to the last event sent. More information regarding the metric and how to interpret it…
Parameters
Section titled ParametersprojectId | Only required for an account-level API key. The target project. |
---|---|
startDate | Required. Beginning of date range for analysis.
|
endDate | Required. End of date range for analysis.
|
device | Device filter for analysis.
|
period | Granularity of the results. Can only be used on a date range larger then one day. It allows you to have data for each day instead of having a combine result.
|
segmentIds | Filter analysis with Contentsquare segments.
|
Example of response
Section titled Example of response{ "payload": { "values": [ { "startDate": "2021-07-16T00:00:00.000Z", "endDate": "2021-07-22T00:00:00.000Z", "value": 9.558127422045425, "name": "elapsedTime", "currency": "USD" } ] }, "success": true}
Exit rate
Section titled Exit rate/v1/metrics/page-group/{pageGroupId}/exit-rate
Section titled /v1/metrics/page-group/{pageGroupId}/exit-rateThe ratio between the number of views of the page which are the last page view of the session and the total number of views of the page. More information regarding the metric and how to interpret it…
Parameters
Section titled ParametersprojectId | Only required for an account-level API key. The target project. |
---|---|
startDate | Required. Beginning of date range for analysis.
|
endDate | Required. End of date range for analysis.
|
device | Device filter for analysis.
|
period | Granularity of the results. Can only be used on a date range larger then one day. It allows you to have data for each day instead of having a combine result.
|
segmentIds | Filter analysis with Contentsquare segments.
|
Example of response
Section titled Example of response{ "payload": { "values": [ { "startDate": "2021-07-16T00:00:00.000Z", "endDate": "2021-07-22T00:00:00.000Z", "value": 63.23623764917233, "name": "exitRate", "currency": "USD" } ] }, "success": true}
Height / Fold Height
Section titled Height / Fold Height/v1/metrics/page-group/{pageGroupId}/fold-height
Section titled /v1/metrics/page-group/{pageGroupId}/fold-heightAverage screen height.
Parameters
Section titled ParametersprojectId | Only required for an account-level API key. The target project. |
---|---|
startDate | Required. Beginning of date range for analysis.
|
endDate | Required. End of date range for analysis.
|
device | Device filter for analysis.
|
period | Granularity of the results. Can only be used on a date range larger then one day. It allows you to have data for each day instead of having a combine result.
|
segmentIds | Filter analysis with Contentsquare segments.
|
Example of response
Section titled Example of response{ "payload": { "values": [ { "startDate": "2021-07-16T00:00:00.000Z", "endDate": "2021-07-22T00:00:00.000Z", "value": 907.4778647504171, "name": "foldHeight", "currency": "USD" } ] }, "success": true}
Interaction time
Section titled Interaction time/v1/metrics/page-group/{pageGroupId}/interaction-time
Section titled /v1/metrics/page-group/{pageGroupId}/interaction-timeThe average time spent interacting on the page.
Parameters
Section titled ParametersprojectId | Only required for an account-level API key. The target project. |
---|---|
startDate | Required. Beginning of date range for analysis.
|
endDate | Required. End of date range for analysis.
|
device | Device filter for analysis.
|
period | Granularity of the results. Can only be used on a date range larger then one day. It allows you to have data for each day instead of having a combine result.
|
segmentIds | Filter analysis with Contentsquare segments.
|
Example of response
Section titled Example of response{ "payload": { "values": [ { "startDate": "2021-07-16T00:00:00.000Z", "endDate": "2021-07-22T00:00:00.000Z", "value": 1009.0064436943848, "name": "interactionTime", "currency": "USD" } ] }, "success": true}
Landing rate
Section titled Landing rate/v1/metrics/page-group/{pageGroupId}/landing-rate
Section titled /v1/metrics/page-group/{pageGroupId}/landing-rateRatio between users that landed on this screen and the total number of users. For mobile project only.
Parameters
Section titled ParametersprojectId | Only required for an account-level API key. The target project. |
---|---|
startDate | Required. Beginning of date range for analysis.
|
endDate | Required. End of date range for analysis.
|
device | Device filter for analysis.
|
period | Granularity of the results. Can only be used on a date range larger then one day. It allows you to have data for each day instead of having a combine result.
|
segmentIds | Filter analysis with Contentsquare segments.
|
Example of response
Section titled Example of response{ "payload": { "values": [ { "startDate": "2021-07-16T00:00:00.000Z", "endDate": "2021-07-22T00:00:00.000Z", "value": 13.648339726452013, "name": "landingRate", "currency": "USD" } ] }, "success": true}
Loading time / Load time
Section titled Loading time / Load time/v1/metrics/page-group/{pageGroupId}/loading-time
Section titled /v1/metrics/page-group/{pageGroupId}/loading-timeThe average time in seconds between the call of the page and when the visitor can start interacting with it. More information regarding the metric and how to interpret it…
Parameters
Section titled ParametersprojectId | Only required for an account-level API key. The target project. |
---|---|
startDate | Required. Beginning of date range for analysis.
|
endDate | Required. End of date range for analysis.
|
device | Device filter for analysis.
|
period | Granularity of the results. Can only be used on a date range larger then one day. It allows you to have data for each day instead of having a combine result.
|
segmentIds | Filter analysis with Contentsquare segments.
|
Example of response
Section titled Example of response{ "payload": { "values": [ { "startDate": "2021-07-16T00:00:00.000Z", "endDate": "2021-07-22T00:00:00.000Z", "value": 1.6267757352941177, "name": "loadingTime", "currency": "USD" } ] }, "success": true}
Page height
Section titled Page height/v1/metrics/page-group/{pageGroupId}/page-height
Section titled /v1/metrics/page-group/{pageGroupId}/page-heightThe average height of the page in pixels at its first load (an average for all the URLs included in the page). More information regarding the metric and how to interpret it…
Parameters
Section titled ParametersprojectId | Only required for an account-level API key. The target project. |
---|---|
startDate | Required. Beginning of date range for analysis.
|
endDate | Required. End of date range for analysis.
|
device | Device filter for analysis.
|
period | Granularity of the results. Can only be used on a date range larger then one day. It allows you to have data for each day instead of having a combine result.
|
segmentIds | Filter analysis with Contentsquare segments.
|
Example of response
Section titled Example of response{ "payload": { "values": [ { "startDate": "2021-07-16T00:00:00.000Z", "endDate": "2021-07-22T00:00:00.000Z", "value": 3862.80071859361, "name": "pageHeight", "currency": "USD" } ] }, "success": true}
Scroll rate
Section titled Scroll rate/v1/metrics/page-group/{pageGroupId}/scroll-rate
Section titled /v1/metrics/page-group/{pageGroupId}/scroll-rateThe proportion of the page displayed by visitors (the ratio between the last line of pixels displayed on the screen and the height of the page). More information regarding the metric and how to interpret it…
Parameters
Section titled ParametersprojectId | Only required for an account-level API key. The target project. |
---|---|
startDate | Required. Beginning of date range for analysis.
|
endDate | Required. End of date range for analysis.
|
device | Device filter for analysis.
|
period | Granularity of the results. Can only be used on a date range larger then one day. It allows you to have data for each day instead of having a combine result.
|
segmentIds | Filter analysis with Contentsquare segments.
|
Example of response
Section titled Example of response{ "payload": { "values": [ { "startDate": "2021-07-16T00:00:00.000Z", "endDate": "2021-07-22T00:00:00.000Z", "value": 53.2996317888923, "name": "scrollRate", "currency": "USD" } ] }, "success": true}
Unique visits
Section titled Unique visits/v1/metrics/page-group/{pageGroupId}/unique-visits
Section titled /v1/metrics/page-group/{pageGroupId}/unique-visitsThe number of unique users who saw the selected page at least once during their session.
Parameters
Section titled ParametersprojectId | Only required for an account-level API key. The target project. |
---|---|
startDate | Required. Beginning of date range for analysis.
|
endDate | Required. End of date range for analysis.
|
device | Device filter for analysis.
|
period | Granularity of the results. Can only be used on a date range larger then one day. It allows you to have data for each day instead of having a combine result.
|
segmentIds | Filter analysis with Contentsquare segments.
|
Example of response
Section titled Example of response{ "payload": { "values": [ { "startDate": "2021-07-16T00:00:00.000Z", "endDate": "2021-07-22T00:00:00.000Z", "value": 7284, "name": "uniqueVisits", "currency": "USD" } ] }, "success": true}
Views
Section titled Views/v1/metrics/page-group/{pageGroupId}/views
Section titled /v1/metrics/page-group/{pageGroupId}/viewsThe number of times the page was viewed. More information regarding the metric and how to interpret it…
Parameters
Section titled ParametersprojectId | Only required for an account-level API key. The target project. |
---|---|
startDate | Required. Beginning of date range for analysis.
|
endDate | Required. End of date range for analysis.
|
device | Device filter for analysis.
|
period | Granularity of the results. Can only be used on a date range larger then one day. It allows you to have data for each day instead of having a combine result.
|
segmentIds | Filter analysis with Contentsquare segments.
|
Example of response
Section titled Example of response{ "payload": { "values": [ { "startDate": "2021-07-16T00:00:00.000Z", "endDate": "2021-07-22T00:00:00.000Z", "value": 7793, "name": "views", "currency": "USD" } ] }, "success": true}
Views / Visit
Section titled Views / Visit/v1/metrics/page-group/{pageGroupId}/views-visits
Section titled /v1/metrics/page-group/{pageGroupId}/views-visitsThe average number of times the page is viewed per visit. More information regarding the metric and how to interpret it…
Parameters
Section titled ParametersprojectId | Only required for an account-level API key. The target project. |
---|---|
startDate | Required. Beginning of date range for analysis.
|
endDate | Required. End of date range for analysis.
|
device | Device filter for analysis.
|
period | Granularity of the results. Can only be used on a date range larger then one day. It allows you to have data for each day instead of having a combine result.
|
segmentIds | Filter analysis with Contentsquare segments.
|
Example of response
Section titled Example of response{ "payload": { "values": [ { "startDate": "2021-07-16T00:00:00.000Z", "endDate": "2021-07-22T00:00:00.000Z", "value": 1.0692919868276618, "name": "viewsVisits", "currency": "USD" } ] }, "success": true}
Visits
Section titled Visits/v1/metrics/page-group/{pageGroupId}/visits
Section titled /v1/metrics/page-group/{pageGroupId}/visitsNumber of sessions where the page has been seen at least once. More information regarding the metric and how to interpret it…
Parameters
Section titled ParametersprojectId | Only required for an account-level API key. The target project. |
---|---|
startDate | Required. Beginning of date range for analysis.
|
endDate | Required. End of date range for analysis.
|
device | Device filter for analysis.
|
period | Granularity of the results. Can only be used on a date range larger then one day. It allows you to have data for each day instead of having a combine result.
|
segmentIds | Filter analysis with Contentsquare segments.
|
Example of response
Section titled Example of response{ "payload": { "values": [ { "startDate": "2021-07-16T00:00:00.000Z", "endDate": "2021-07-22T00:00:00.000Z", "value": 7288, "name": "visits", "currency": "USD" } ] }, "success": true}