Analytics

Get content analytics for a given space.

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

Responses
chevron-right
200

Content analytics per page.

application/json
get
/spaces/{spaceId}/insights/content
get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

Query parameters
periodstring · enumOptionalPossible values:
Responses
chevron-right
200

Top queries searched on this space.

application/json
get
/spaces/{spaceId}/insights/search

Get traffic page views for a given space

get

Get the total number of views and breakdown per day or week for the last 14 days. Timestamps are aligned to UTC midnight of the beginning of the day or week. Week begins on Monday.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

Query parameters
intervalstring · enumOptionalPossible values:
Responses
chevron-right
200

Traffic over time for the given space.

application/json
get
/spaces/{spaceId}/insights/traffic

Track a page view in a space

post

Track a page view in a space.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

Body
pageIdstringOptional

Unique identifier of the page.

urlstringRequired

The GitBook content's URL visited (including URL params).

referrerstringRequired

The URL of referrer that linked to the page.

Responses
post
/spaces/{spaceId}/insights/track_view

No content

Get page traffic and ratings for a given site space.

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

siteSpaceIdstringRequired

The unique id of the site-space relationship

Query parameters
periodstring · enumOptionalPossible values:
Responses
chevron-right
200

Content analytics per page.

application/json
get
/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/insights/content
Deprecated

Track a page view in a site

post

Track a page view in a site.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

Body
and
anyOptional
or
Responses
post
/orgs/{organizationId}/sites/{siteId}/insights/track_view

No content

Get analytics insights of ads on a site.

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

Query parameters
intervalstring · enumOptional

The interval for grouping the results

Default: weekPossible values:
startstring · date-timeOptional

The earliest timestamp for any data returned

endstring · date-timeOptional

The latest timestamp for any data returned

Responses
chevron-right
200

The site's ads insights stats for the provided period.

application/json
get
/orgs/{organizationId}/sites/{siteId}/insights/ads
get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

Query parameters
periodstring · enumOptionalPossible values:
siteSpaceIdsstring[]Optional

The site spaces to filter the search on

Responses
chevron-right
200

Top queries searched on this site.

application/json
get
/orgs/{organizationId}/sites/{siteId}/insights/search

Last updated

Was this helpful?