메인 콘텐츠로 건너뛰기
플러그인으로 돌아가기
@capgo/capacitor-appsflyer
튜토리얼
github.com/Cap-go에서 github

AppsFlyer

Capacitor 앱에 AppsFlyer attribution, analytics, deferred deep links, 및 OneLink 지원을 추가하세요

가이드

AppsFlyer에 대한 튜토리얼

AppsFlyer attribution, analytics, 및 deep links를 위한 @capgo/capacitor-appsflyer 사용

Capacitor AppsFlyer attribution, analytics, 및 deep links 플러그인

설치

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를 교차 참조할 수 있습니다. 이 ID는 원본 데이터 보고서와 Postback API에서 교차 참조하기 위해 내부 ID와 함께 사용할 수 있습니다.

예시 사용법

initSDK

이 메서드를 사용하여 앱스 플라이어 SDK를 초기화하고 시작합니다. 이 API은 앱이 시작되자마자 호출되어야 합니다.

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

await AppsFlyer.initSDK({} as AFInit);

startSDK

이 메서드를 사용하여 앱스 플라이어 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를 교차 참조할 수 있습니다. 이 ID는 원본 데이터 보고서와 Postback API에서 교차 참조하기 위해 내부 ID와 함께 사용할 수 있습니다.

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

await AppsFlyer.setCustomerUserId({} as AFCuid);

전체 참조