방문 분석
첫 페이지·이탈 페이지
세션이 시작한 페이지(진입·반송)와 세션이 끝난 페이지(이탈)를 돌려준다. 반송은 참여하지 않고 끝난 세션이다. 스코프 `analytics:r`. - 날짜는 Asia/Seoul 기준이며 `from`·`to` 모두 포함한다. 최대 92일. - 스토어프론트가 `@sayren/storefront-sdk`로 수집한 이벤트를 주기적으로 집계한 값이다. 오늘 값은 `lastComputedAt` 시점까지 반영된다. - 봇·자동화 브라우저의 세션은 빠진다. 테스트 결제(샌드박스 결제)로 만든 구매는 기본 제외이고 `includeTest=true`면 포함한다.
GET
세션이 시작한 페이지(진입·반송)와 세션이 끝난 페이지(이탈)를 돌려준다. 반송은 참여하지 않고 끝난 세션이다. 스코프 analytics:r.
- 날짜는 Asia/Seoul 기준이며
from·to모두 포함한다. 최대 92일. - 스토어프론트가
@sayren/storefront-sdk로 수집한 이벤트를 주기적으로 집계한 값이다. 오늘 값은lastComputedAt시점까지 반영된다. - 봇·자동화 브라우저의 세션은 빠진다. 테스트 결제(샌드박스 결제)로 만든 구매는 기본 제외이고
includeTest=true면 포함한다.
accessTokenheader
AuthorizationBearer <JWT>Sayren 계정 토큰(로그인 토큰 또는 개인 액세스 토큰, RFC 9068 JWT)
from*string시작일 (YYYY-MM-DD, Asia/Seoul 기준, 포함)
Match
^\d{4}-\d{2}-\d{2}$to*string종료일 (YYYY-MM-DD, 포함). from부터 최대 92일
Match
^\d{4}-\d{2}-\d{2}$includeTest?string테스트 결제(샌드박스 결제)로 만든 구매 포함 여부. 기본 false
Value in
"true""false"limit?integer최대 행 수. 기본 20, 최대 100
Range
1 <= value <= 100X-Store-Id*string대상 상점 id. 토큰의 상점 범위 밖이면 403 STORE_NOT_GRANTED, 없으면 400 STORE_ID_REQUIRED다
성공
application/json- response
meta*data*error*|nullcurl -X GET 'https://api.sayren.io/v1/analytics/pages?from=string&to=string' \
-H 'X-Store-Id: string'Example Response
{
"meta": {
"status": 200,
"code": "OK",
"message": "OK",
"isSuccess": true
},
"data": {
"from": "string",
"to": "string",
"timezone": "Asia/Seoul",
"currency": "KRW",
"includeTest": true,
"lastComputedAt": "string",
"landings": [
{
"path": "string",
"entrances": 0,
"bounces": 0,
"bounceRate": 0
}
],
"exits": [
{
"path": "string",
"pageViews": 0,
"exits": 0,
"exitRate": 0
}
]
},
"error": null
}