Skip to main content
Back to plugins
@capgo/capacitor-rudderstack
Tutorial
@capgo/capacitor-rudderstack

RudderStack

RudderStack analytics, identity resolution, screen tracking, and delivery controls for Capacitor

Guide

Tutorial on RudderStack

Using @capgo/capacitor-rudderstack

Capacitor API that mirrors the public surface of rudder-sdk-cordova.

Install

bun add @capgo/capacitor-rudderstack
bunx cap sync

What This Plugin Exposes

  • initialize - Initializes the RudderStack client.
  • identify - Sends an identify call for the provided user id.
  • group - Sends a group call for the provided group id.
  • track - Sends a track call for the provided event name.

Example Usage

initialize

Initializes the RudderStack client.

import { nativePlugin } from '@capgo/capacitor-rudderstack';

await nativePlugin.initialize('value');

identify

Sends an identify call for the provided user id.

import { nativePlugin } from '@capgo/capacitor-rudderstack';

await nativePlugin.identify('value');

group

Sends a group call for the provided group id.

import { nativePlugin } from '@capgo/capacitor-rudderstack';

await nativePlugin.group('value');

track

Sends a track call for the provided event name.

import { nativePlugin } from '@capgo/capacitor-rudderstack';

await nativePlugin.track('value');

Full Reference

Keep going from Using @capgo/capacitor-rudderstack

If you are using Using @capgo/capacitor-rudderstack to plan dashboard and API operations, connect it with @capgo/capacitor-rudderstack for the implementation detail in @capgo/capacitor-rudderstack, Getting Started for the implementation detail in Getting Started, API Overview for the implementation detail in API Overview, Introduction for the implementation detail in Introduction, and API Keys for the implementation detail in API Keys.