Skip to content

Getting Started

GitHub
  1. 플러그인을 설치하세요.

    터미널 창
    npm i @capgo/capacitor-contentsquare
  2. 터미널 창

    터미널 창
    npx cap sync
  3. __CAPGO_KEEP_0__

기본 사용법

기본 사용법
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 네비게이션 스택에서 동일한 이름 규칙을 유지하세요.
  • 앱이 전면으로 돌아오면 스크린 이름 및 중요 동적 변수를 다시 보내세요.

개인 정보 보호를 위한 재생 제어

개인 정보 보호를 위한 재생 제어 섹션 제목

Session Replay에서敏感한 콘텐츠를 제외하기 위해 내장된 마스킹 도우미를 사용하십시오.

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 인앱 기능을 위해 추가적인 deeplink 연결을 iOS 설정 페이지에서 완료하십시오. iOS 설정 Android는 플러그인 자체에 대한 추가 매니페스트 연결이 필요하지 않습니다. 플러그인 자체에 대한 로깅 및 유효성 검사 팁을 보려면
  • Android 참고 사항 로그 및 유효성 검사 팁을 보려면. Android에 대한 로깅 및 유효성 검사 팁을 보려면.

Notes

Notes
  • This plugin is a Capacitor 8 community port of the official Contentsquare Capacitor package.
  • 자바스크립트 API는 현재 Contentsquare Capacitor 문서와 동기화되며 패키징 및 네이티브 빌드 설정은 Capacitor 8을 목표로합니다.

Getting Started에서 계속하기

Getting Started에서 계속하기

이 플러그인을 사용하는 경우 Getting Started native 플러그인 작업을 계획하는 경우, __CAPGO_KEEP_0__-contentsquare를 __CAPGO_KEEP_1__로 연결하세요. Using @capgo/capacitor-contentsquare native 기능을 사용하는 경우 @capgo/capacitor-contentsquare Capgo 플러그인 디렉토리 Capgo Plugin 디렉토리에서 제품 워크플로우를 위한 Capacitor 플러그인은 Capgo에 의해 제공됩니다. Capacitor 플러그인에 대한 구현 세부 정보는 Capgo에 의해 제공됩니다. 플러그인 추가 또는 업데이트 __CAPGO_KEEP_0__ 플러그인에 대한 구현 세부 정보는 플러그인 추가 또는 업데이트에 의해 제공됩니다. 아이오닉 엔터프라이즈 플러그인 대체 __CAPGO_KEEP_0__ 플러그인에 대한 제품 워크플로우는 아이오닉 엔터프라이즈 플러그인 대체에 의해 제공됩니다.