Skip to content

edgee-cloud/mixpanel-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mixpanel component for Edgee

Coverage Status GitHub issues Edgee Component Registry

This is a Rust-based Edgee component that integrates Mixpanel analytics using the Edgee Data Collection protocol. It allows you to track user events, page views, and identify users, sending data to Mixpanel via the /import and /engage APIs.


✨ Features

  • ✅ Track custom user events (track)
  • ✅ Track page views (page)
  • ✅ Identify and update users (user)
  • ✅ Built for Edge execution: fast, secure, serverless

🔧 Settings

This component requires the following settings:

Key Type Required Description
api_secret string Your Mixpanel API Secret (from Project Settings > Access Keys)
project_token string Your Mixpanel Project Token (used by the Engage API)
project_id string Optional Mixpanel Project ID (used for strict mode on import)
region string Mixpanel region: api, api-eu, or api-in (defaults to api)

🧪 Testing Locally

🛠️ Build the component

edgee component build

✅ Run unit tests

cargo test

🔍 Run a live test with simulated events

edgee components test \
  --event-type track \
  --settings api_secret=YOUR_API_SECRET,project_token=YOUR_PROJECT_TOKEN,project_id=YOUR_PROJECT_ID,region=api-eu \
  --make-http-request

Replace event-type with page or user to test other event types.

🚀 Deploy to Edgee Registry

Once tested and ready, you can publish your component:

edgee components push

📂 Project Structure

mixpanel-component/
├── src/
│   └── lib.rs                 # Main component logic
├── target/
│   └── wasm32-wasip2/
│       └── release/
│           └── mixpanel.wasm  # Built WebAssembly output
├── mixpanel.png               # Component icon
├── Cargo.toml                 # Rust dependencies
└── edgee-component.toml       # Edgee manifest

📚 Learn More

About

Mixpanel component built in Rust

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •