콘텐츠로 건너뛰기

Android Notes

이 콘텐츠는 아직 귀하의 언어로 제공되지 않습니다.

Android does not require extra host-app setup for the plugin itself. Once installed and synced, the plugin registers the main Capacitor WebView, injects the Contentsquare event bridge, and exposes the documented JavaScript APIs.

  • Registers the Capacitor WebView with the native Contentsquare SDK.
  • Exposes optIn, optOut, sendScreenName, sendTransaction, and dynamic variable APIs.
  • Injects replay-related commands such as URL exclusion, PII masking, and captured element selectors.

Filter Android Studio Logcat with:

CSLIB

You should see the native Contentsquare SDK startup message and the WebView bridge registration during app launch.

import { ContentsquarePlugin } from '@capgo/capacitor-contentsquare';
await ContentsquarePlugin.optIn();
await ContentsquarePlugin.sendScreenName('Home');

Without at least one screenview, the session is not kept by Contentsquare.

  • Keys are limited by Contentsquare to 512 characters.
  • Values must be either a string or a non-negative integer.
  • If you want a value on every session, send it again when the app returns to foreground.