메인 콘텐츠로 건너뛰기

Contentsquare Capacitor 플러그인

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

설치

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 사용 방법

Using @capgo/capacitor-contentsquare

Capacitor에서 Contentsquare-__CAPGO_KEEP_1__을 구현한 내부 네이티브 브리지 계약

설치

bun add @capgo/capacitor-contentsquare
bunx cap sync

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

import

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

API의 주요 기능

메서드 설명
optIn 현재 동작을 확인하려면 소스 정의를 참조하세요.
optOut 현재 동작을 확인하려면 소스 정의를 참조하세요.
sendScreenName 현재 동작을 확인하려면 소스 정의를 참조하세요.
sendTransaction 현재 동작을 확인하려면 소스 정의를 참조하세요.
sendDynamicVarWithStringValue 현재 동작에 대한 원본 정의를 참조하십시오.
sendDynamicVarWithIntValue 현재 동작에 대한 원본 정의를 참조하십시오.
onReady 현재 동작에 대한 원본 정의를 참조하십시오.
excludeURLForReplay 현재 동작에 대한 원본 정의를 참조하십시오.
setPIISelectors 현재 동작에 대한 원본 정의를 참조하십시오.
setCapturedElementsSelector 현재 동작에 대한 원본 정의를 참조하십시오.
collect 현재 동작에 대한 원본 정의를 참조하십시오.

예시

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를 사용하는 경우 계속 진행하십시오.

__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-contentsquare를 사용하는 경우 Using @capgo/capacitor-contentsquare __CAPGO_KEEP_0__/__CAPGO_KEEP_1__-contentsquare @capgo/capacitor-contentsquare @capgo/capacitor-contentsquare 시작하기 @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-contentsquare Capgo 플러그인 디렉토리 @Capgo/__CAPGO_KEEP_1__ 플러그인 @Capacitor/Capgo 플러그인 Capacitor 플러그인에 대한 구현 세부 사항은 Capgo 플러그인에 의해 제공됩니다. @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-contentsquare @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-contentsquare

FAQ

Contentsquare 플러그인 FAQ

Contentsquare 플러그인을 Capacitor 앱에 설치하는 방법은 어떻게 되나요?

Contentsquare 플러그인을 설치하려면 "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가 작동하는가요?

Yes. Contentsquare is a Capacitor package, so it works with any web framework that runs inside Capacitor, including Ionic, React, Vue, Angular, Svelte and plain JavaScript.

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.

@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 라이브 업데이트 사용자에게 JavaScript, HTML 및 CSS 변경을 몇 분 안에 푸시합니다.

시작하기 Capgo