- route definition
- Url: /api/v1/analytics/behavior
- Method: GET
- Request:
BehaviorRequest - Response:
BehaviorResponse
- request definition
type BehaviorRequest struct {
GameId string `form:"gameId,optional"`
Env string `form:"env,optional"`
StartDate string `form:"startDate,optional"`
EndDate string `form:"endDate,optional"`
}
- response definition
type BehaviorResponse struct {
TopActions interface{} `json:"topActions"`
UserFlows interface{} `json:"userFlows"`
HeatMap interface{} `json:"heatMap"`
}
- route definition
- Url: /api/v1/analytics/behavior/adoption
- Method: GET
- Request:
BehaviorAdoptionRequest - Response:
BehaviorAdoptionResponse
- request definition
type BehaviorAdoptionRequest struct {
GameId string `form:"gameId,optional"`
Env string `form:"env,optional"`
Feature string `form:"feature,optional"`
StartDate string `form:"startDate,optional"`
EndDate string `form:"endDate,optional"`
}
- response definition
type BehaviorAdoptionResponse struct {
Features []FeatureAdoption `json:"features"`
}
- route definition
- Url: /api/v1/analytics/behavior/adoption/breakdown
- Method: GET
- Request:
BehaviorAdoptionBreakdownRequest - Response:
BehaviorAdoptionBreakdownResponse
- request definition
type BehaviorAdoptionBreakdownRequest struct {
GameId string `form:"gameId,optional"`
Env string `form:"env,optional"`
Feature string `form:"feature"`
StartDate string `form:"startDate,optional"`
EndDate string `form:"endDate,optional"`
}
- response definition
type BehaviorAdoptionBreakdownResponse struct {
BySegment interface{} `json:"bySegment"`
ByTime interface{} `json:"byTime"`
}
- route definition
- Url: /api/v1/analytics/behavior/events
- Method: GET
- Request:
BehaviorEventsRequest - Response:
BehaviorEventsResponse
- request definition
type BehaviorEventsRequest struct {
GameId string `form:"gameId,optional"`
Env string `form:"env,optional"`
EventType string `form:"eventType,optional"`
StartDate string `form:"startDate,optional"`
EndDate string `form:"endDate,optional"`
Limit int `form:"limit,optional,default=100"`
}
- response definition
type BehaviorEventsResponse struct {
Items []BehaviorEvent `json:"items"`
Total int64 `json:"total"`
}
- route definition
- Url: /api/v1/analytics/behavior/funnel
- Method: POST
- Request:
BehaviorFunnelRequest - Response:
BehaviorFunnelResponse
- request definition
type BehaviorFunnelRequest struct {
GameId string `form:"gameId,optional"`
Env string `form:"env,optional"`
Steps []string `json:"steps"`
StartDate string `form:"startDate,optional"`
EndDate string `form:"endDate,optional"`
}
- response definition
type BehaviorFunnelResponse struct {
Steps []FunnelStep `json:"steps"`
}
- route definition
- Url: /api/v1/analytics/behavior/paths
- Method: GET
- Request:
BehaviorPathsRequest - Response:
BehaviorPathsResponse
- request definition
type BehaviorPathsRequest struct {
GameId string `form:"gameId,optional"`
Env string `form:"env,optional"`
StartDate string `form:"startDate,optional"`
EndDate string `form:"endDate,optional"`
Depth int `form:"depth,optional,default=5"`
}
- response definition
type BehaviorPathsResponse struct {
Paths interface{} `json:"paths"`
}