Zum Hauptinhalt springen
Zurück zu plugins
@capgo/capacitor-App-Insights
Anleitung
@capgo/capacitor-App-Insights

App-Insights

Mit dem App-Insights-Plugin können Sie die Anwendungsnutzung, Leistungsmetriken und Benutzerverhalten mit Apptopia App-Insights verfolgen

Ansehen

Anleitung

Tutorial zu AppInsights

Download the Capgo app, then scan the QR code.

AppInsights-Plugin-Vorschau-QR code

Verwendung von @capgo/capacitor-appinsights

Ein Wrapper um den https://github.com/apptopia/appinsights SDK.

Installieren

bun add @capgo/capacitor-appinsights
bunx cap sync

Was diese Plugin-Exposen enthält

  • init - Initialisieren Sie den AppInsights SDK.
  • setUserId - Setzen oder aktualisieren Sie die Benutzer-ID nach der Initialisierung.
  • getState - Holen Sie sich den aktuellen Zustand des SDK.

Beispielhafte Verwendung

init

Initialisiere die 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

Setze oder aktualisiere die Benutzer-ID nach der Initialisierung.

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

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

getState

Ermittle den aktuellen Zustand der SDK.

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

await CapacitorAppInsights.getState();

Vollständige Referenz

Fahre mit der Verwendung von @capgo/capacitor-appinsights fort.

Wenn du die Verwendung von @capgo/capacitor-appinsights zum Planen von native Plug-in-Arbeiten verwendest, verbinde sie mit @capgo/capacitor-appinsights für die Implementierungsdetails in @capgo/capacitor-appinsights, Einstieg für die Implementierungsdetails in Einstieg, Capgo Plugin-Verzeichnis für den Produktworkflow in Capgo Plugin-Verzeichnis, Capacitor Plugins von Capgo für die Implementierungsdetails in Capacitor Plugins von Capgo, und Plugins hinzufügen oder aktualisieren für die Implementierungsdetails in Plugins hinzufügen oder aktualisieren.