メインコンテンツにジャンプ

Getting Started

GitHub
  1. このプラグインをインストールします

    ターミナル画面
    npm i @capgo/capacitor-contentsquare
  2. Sync native platforms

    トミートスト、パックスト
    npx cap sync
  3. アップストリーム製品の設定を確認する

import { ContentsquarePlugin, CurrencyCode } from '@capgo/capacitor-contentsquare';
await ContentsquarePlugin.optIn();
await ContentsquarePlugin.sendScreenName('Home');
await ContentsquarePlugin.sendTransaction({
transactionValue: 29.99,
transactionCurrency: CurrencyCode.EUR,
transactionId: 'order-123',
});
await ContentsquarePlugin.sendDynamicVar({
dynVarKey: 'store',
dynVarValue: 'rome',
});
  • 安定した名前を使用するのではなく、ユーザー固有の値を使用するのではなく。
  • iOS と Android のナビゲーション スタックで同じ命名規則を維持する。
  • アプリが前景に戻ると、画面名と重要なダイナミック変数を再送信する。

セッション再生から敏感なコンテンツを除外するために、組み込みのマスクヘルパーを使用してください:

await ContentsquarePlugin.excludeURLForReplay('/checkout/');
await ContentsquarePlugin.setCapturedElementsSelector('[data-cs-capture]');
await ContentsquarePlugin.setPIISelectors({
PIISelectors: ['input[type="email"]', '.credit-card'],
Attributes: [{ selector: 'input[name="email"]', attrName: 'value' }],
});

プラットフォームのセットアップ

セクション「プラットフォームのセットアップ」
  • iOSのインアプリ機能の場合、デープリンクの追加のワイヤリングを完了してください。 iOSのセットアップ ページ。
  • Androidには、プラグイン自体のための追加のマニフェストのワイヤリングが必要ありません。 Androidの注記 ログと検証のためのヒントを参照してください。
  • This plugin is a Capacitor 8 community port of the official Contentsquare Capacitor package.
  • The JavaScript API stays aligned with the current Contentsquare Capacitor docs, while the packaging and native build setup target Capacitor 8.

Getting Started

Getting Started

公式のContentsquareパッケージのコミュニティ8版を使用している場合 公式のContentsquareパッケージのコミュニティ8版を使用している場合 公式のContentsquareパッケージのコミュニティ8版を使用している場合 Using @capgo/capacitor-contentsquare for the native capability in Using @capgo/capacitor-contentsquare, Capgo プラグインディレクトリ Capgo プラグイン ディレクトリ内での製品ワークフローについて Capacitor プラグインは Capgo によって提供されます Capacitor プラグインの実装詳細については Capgo を参照してください プラグインの追加または更新 __CAPGO_KEEP_0__ プラグインの実装詳細についてはプラグインの追加または更新を参照してください、 Ionic Enterprise プラグインの代替 __CAPGO_KEEP_0__ プラグインの代替として Ionic Enterprise プラグインを使用する