메인 콘텐츠로 건너뛰기
플러그인으로 돌아가기
@capgo/capacitor-appinsights
튜토리얼
@capgo/capacitor-appinsights

AppInsights

Apptopia AppInsights를 사용하여 앱 사용량, 성능 지표 및 사용자 행동을 추적하세요.

도움말

앱 인사이트에 대한 튜토리얼

장치에서 테스트

Capgo 앱을 다운로드한 후 QR코드 code를 스캔하세요.

앱 인사이트 플러그인 미리보기 QR code

@capgo/capacitor-앱인사이트 사용

앱 인사이트 플러그인에 대한 래퍼 https://github.com/apptopia/appinsights SDK.

설치

bun add @capgo/capacitor-appinsights
bunx cap sync

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

  • init - AppInsights SDK을 초기화합니다.
  • setUserId - 초기화 후 사용자 ID를 설정하거나 업데이트합니다.
  • getState - AppInsights SDK의 현재 상태를 가져옵니다.

사용 예

init

AppInsights SDK을 초기화합니다.

import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';

await CapacitorAppInsights.init({} as {
    partnerId: string; // Provided by our business unit
    partnerKey: string; // Provided by our business unit
  });

setUserId

사용자 ID를 설정하거나 업데이트합니다.

import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';

await CapacitorAppInsights.setUserId({} as { userId: string });

getState

AppInsights SDK의 현재 상태를 가져옵니다.

import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';

await CapacitorAppInsights.getState();

전체 참조

Keep going from Using @capgo/capacitor-appinsights

__CAPGO_KEEP_0__ Using @capgo/capacitor-appinsights __CAPGO_KEEP_0__ @capgo/capacitor-appinsights for the implementation detail in @capgo/capacitor-appinsights, Getting Started __CAPGO_KEEP_0__ Capgo Plugin Directory 제품 워크플로우를 위한 Capgo 플러그인 디렉토리에서 Capacitor 플러그인은 Capgo에서 제공합니다. 제품 워크플로우를 위한 Capacitor 플러그인 디렉토리, Capacitor 플러그인은 Capgo에서 제공하는 구현 세부 정보, 그리고 플러그인 추가 또는 업데이트 플러그인 추가 또는 업데이트 구현 세부 정보를 위한