メインコンテンツにスキップ
プラグインに戻る
@capgo/capacitor-appinsights
チュートリアル
@capgo/capacitor-appinsights

AppInsights

Apptopia AppInsights を使用してアプリの使用状況、パフォーマンス メトリック、ユーザー ビヘイビアを追跡します。

ガイド

AppInsightsのチュートリアル

デバイスでテスト

Download the Capgo app, then scan the QR code.

AppInsights プラグイン プレビュー QR code

AppInsights プラグインの使用 (@capgo/capacitor-appinsights)

AppInsights プラグインのラッパー 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 を使用して、ネイティブ プラグインの作業を計画する場合、Capacitor AppInsights を接続してください。 @capgo/capacitor-appinsights Capacitorアプリインサイトプラグインの実装詳細については、@capgo/capacitor-appinsightsを参照してください。 Getting Started 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 プラグインの追加または更新 プラグインの追加または更新の実装詳細については、プラグインの追加または更新を参照してください。