Page metrics endpoints
All page groups metrics
Section titled All page groups metricsGET /v1/metrics/page-group/{pageGroupId}
Returns all page group metrics between two dates.
Query parameters
-
projectId integer
Required only for an account-level API key. The target project.
-
startDate ISO 8601 date string Required
Beginning of date range for analysis. Must be a date prior to
endDate
.ISO format in UTC (for example “2021-08-13T12:32:40.000Z”) or with a time zone offset (“2021-08-13T12:32:40+02:00” or “2021-08-13T12:32:40%2B+02:00” when encoded in the URL).
-
endDate ISO 8601 date string Required
End of date range for analysis. Must be a date after
startDate
.ISO format in UTC (for example “2021-08-13T12:32:40.000Z”) or with a time zone offset (“2021-08-13T12:32:40+02:00” or “2021-08-13T12:32:40%2B+02:00” when encoded in the URL).
-
device string
Device filter for analysis.
Possible values:
all
(default),desktop
,mobile
, ortablet
. -
period string
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.
Possible values: none (default),
daily
. -
segmentIds integer
Filter analysis with Contentsquare segments. Default: All visitors.
You can specify multiple segments separated by commas to retrieve the metrics for the intersection of the specified segments -
goalId integer
To return conversion metrics for a non-ecommerce goal.
Path parameters
-
pageGroupId integer Required
The ID of the Page Group.
Example of response
Activity rate
Section titled Activity rateGET /v1/metrics/page-group/{pageGroupId}/activity-rate
The 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… ↗
Query parameters
-
projectId integer
Required only for an account-level API key. The target project.
-
startDate ISO 8601 date string Required
Beginning of date range for analysis. Must be a date prior to
endDate
.ISO format in UTC (for example “2021-08-13T12:32:40.000Z”) or with a time zone offset (“2021-08-13T12:32:40+02:00” or “2021-08-13T12:32:40%2B+02:00” when encoded in the URL).
-
endDate ISO 8601 date string Required
End of date range for analysis. Must be a date after
startDate
.ISO format in UTC (for example “2021-08-13T12:32:40.000Z”) or with a time zone offset (“2021-08-13T12:32:40+02:00” or “2021-08-13T12:32:40%2B+02:00” when encoded in the URL).
-
device string
Device filter for analysis.
Possible values:
all
(default),desktop
,mobile
, ortablet
. -
period string
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.
Possible values: none (default),
daily
. -
segmentIds integer
Filter analysis with Contentsquare segments. Default: All visitors.
You can specify multiple segments separated by commas to retrieve the metrics for the intersection of the specified segments
Path parameters
-
pageGroupId integer Required
The ID of the Page Group.
Example of response
Bounce rate
Section titled Bounce rateGET /v1/metrics/page-group/{pageGroupId}/bounce-rate
The 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… ↗
Query parameters
-
projectId integer
Required only for an account-level API key. The target project.
-
startDate ISO 8601 date string Required
Beginning of date range for analysis. Must be a date prior to
endDate
.ISO format in UTC (for example “2021-08-13T12:32:40.000Z”) or with a time zone offset (“2021-08-13T12:32:40+02:00” or “2021-08-13T12:32:40%2B+02:00” when encoded in the URL).
-
endDate ISO 8601 date string Required
End of date range for analysis. Must be a date after
startDate
.ISO format in UTC (for example “2021-08-13T12:32:40.000Z”) or with a time zone offset (“2021-08-13T12:32:40+02:00” or “2021-08-13T12:32:40%2B+02:00” when encoded in the URL).
-
device string
Device filter for analysis.
Possible values:
all
(default),desktop
,mobile
, ortablet
. -
period string
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.
Possible values: none (default),
daily
. -
segmentIds integer
Filter analysis with Contentsquare segments. Default: All visitors.
You can specify multiple segments separated by commas to retrieve the metrics for the intersection of the specified segments
Path parameters
-
pageGroupId integer Required
The ID of the Page Group.
Example of response
Conversion rate
Section titled Conversion rateGET /v1/metrics/page-group/{pageGroupId}/conversion-rate
Ratio 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.
Query parameters
-
projectId integer
Required only for an account-level API key. The target project.
-
startDate ISO 8601 date string Required
Beginning of date range for analysis. Must be a date prior to
endDate
.ISO format in UTC (for example “2021-08-13T12:32:40.000Z”) or with a time zone offset (“2021-08-13T12:32:40+02:00” or “2021-08-13T12:32:40%2B+02:00” when encoded in the URL).
-
endDate ISO 8601 date string Required
End of date range for analysis. Must be a date after
startDate
.ISO format in UTC (for example “2021-08-13T12:32:40.000Z”) or with a time zone offset (“2021-08-13T12:32:40+02:00” or “2021-08-13T12:32:40%2B+02:00” when encoded in the URL).
-
device string
Device filter for analysis.
Possible values:
all
(default),desktop
,mobile
, ortablet
. -
period string
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.
Possible values: none (default),
daily
. -
segmentIds integer
Filter analysis with Contentsquare segments. Default: All visitors.
You can specify multiple segments separated by commas to retrieve the metrics for the intersection of the specified segments -
goalId integer
To return conversion metrics for a non-ecommerce goal.
Path parameters
-
pageGroupId integer Required
The ID of the Page Group.
Example of response
Exit rate
Section titled Exit rateGET /v1/metrics/page-group/{pageGroupId}/exit-rate
The 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… ↗
Query parameters
-
projectId integer
Required only for an account-level API key. The target project.
-
startDate ISO 8601 date string Required
Beginning of date range for analysis. Must be a date prior to
endDate
.ISO format in UTC (for example “2021-08-13T12:32:40.000Z”) or with a time zone offset (“2021-08-13T12:32:40+02:00” or “2021-08-13T12:32:40%2B+02:00” when encoded in the URL).
-
endDate ISO 8601 date string Required
End of date range for analysis. Must be a date after
startDate
.ISO format in UTC (for example “2021-08-13T12:32:40.000Z”) or with a time zone offset (“2021-08-13T12:32:40+02:00” or “2021-08-13T12:32:40%2B+02:00” when encoded in the URL).
-
device string
Device filter for analysis.
Possible values:
all
(default),desktop
,mobile
, ortablet
. -
period string
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.
Possible values: none (default),
daily
. -
segmentIds integer
Filter analysis with Contentsquare segments. Default: All visitors.
You can specify multiple segments separated by commas to retrieve the metrics for the intersection of the specified segments
Path parameters
-
pageGroupId integer Required
The ID of the Page Group.
Example of response
Height / Fold Height
Section titled Height / Fold HeightGET /v1/metrics/page-group/{pageGroupId}/fold-height
Average screen height.
Query parameters
-
projectId integer
Required only for an account-level API key. The target project.
-
startDate ISO 8601 date string Required
Beginning of date range for analysis. Must be a date prior to
endDate
.ISO format in UTC (for example “2021-08-13T12:32:40.000Z”) or with a time zone offset (“2021-08-13T12:32:40+02:00” or “2021-08-13T12:32:40%2B+02:00” when encoded in the URL).
-
endDate ISO 8601 date string Required
End of date range for analysis. Must be a date after
startDate
.ISO format in UTC (for example “2021-08-13T12:32:40.000Z”) or with a time zone offset (“2021-08-13T12:32:40+02:00” or “2021-08-13T12:32:40%2B+02:00” when encoded in the URL).
-
device string
Device filter for analysis.
Possible values:
all
(default),desktop
,mobile
, ortablet
. -
period string
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.
Possible values: none (default),
daily
. -
segmentIds integer
Filter analysis with Contentsquare segments. Default: All visitors.
You can specify multiple segments separated by commas to retrieve the metrics for the intersection of the specified segments
Path parameters
-
pageGroupId integer Required
The ID of the Page Group.
Example of response
Interaction time
Section titled Interaction timeGET /v1/metrics/page-group/{pageGroupId}/interaction-time
The average time spent interacting on the page.
Query parameters
-
projectId integer
Required only for an account-level API key. The target project.
-
startDate ISO 8601 date string Required
Beginning of date range for analysis. Must be a date prior to
endDate
.ISO format in UTC (for example “2021-08-13T12:32:40.000Z”) or with a time zone offset (“2021-08-13T12:32:40+02:00” or “2021-08-13T12:32:40%2B+02:00” when encoded in the URL).
-
endDate ISO 8601 date string Required
End of date range for analysis. Must be a date after
startDate
.ISO format in UTC (for example “2021-08-13T12:32:40.000Z”) or with a time zone offset (“2021-08-13T12:32:40+02:00” or “2021-08-13T12:32:40%2B+02:00” when encoded in the URL).
-
device string
Device filter for analysis.
Possible values:
all
(default),desktop
,mobile
, ortablet
. -
period string
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.
Possible values: none (default),
daily
. -
segmentIds integer
Filter analysis with Contentsquare segments. Default: All visitors.
You can specify multiple segments separated by commas to retrieve the metrics for the intersection of the specified segments
Path parameters
-
pageGroupId integer Required
The ID of the Page Group.
Example of response
Landing rate
Section titled Landing rateGET /v1/metrics/page-group/{pageGroupId}/landing-rate
Ratio between users that landed on this screen and the total number of users. For mobile project only.
Query parameters
-
projectId integer
Required only for an account-level API key. The target project.
-
startDate ISO 8601 date string Required
Beginning of date range for analysis. Must be a date prior to
endDate
.ISO format in UTC (for example “2021-08-13T12:32:40.000Z”) or with a time zone offset (“2021-08-13T12:32:40+02:00” or “2021-08-13T12:32:40%2B+02:00” when encoded in the URL).
-
endDate ISO 8601 date string Required
End of date range for analysis. Must be a date after
startDate
.ISO format in UTC (for example “2021-08-13T12:32:40.000Z”) or with a time zone offset (“2021-08-13T12:32:40+02:00” or “2021-08-13T12:32:40%2B+02:00” when encoded in the URL).
-
device string
Device filter for analysis.
Possible values:
all
(default),desktop
,mobile
, ortablet
. -
period string
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.
Possible values: none (default),
daily
. -
segmentIds integer
Filter analysis with Contentsquare segments. Default: All visitors.
You can specify multiple segments separated by commas to retrieve the metrics for the intersection of the specified segments
Path parameters
-
pageGroupId integer Required
The ID of the Page Group.
Example of response
Loading time / Load time
Section titled Loading time / Load timeGET /v1/metrics/page-group/{pageGroupId}/loading-time
The 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… ↗
Query parameters
-
projectId integer
Required only for an account-level API key. The target project.
-
startDate ISO 8601 date string Required
Beginning of date range for analysis. Must be a date prior to
endDate
.ISO format in UTC (for example “2021-08-13T12:32:40.000Z”) or with a time zone offset (“2021-08-13T12:32:40+02:00” or “2021-08-13T12:32:40%2B+02:00” when encoded in the URL).
-
endDate ISO 8601 date string Required
End of date range for analysis. Must be a date after
startDate
.ISO format in UTC (for example “2021-08-13T12:32:40.000Z”) or with a time zone offset (“2021-08-13T12:32:40+02:00” or “2021-08-13T12:32:40%2B+02:00” when encoded in the URL).
-
device string
Device filter for analysis.
Possible values:
all
(default),desktop
,mobile
, ortablet
. -
period string
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.
Possible values: none (default),
daily
. -
segmentIds integer
Filter analysis with Contentsquare segments. Default: All visitors.
You can specify multiple segments separated by commas to retrieve the metrics for the intersection of the specified segments
Path parameters
-
pageGroupId integer Required
The ID of the Page Group.
Example of response
Page height
Section titled Page heightGET /v1/metrics/page-group/{pageGroupId}/page-height
The 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… ↗
Query parameters
-
projectId integer
Required only for an account-level API key. The target project.
-
startDate ISO 8601 date string Required
Beginning of date range for analysis. Must be a date prior to
endDate
.ISO format in UTC (for example “2021-08-13T12:32:40.000Z”) or with a time zone offset (“2021-08-13T12:32:40+02:00” or “2021-08-13T12:32:40%2B+02:00” when encoded in the URL).
-
endDate ISO 8601 date string Required
End of date range for analysis. Must be a date after
startDate
.ISO format in UTC (for example “2021-08-13T12:32:40.000Z”) or with a time zone offset (“2021-08-13T12:32:40+02:00” or “2021-08-13T12:32:40%2B+02:00” when encoded in the URL).
-
device string
Device filter for analysis.
Possible values:
all
(default),desktop
,mobile
, ortablet
. -
period string
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.
Possible values: none (default),
daily
. -
segmentIds integer
Filter analysis with Contentsquare segments. Default: All visitors.
You can specify multiple segments separated by commas to retrieve the metrics for the intersection of the specified segments
Path parameters
-
pageGroupId integer Required
The ID of the Page Group.
Example of response
Scroll rate
Section titled Scroll rateGET /v1/metrics/page-group/{pageGroupId}/scroll-rate
The 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… ↗
Query parameters
-
projectId integer
Required only for an account-level API key. The target project.
-
startDate ISO 8601 date string Required
Beginning of date range for analysis. Must be a date prior to
endDate
.ISO format in UTC (for example “2021-08-13T12:32:40.000Z”) or with a time zone offset (“2021-08-13T12:32:40+02:00” or “2021-08-13T12:32:40%2B+02:00” when encoded in the URL).
-
endDate ISO 8601 date string Required
End of date range for analysis. Must be a date after
startDate
.ISO format in UTC (for example “2021-08-13T12:32:40.000Z”) or with a time zone offset (“2021-08-13T12:32:40+02:00” or “2021-08-13T12:32:40%2B+02:00” when encoded in the URL).
-
device string
Device filter for analysis.
Possible values:
all
(default),desktop
,mobile
, ortablet
. -
period string
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.
Possible values: none (default),
daily
. -
segmentIds integer
Filter analysis with Contentsquare segments. Default: All visitors.
You can specify multiple segments separated by commas to retrieve the metrics for the intersection of the specified segments
Path parameters
-
pageGroupId integer Required
The ID of the Page Group.
Example of response
Time spent / Elapsed time
Section titled Time spent / Elapsed timeGET /v1/metrics/page-group/{pageGroupId}/elapsed-time
The 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… ↗
Query parameters
-
projectId integer
Required only for an account-level API key. The target project.
-
startDate ISO 8601 date string Required
Beginning of date range for analysis. Must be a date prior to
endDate
.ISO format in UTC (for example “2021-08-13T12:32:40.000Z”) or with a time zone offset (“2021-08-13T12:32:40+02:00” or “2021-08-13T12:32:40%2B+02:00” when encoded in the URL).
-
endDate ISO 8601 date string Required
End of date range for analysis. Must be a date after
startDate
.ISO format in UTC (for example “2021-08-13T12:32:40.000Z”) or with a time zone offset (“2021-08-13T12:32:40+02:00” or “2021-08-13T12:32:40%2B+02:00” when encoded in the URL).
-
device string
Device filter for analysis.
Possible values:
all
(default),desktop
,mobile
, ortablet
. -
period string
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.
Possible values: none (default),
daily
. -
segmentIds integer
Filter analysis with Contentsquare segments. Default: All visitors.
You can specify multiple segments separated by commas to retrieve the metrics for the intersection of the specified segments -
goalId integer
To return conversion metrics for a non-ecommerce goal.
Path parameters
-
pageGroupId integer Required
The ID of the Page Group.
Example of response
Unique visits
Section titled Unique visitsGET /v1/metrics/page-group/{pageGroupId}/unique-visits
The number of unique users who saw the selected page at least once during their session.
Query parameters
-
projectId integer
Required only for an account-level API key. The target project.
-
startDate ISO 8601 date string Required
Beginning of date range for analysis. Must be a date prior to
endDate
.ISO format in UTC (for example “2021-08-13T12:32:40.000Z”) or with a time zone offset (“2021-08-13T12:32:40+02:00” or “2021-08-13T12:32:40%2B+02:00” when encoded in the URL).
-
endDate ISO 8601 date string Required
End of date range for analysis. Must be a date after
startDate
.ISO format in UTC (for example “2021-08-13T12:32:40.000Z”) or with a time zone offset (“2021-08-13T12:32:40+02:00” or “2021-08-13T12:32:40%2B+02:00” when encoded in the URL).
-
device string
Device filter for analysis.
Possible values:
all
(default),desktop
,mobile
, ortablet
. -
period string
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.
Possible values: none (default),
daily
. -
segmentIds integer
Filter analysis with Contentsquare segments. Default: All visitors.
You can specify multiple segments separated by commas to retrieve the metrics for the intersection of the specified segments
Path parameters
-
pageGroupId integer Required
The ID of the Page Group.
Example of response
Views
Section titled ViewsGET /v1/metrics/page-group/{pageGroupId}/views
The number of times the page was viewed. More information regarding the metric and how to interpret it… ↗
Query parameters
-
projectId integer
Required only for an account-level API key. The target project.
-
startDate ISO 8601 date string Required
Beginning of date range for analysis. Must be a date prior to
endDate
.ISO format in UTC (for example “2021-08-13T12:32:40.000Z”) or with a time zone offset (“2021-08-13T12:32:40+02:00” or “2021-08-13T12:32:40%2B+02:00” when encoded in the URL).
-
endDate ISO 8601 date string Required
End of date range for analysis. Must be a date after
startDate
.ISO format in UTC (for example “2021-08-13T12:32:40.000Z”) or with a time zone offset (“2021-08-13T12:32:40+02:00” or “2021-08-13T12:32:40%2B+02:00” when encoded in the URL).
-
device string
Device filter for analysis.
Possible values:
all
(default),desktop
,mobile
, ortablet
. -
period string
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.
Possible values: none (default),
daily
. -
segmentIds integer
Filter analysis with Contentsquare segments. Default: All visitors.
You can specify multiple segments separated by commas to retrieve the metrics for the intersection of the specified segments
Path parameters
-
pageGroupId integer Required
The ID of the Page Group.
Example of response
Views / Visit
Section titled Views / VisitGET /v1/metrics/page-group/{pageGroupId}/views-visits
The average number of times the page is viewed per visit. More information regarding the metric and how to interpret it… ↗
Query parameters
-
projectId integer
Required only for an account-level API key. The target project.
-
startDate ISO 8601 date string Required
Beginning of date range for analysis. Must be a date prior to
endDate
.ISO format in UTC (for example “2021-08-13T12:32:40.000Z”) or with a time zone offset (“2021-08-13T12:32:40+02:00” or “2021-08-13T12:32:40%2B+02:00” when encoded in the URL).
-
endDate ISO 8601 date string Required
End of date range for analysis. Must be a date after
startDate
.ISO format in UTC (for example “2021-08-13T12:32:40.000Z”) or with a time zone offset (“2021-08-13T12:32:40+02:00” or “2021-08-13T12:32:40%2B+02:00” when encoded in the URL).
-
device string
Device filter for analysis.
Possible values:
all
(default),desktop
,mobile
, ortablet
. -
period string
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.
Possible values: none (default),
daily
. -
segmentIds integer
Filter analysis with Contentsquare segments. Default: All visitors.
You can specify multiple segments separated by commas to retrieve the metrics for the intersection of the specified segments
Path parameters
-
pageGroupId integer Required
The ID of the Page Group.
Example of response
Visits
Section titled VisitsGET /v1/metrics/page-group/{pageGroupId}/visits
Number of sessions where the page has been seen at least once. More information regarding the metric and how to interpret it… ↗
Query parameters
-
projectId integer
Required only for an account-level API key. The target project.
-
startDate ISO 8601 date string Required
Beginning of date range for analysis. Must be a date prior to
endDate
.ISO format in UTC (for example “2021-08-13T12:32:40.000Z”) or with a time zone offset (“2021-08-13T12:32:40+02:00” or “2021-08-13T12:32:40%2B+02:00” when encoded in the URL).
-
endDate ISO 8601 date string Required
End of date range for analysis. Must be a date after
startDate
.ISO format in UTC (for example “2021-08-13T12:32:40.000Z”) or with a time zone offset (“2021-08-13T12:32:40+02:00” or “2021-08-13T12:32:40%2B+02:00” when encoded in the URL).
-
device string
Device filter for analysis.
Possible values:
all
(default),desktop
,mobile
, ortablet
. -
period string
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.
Possible values: none (default),
daily
. -
segmentIds integer
Filter analysis with Contentsquare segments. Default: All visitors.
You can specify multiple segments separated by commas to retrieve the metrics for the intersection of the specified segments
Path parameters
-
pageGroupId integer Required
The ID of the Page Group.
Example of response
Web Vitals
Section titled Web VitalsAccess to some metrics / capabilities requires Speed Analysis RUM. Reach out to your point of contact at Contentsquare for more information.
GET /v1/metrics/page-group/{pageGroupId}/web-vitals
Returns a list of Web Vitals metrics (including Core Web Vitals).
Query parameters
-
projectId integer
Required only for an account-level API key. Specifies the target project
-
startDate ISO 8601 date string Required
Beginning of date range for analysis. Must be a date prior to
endDate
.ISO format in UTC (for example “2021-08-13T12:32:40.000Z”) or with a time zone offset (“2021-08-13T12:32:40+02:00” or “2021-08-13T12:32:40%2B+02:00” when encoded in the URL).
-
endDate ISO 8601 date string Required
End of date range for analysis. Must be a date after
startDate
.ISO format in UTC (for example “2021-08-13T12:32:40.000Z”) or with a time zone offset (“2021-08-13T12:32:40+02:00” or “2021-08-13T12:32:40%2B+02:00” when encoded in the URL).
-
device string
Device filter for analysis.
Possible values:
all
(default),desktop
,mobile
, ortablet
. -
period string
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.
Possible values: none (default),
daily
. -
segmentIds integer
Filter analysis with Contentsquare segments. Default: All visitors.
You can specify multiple segments separated by commas to retrieve the metrics for the intersection of the specified segments -
metricType string
Possible values:
Quantile
(default),Average
. -
quantile number
Default to the 75th percentile of each metric if the metric type is
Quantile
. It is ignored if the metric type isAverage
.
Path parameters
-
pageGroupId integer Required
The ID of the Page Group.