Skip to main content
플러그인으로 돌아가기
@capgo/capacitor-appinsights
튜토리얼
@capgo/capacitor-appinsights

AppInsights

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

디바이스에서 테스트

앱 인사이트 앱을 다운로드하고 QR 코드를 스캔하세요.

앱 스토어에서 앱 인사이트 앱을 다운로드하세요.

Download the Capgo app, then scan the QR code.

AppInsights 플러그인 미리보기 QR code

AppInsights 플러그인을 사용하는 @capgo/capacitor-appinsights

AppInsights 플러그인의 wrapper https://github.com/apptopia/appinsights SDK.

설치

bun add @capgo/capacitor-appinsights
bunx cap sync

이 플러그인이 노출하는 내용

  • init - AppInsights SDK 초기화
  • setUserId - 초기화 후 사용자 ID 설정 또는 업데이트
  • getState - AppInsights SDK의 현재 상태 가져오기

예제 사용법

init

Initialize the 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

Get the current state of the SDK.

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

await CapacitorAppInsights.getState();

전체 참조

Keep going from Using @capgo/capacitor-appinsights

Capacitor AppInsights를 사용 중이라면 Using @capgo/capacitor-appinsights Capacitor AppInsights와 연결 @capgo/capacitor-appinsights Capacitor-AppInsights 구현 세부 정보를 위해 @capgo/capacitor-appinsights, 시작하기 Capacitor 구현 세부 정보를 위해 Getting Started, Capgo Plugin Directory for the product workflow in Capgo Plugin Directory, Capacitor Plugins by Capgo for the implementation detail in Capacitor Plugins by Capgo, and 플러그인을 추가하거나 업데이트 플러그인 구현 세부 정보를 위해 플러그인을 추가하거나 업데이트.