コンテンツに進む

無料で始める

GitHub

CapgoのAI-Assisted Setupを使用してプラグインをインストールできます。AIツールにCapgoスキルを追加するには、以下のコマンドを実行してください。

ターミナル画面
npx skills add https://github.com/Cap-go/capgo-skills --skill capacitor-plugins

コンテキスト: Capgoのマーケティングウェブサイト。役割: UIラベル。見られる場所: ページエージェント/[slug].astro。メッセージキー `agents_page_copy_label` (エージェントページコピーラベル)。

Use the `capacitor-plugins` skill from `Cap-go/capgo-skills` to install the `@capgo/capacitor-contentsquare` plugin in my project.

次に、以下のプロンプトを使用してください。

  1. Manual Setupを使用する場合は、以下のコマンドを実行してプラグインをインストールし、以下のプラットフォーム固有の指示に従ってください。

    トイスバースト
    npm i @capgo/capacitor-contentsquare
  2. コンターバーストメコト

    ターミナル画面
    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.
  • JavaScript APIは、現在のContentsquare Capacitorドキュメントと同期されます。パッケージングとネイティブビルド設定はCapacitor 8にターゲットされています。

続けてください

「続けてください」

あなたが使用している 「Getting Started」 を使用してネイティブプラグインの作業を計画する場合、接続するには 「@capgo/capacitor-contentsquare」を使用します。 「@capgo/capacitor-contentsquare」を使用してネイティブ機能を使用する 「Capgo プラグインディレクトリ」 for the product workflow in Capgo Plugin Directory, Capacitor Capgo Capgoの実装詳細については、Capacitor プラグインによって Capgo で管理されます。 プラグインの追加または更新 プラグインの追加または更新の実装詳細については Capgoエンタープライズプラグインの代替 Capgoエンタープライズプラグインの代替の製品ワークフローについては