모듈: analytics
목차
기능
- logGameChoice
- logLevelEnd
- logLevelStart
- logLevelUp
- logPurchase
- logPurchaseSubscription
- logScore
- logSocialInvite
- logSocialShare
- logTutorialEnd
- logTutorialStart
기능
logGameChoice
▸ logGameChoice(decision
, choice
): void
플레이어의 게임 내 선택 행동을 기록합니다. 게임의 균형을 맞추고 플레이어가 많이 이용하는 콘텐츠를 파악하는 데 도움이 되는 강력한 도구입니다.
예
매개변수
이름 | 유형 | 설명 |
---|---|---|
decision |
string |
플레이어가 내린 결정. |
choice |
string |
플레이어의 선택. |
Returns
void
Throws
- INVALID_PARAM
logLevelEnd
▸ logLevelEnd(level
, score
, wasCompleted
): void
레벨 종료 시점을 기록합니다. 레벨 타이머를 확실하게 기록하기 위해 레벨 이름은 이전에 logLevelStart로 호출한 레벨 이름과 일치해야 합니다. 일치하지 않으면 타이머는 '0'으로 기록됩니다.
예
매개변수
이름 | 유형 | 설명 |
---|---|---|
level |
string | number |
레벨 이름. |
score |
string | number |
플레이어의 점수. |
wasCompleted |
boolean |
레벨을 클리어했는지 여부. |
Returns
void
Throws
- INVALID_PARAM
logLevelStart
▸ logLevelStart(level
): void
레벨 시작을 기록합니다.
예
매개변수
이름 | 유형 | 설명 |
---|---|---|
level |
string | number |
레벨 이름. |
Returns
void
Throws
- INVALID_PARAM
logLevelUp
▸ logLevelUp(level
): void
플레이어가 새로운 레벨에 도달했음을 기록합니다.
예
매개변수
이름 | 유형 | 설명 |
---|---|---|
level |
string | number |
플레이어가 달성한 레벨. |
Returns
void
Throws
- INVALID_PARAM
logPurchase
▸ logPurchase(productID
, details?
): void
플레이어가 앱 내에서 제품을 구매한 것을 기록합니다.
예
매개변수
이름 | 유형 | 설명 |
---|---|---|
productID |
string |
플레이어가 구매한 제품 ID. |
details? |
string |
구매에 관한 기타 세부 사항. |
Returns
void
Throws
- INVALID_PARAM
logPurchaseSubscription
▸ logPurchaseSubscription(productID
, details?
): void
플레이어의 인앱 구독 구매를 기록합니다.
예
매개변수
이름 | 유형 | 설명 |
---|---|---|
productID |
string |
플레이어가 구매한 구독의 제품 ID. |
details? |
string |
구매에 관한 기타 세부 사항. |
Returns
void
Throws
- INVALID_PARAM
logScore
▸ logScore(score
): void
플레이어의 점수를 기록합니다.
예
매개변수
이름 | 유형 | 설명 |
---|---|---|
score |
string | number |
플레이어의 점수. |
Returns
void
Throws
- INVALID_PARAM
logSocialInvite
▸ logSocialInvite(placement
): void
플레이어의 SNS 초대를 기록합니다.
예
매개변수
이름 | 유형 | 설명 |
---|---|---|
placement |
string |
초대장 배치. |
Returns
void
logSocialShare
▸ logSocialShare(placement
): void
플레이어의 소셜 공유를 기록합니다.
예
매개변수
이름 | 유형 | 설명 |
---|---|---|
placement |
string |
공유의 배치. |
Returns
void
logTutorialEnd
▸ logTutorialEnd(tutorial
, wasCompleted
): void
튜토리얼 종료 시점을 기록합니다. 레벨 타이머를 확실히 기록하기 위해 튜토리얼 이름이 지난번에 logTutorialStart로 호출한 이름과 일치해야 합니다. 일치하지 않으면 타이머는 '0'으로 기록됩니다.
예
매개변수
이름 | 유형 | 설명 |
---|---|---|
tutorial |
string |
튜토리얼 이름. |
wasCompleted |
boolean |
튜토리얼은 끝났나요. |
Returns
void
logTutorialStart
▸ logTutorialStart(tutorial
): void
튜토리얼 시작을 기록합니다.
예
매개변수
이름 | 유형 | 설명 |
---|---|---|
tutorial |
string |
튜토리얼 이름. |
Returns
void