Skip to main content
Back to plugins
@capgo/capacitor-rudderstack
Tutorial
by github.com/Cap-go

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