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

AppInsights

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

Capgo Live Update의 문서 보기

Capgo AppInsights의 저장소 보기

Capacitor AppInsights을 __CAPGO_KEEP_0__에서 보기

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

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

현재 SDK 상태를 가져오세요.

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

await CapacitorAppInsights.getState();

전체 참조

Using @capgo/capacitor-appinsights에서 계속 진행하세요.

이 플러그인을 사용하고 있다면 Using @capgo/capacitor-appinsights 자연 플러그인 작업을 계획하는 경우 @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-appinsights와 연결하세요. Using @capgo/capacitor-appinsights for the implementation detail in @capgo/capacitor-appinsights, 시작하기 Capacitor-__CAPGO_KEEP_0__-appinsights 구현 세부 사항에 대해 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 Capacitor-__CAPGO_KEEP_0__ 플러그인 구현 세부 사항, 그리고 플러그인 추가 또는 업데이트