Modules@robinpath/mixpanel

@robinpath/mixpanel

0.1.1Public

Mixpanel module for RobinPath.

@robinpath/mixpanel

Mixpanel module for RobinPath.

Category Functions Auth License

Why use this module?

The mixpanel module lets you:

  • trackEvent
  • trackBatch
  • identifyUser
  • deleteUserProfile
  • exportEvents

All functions are callable directly from RobinPath scripts with a simple, consistent API.

Installation

npm install @robinpath/mixpanel

Quick Start

1. Set up credentials

mixpanel.setCredentials "your-credentials"

2. trackEvent

mixpanel.trackEvent

Available Functions

FunctionDescription
mixpanel.setCredentialsConfigure mixpanel credentials.
mixpanel.trackEventtrackEvent
mixpanel.trackBatchtrackBatch
mixpanel.identifyUseridentifyUser
mixpanel.setUserProfilesetUserProfile
mixpanel.deleteUserProfiledeleteUserProfile
mixpanel.exportEventsexportEvents
mixpanel.getTopEventsgetTopEvents
mixpanel.getEventStatsgetEventStats
mixpanel.getFunnelReportgetFunnelReport
mixpanel.getRetentiongetRetention
mixpanel.getSegmentationgetSegmentation
mixpanel.listCohortslistCohorts
mixpanel.getInsightsgetInsights
mixpanel.queryJqlqueryJql

Examples

trackEvent

mixpanel.trackEvent

trackBatch

mixpanel.trackBatch

identifyUser

mixpanel.identifyUser

Integration with RobinPath

import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/mixpanel";

const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);

const result = await rp.executeScript(`
  mixpanel.setCredentials "your-credentials"
  mixpanel.trackEvent
`);

Full API Reference

See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.

Related Modules

License

MIT

Versions (1)

VersionTagPublished
0.1.1latestyesterday
Install
$ robinpath install @robinpath/mixpanel
Version0.1.1
LicenseMIT
Unpacked Size4.1 KB
Versions1
Weekly Downloads0
Total Downloads0
Stars0
Last Publishyesterday
Createdyesterday

Category

data