__CAPGO_KEEP_11__
__CAPGO_KEEP_4__
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-rudderstack`
Run the required Capacitor sync/update step after installation.
Read this markdown guide for the full setup steps: https://raw.githubusercontent.com/Cap-go/website/refs/heads/main/apps/docs/src/content/docs/docs/plugins/rudderstack/getting-started.mdx
Use that guide for platform-specific steps, native file edits, permissions, config changes, imports, and usage setup.
If that guide references other docs pages, read them too.
__CAPGO_KEEP_11__
설치란 제목Capgo AI 도구에 다음 명령어를 사용하여 플러그인을 설치할 수 있습니다.
npx skills add https://github.com/Cap-go/capgo-skills --skill capacitor-plugins그다음 다음 프롬프트를 사용하세요.
Use the `capacitor-plugins` skill from `Cap-go/capgo-skills` to install the `@capgo/capacitor-rudderstack` plugin in my project.만약에 수동 설치를 원한다면, 플러그인을 설치하기 위해 다음 명령어를 실행하고 아래의 플랫폼에 맞는 설명을 따라하세요.
bun add @capgo/capacitor-rudderstackbunx cap syncImport
임포트란 제목import { nativePlugin } from '@capgo/capacitor-rudderstack';API 개요
API 개요 섹션initialize
__CAPGO_KEEP_0__ 섹션RudderStack 클라이언트를 초기화합니다.
메소드는 Cordova 서명이 유지되므로 두 번째 인자는 config 객체 또는 Rudder 옵션 객체 둘 중 하나일 수 있습니다.
import { nativePlugin } from '@capgo/capacitor-rudderstack';
await nativePlugin.initialize('value');identify
__CAPGO_KEEP_0__ 섹션사용자 ID를 제공하여 identify 호출을 보냅니다.
import { nativePlugin } from '@capgo/capacitor-rudderstack';
await nativePlugin.identify('value');group
__CAPGO_KEEP_0__ 섹션그룹 ID를 제공하여 그룹 호출을 보냅니다.
import { nativePlugin } from '@capgo/capacitor-rudderstack';
await nativePlugin.group('value');track
tracktrack
import { nativePlugin } from '@capgo/capacitor-rudderstack';
await nativePlugin.track('value');screen
__CAPGO_KEEP_0__screen
import { nativePlugin } from '@capgo/capacitor-rudderstack';
await nativePlugin.screen('value');alias
__CAPGO_KEEP_0____CAPGO_KEEP_0__
import { nativePlugin } from '@capgo/capacitor-rudderstack';
await nativePlugin.alias('value');reset
alias__CAPGO_KEEP_0__
import { nativePlugin } from '@capgo/capacitor-rudderstack';
await nativePlugin.reset();즉시 큐된 이벤트를 처리합니다.
import { nativePlugin } from '@capgo/capacitor-rudderstack';
await nativePlugin.flush();putDeviceToken
Section titled “putDeviceToken”RudderStack이 지원하는 목적지로 푸시 토큰을 전달합니다.
import { nativePlugin } from '@capgo/capacitor-rudderstack';
await nativePlugin.putDeviceToken('value');setAdvertisingId
Section titled “setAdvertisingId”현재 계약의 소스 정의를 참조하세요.
import { nativePlugin } from '@capgo/capacitor-rudderstack';
await nativePlugin.setAdvertisingId('value');putAdvertisingId
Section titled “putAdvertisingId”사용자 지정 광고 ID 값을 설정합니다.
import { nativePlugin } from '@capgo/capacitor-rudderstack';
await nativePlugin.putAdvertisingId('value');setAnonymousId
__CAPGO_KEEP_0____CAPGO_KEEP_0__
import { nativePlugin } from '@capgo/capacitor-rudderstack';
await nativePlugin.setAnonymousId('value');putAnonymousId
__CAPGO_KEEP_0____CAPGO_KEEP_2__
import { nativePlugin } from '@capgo/capacitor-rudderstack';
await nativePlugin.putAnonymousId('value');optOut
__CAPGO_KEEP_0____CAPGO_KEEP_3__
import { nativePlugin } from '@capgo/capacitor-rudderstack';
await nativePlugin.optOut(true);__CAPGO_KEEP_4__
__CAPGO_KEEP_0__RudderConfiguration
__CAPGO_KEEP_5__RudderStack native SDK의 underlying 기본 설정 키를 지원합니다.
export interface RudderConfiguration { /** * RudderStack data plane URL. */ dataPlaneUrl?: string;
/** * Number of events to batch before a flush. */ flushQueueSize?: number;
/** * Database row threshold that triggers pruning on Android and iOS. */ dbCountThreshold?: number;
/** * Server config refresh interval in hours. */ configRefreshInterval?: number;
/** * RudderStack log verbosity. */ logLevel?: RudderLogLevelValue;
/** * Sleep timeout / sleep count used by the native SDK. */ sleepTimeOut?: number;
/** * Android only. Lets the native SDK collect the advertising identifier automatically. */ autoCollectAdvertId?: boolean;
/** * Tracks `Application Installed`, `Application Updated`, and `Application Opened` automatically. */ trackLifecycleEvents?: boolean;
/** * RudderStack control plane URL. */ controlPlaneUrl?: string;
/** * Enables automatic screen tracking where supported by the native SDK. */ recordScreenViews?: boolean;
/** * Ignored in this Capacitor port. * * The Cordova SDK uses this field to bootstrap native destination factories from companion plugins. * Those extension packages are not implemented in this first Capacitor release. */ factories?: any[];}RudderOptions
RudderOptionsRudderStack 호출당 옵션.
export interface RudderOptions { /** * External identifiers forwarded with the event. */ externalIds?: Record<string, string>;
/** * Destination enablement flags keyed by integration name. */ integrations?: Record<string, boolean>;}RudderTraits
RudderTraitsRudderStack가 받을 수 있는 Traits payload. identify __CAPGO_KEEP_1__와 group.
export type RudderTraits = Record<string, any>;RudderProperties
RudderPropertiesRudderStack가 받을 수 있는 Properties payload. track __CAPGO_KEEP_1__와 screen.
export type RudderProperties = Record<string, any>;PluginVersionResult
PluginVersionResult버전 플러그인 결과
export interface PluginVersionResult { /** * Version identifier returned by the platform implementation. */ version: string;}RudderLogLevelValue
RudderLogLevelValue로그 수준을 위한 이주 용이성
export type RudderLogLevelValue = 0 | 1 | 2 | 3 | 4 | 5;이 페이지는 플러그인의 src/definitions.ts. upstream에서 API가 변경되면 다시 싱크를 실행하세요.
Getting Started
Getting Started를 시작한 후 계속하기__CAPGO_KEEP_0__을 사용 중이라면 Getting Started API의 대시보드와 API 연산을 계획하는 데 사용하는 경우 capgo/capacitor-rudderstack @을 사용하세요. capgo/capacitor-rudderstack @의 원시 기능을 사용하는 경우 API 개요 API 개요의 구현 세부 정보를 보려면 소개 소개의 구현 세부 정보를 보려면 API 키 API 키의 구현 세부 정보를 보려면 기기 기기 구현 세부 사항에 대한 Devices.