본문으로 바로가기
플러그인으로 돌아가기
@capgo/capacitor-appsflyer
튜토리얼
by github.com/Cap-go

앱스 플라이어

Capacitor 앱에 앱스 플라이어 attribution, analytics, deferred deep links, 및 OneLink 지원을 추가하세요.

가이드

앱스 플라이어에 대한 튜토리얼

앱스 플라이어 플러그인을 사용하는 방법: @capgo/capacitor-appsflyer

Capacitor AppsFlyer attribution, 분석 및 심층 링크 플러그인.

Install

bun add @capgo/capacitor-appsflyer
bunx cap sync

이 플러그인은 다음을 제공합니다.

  • initSDK - Use this method to initialize and start AppsFlyer SDK. This API should be called as soon as the app launched.
  • startSDK - 수동 시작 모드에서만 AppsFlyer SDK를 시작하는 데 사용합니다.
  • logEvent - 앱 내 이벤트를 로깅합니다.
  • setCustomerUserId - 고객 ID를 설정하면 앱스 플라이어의 고유 ID와 다른 기기의 고유 ID와 교차 참조할 수 있습니다. 이 ID는 원시 데이터 보고서 및 Postback API에서 내부 ID와 교차 참조할 수 있습니다.

예제 사용

initSDK

Use this method to initialize and start AppsFlyer SDK. This API should be called as soon as the app launched.

import { AppsFlyer } from '@capgo/capacitor-appsflyer';

await AppsFlyer.initSDK({} as AFInit);

startSDK

AppsFlyer SDK를 수동 시작 모드에서만 시작하는 데 사용합니다.

import { AppsFlyer } from '@capgo/capacitor-appsflyer';

await AppsFlyer.startSDK();

logEvent

앱 내 이벤트를 로깅합니다.

import { AppsFlyer } from '@capgo/capacitor-appsflyer';

await AppsFlyer.logEvent({} as AFEvent);

setCustomerUserId

고객 ID를 설정하면 앱스 플라이어의 고유 ID와 다른 기기의 고유 ID와 교차 참조할 수 있습니다. 이 ID는 원시 데이터 보고서 및 Postback API에서 내부 ID와 교차 참조할 수 있습니다.

import { AppsFlyer } from '@capgo/capacitor-appsflyer';

await AppsFlyer.setCustomerUserId({} as AFCuid);

전체 참조