omni-mixpanel

module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2026 License: MIT

README

Omni-Mixpanel

Go CI Go Lint Go SAST Go Report Card Docs Visualization License

Mixpanel integrations for the PlexusOne omni* family.

Packages

Package Description
omnidxi DXI adapter for Mixpanel analytics

Installation

go get github.com/plexusone/omni-mixpanel/omnidxi

Usage

import (
    "context"

    "github.com/plexusone/omni-mixpanel/omnidxi"
    core "github.com/plexusone/omnidxi-core"
)

func main() {
    ctx := context.Background()

    // Create Mixpanel tracker
    tracker := omnidxi.New(core.WithAPIKey("your-mixpanel-token"))
    defer tracker.Close()

    // Track an event
    event := core.NewEvent(core.EventTypePageView, "Home Viewed").
        WithUserID("user_123").
        WithProperty("source", "direct")

    tracker.Track(ctx, event)

    // Identify user
    user := core.NewUser("user_123").
        WithTraits(core.UserTraits{
            Email: "user@example.com",
            Name:  "Jane Doe",
        })

    tracker.Identify(ctx, user)
}

License

MIT

Directories

Path Synopsis
Package omnidxi provides a Mixpanel implementation of the omnidxi Tracker interface.
Package omnidxi provides a Mixpanel implementation of the omnidxi Tracker interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL