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

AppInsights

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

Capgoのnpmを表示

ガイド

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 @capgo/capacitor-appinsights Getting Started @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__の導入 Capgo Plugin Directory @Capgo/Plugin Directoryの製品ワークフロー Capacitor Plugins by Capgo @Capacitor/CapacitorプラグインのCapgo プラグインの追加または更新 @__CAPGO_KEEP_0__/プラグインの追加または更新の詳細