메인 콘텐츠로 건너뛰기

Contentsquare Capacitor 플러그인

Capacitor에서 Contentsquare 모바일 분석, 동의 게이트, 화면 추적, 거래, 세션 재생 제어를 통합합니다.

설치

bun add @capgo/capacitor-contentsquare bunx cap sync
npm, pnpm 또는 yarn
  • npm install @capgo/capacitor-contentsquare
  • pnpm add @capgo/capacitor-contentsquare
  • yarn add @capgo/capacitor-contentsquare

가이드

Capacitor에서 Contentsquare 사용하는 방법

장치에서 테스트

Capgo 앱을 다운로드한 후 QR code를 스캔하세요.

Contentsquare 플러그인 미리보기 QR code

@capgo/capacitor-contentsquare 사용

Capacitor에서 내장 네이티브 브리지 계약이 implement되었습니다.

설치

bun add @capgo/capacitor-contentsquare
bunx cap sync

bunx cap sync 플러그인의 네이티브 code을 프로젝트에 복사합니다. 플러그인 업그레이드 후 다시 실행하세요.

수입

import { Contentsquare } from '@capgo/capacitor-contentsquare';

API의 개요

메서드 설명
optIn 현재 동작을 위한 원본 정의를 참조하십시오.
optOut 현재 동작을 위한 원본 정의를 참조하십시오.
sendScreenName 현재 동작을 위한 원본 정의를 참조하십시오.
sendTransaction 현재 동작을 위한 원본 정의를 참조하십시오.
sendDynamicVarWithStringValue 현재 동작을 위한 원본 정의를 참조하십시오.
sendDynamicVarWithIntValue 현재 동작을 위한 원본 정의를 참조하십시오.
onReady 현재 동작을 위한 원본 정의를 참조하십시오.
excludeURLForReplay 현재 동작을 위한 원본 정의를 참조하십시오.
setPIISelectors 현재 동작을 위한 원본 정의를 참조하십시오.
setCapturedElementsSelector 현재 동작을 위한 원본 정의를 참조하십시오.
collect 현재 동작을 위한 원본 정의를 참조하십시오.

Examples

optIn()

현재 계약에 대한 API 참조를 참조하십시오.

import { Contentsquare } from '@capgo/capacitor-contentsquare';

await Contentsquare.optIn();

optOut()

현재 계약에 대한 API 참조를 참조하십시오.

import { Contentsquare } from '@capgo/capacitor-contentsquare';

await Contentsquare.optOut();

sendScreenName()

현재 계약에 대한 API 참조를 참조하십시오.

import { Contentsquare } from '@capgo/capacitor-contentsquare';

await Contentsquare.sendScreenName({ name: 'example' });

sendTransaction()

현재 계약에 대한 API 참조를 참조하십시오.

import { Contentsquare, CurrencyCode } from '@capgo/capacitor-contentsquare';

await Contentsquare.sendTransaction({
  transactionValue: 1,
  transactionCurrency: CurrencyCode.USD,
});

sendDynamicVarWithStringValue()

현재 계약에 대한 API 참조를 참조하십시오.

import { Contentsquare } from '@capgo/capacitor-contentsquare';

await Contentsquare.sendDynamicVarWithStringValue({
  dynVarKey: 'dyn-var-key-123',
  dynVarValue: 'dyn-var-value',
});

sendDynamicVarWithIntValue()

현재 계약에 대한 API 참조를 참조하십시오.

import { Contentsquare } from '@capgo/capacitor-contentsquare';

await Contentsquare.sendDynamicVarWithIntValue({
  dynVarKey: 'dyn-var-key-123',
  dynVarValue: 'dyn-var-value',
});

위 표에는 11 개의 핵심 메서드가 나열되어 있습니다. 리스너 및 버전 도우미 및 각 메서드의 전체 계약은 __CAPGO_KEEP_0__ 저장소에서 문서화되어 있습니다. GitHub 참조.

전체 참조

@capgo/capacitor-contentsquare

Capacitor Contentsquare을 사용 중이라면 @capgo/capacitor-contentsquare Capacitor Contentsquare을 연결하여 @capgo/capacitor-contentsquare @capgo/capacitor-contentsquare 구현 세부사항을 위해 Getting Started의 구현 세부 사항을 참조하세요. Capacitor Plugin 디렉토리 Capgo 플러그인 디렉토리 Capgo 제품 워크플로우를 위한 플러그인 디렉토리 Capacitor Capgo 플러그인 for Capacitor 구현 세부 사항에 대한 Capgo 플러그인에 의해 플러그인 추가 또는 업데이트 플러그인 추가 또는 업데이트 구현 세부 사항에 대한 설명입니다.

FAQ

Contentsquare 플러그인 FAQ

Contentsquare 플러그인을 Capacitor 앱에 설치하는 방법은 무엇입니까?

Run "bun add @capgo/capacitor-contentsquare" (또는 "npm install @capgo/capacitor-contentsquare"), 그리고 "bunx cap sync"을 실행하여 iOS 및 Android 프로젝트가 네이티브 code를 인식하도록 하세요. 그리고 "@capgo/capacitor-contentsquare"을 앱 code에서 임포트하세요.

React, Vue 및 Angular과 함께 @capgo/capacitor-contentsquare가 작동합니까?

네. Contentsquare는 Capacitor 패키지이므로, Ionic, React, Vue, Angular, Svelte 및 plain JavaScript와 같은 웹 프레임워크가 Capacitor 내부에서 실행되는 경우에 작동합니다.

어떤 Capacitor 버전이 @capgo/capacitor-contentsquare를 지원합니까?

Capgo plugins follow Capacitor's major version: use the plugin major version that matches your Capacitor major version (for example plugin v8 with Capacitor 8). The compatibility table in the GitHub README lists the maintained versions.

Is @capgo/capacitor-contentsquare 무료이며 오픈 소스입니까?

Yes. The source code is public on GitHub at https://github.com/Cap-go/capacitor-contentsquare/ and the package is free to install from npm. Bug reports and pull requests are welcome.

Contentsquare를 사용하는 code를 App Store 리뷰 없이 업데이트할 수 있습니까?

code를 업데이트하거나 업그레이드하면 네이티브 code이 변경되므로, 새로운 스토어 빌드를 필요로 합니다. 그 후에 JavaScript, HTML 및 CSS 변경 사항이 플러그인을 호출하는 경우 Capgo 라이브 업데이트와 함께 즉시 배포할 수 있습니다.

Contentsquare 변경 사항을 앱 리뷰 대기 없이 배포하세요

플러그인이 스토어 빌드에 포함된 후, Capgo 라이브 업데이트은 사용자에게 몇 분만에 자바스크립트, HTML 및 CSS 변경 사항을 푸시합니다.

Capgo으로 시작하세요