{"id":26480238,"url":"https://github.com/hellostealth/stealth-mixpanel","last_synced_at":"2025-07-24T16:10:10.241Z","repository":{"id":59156443,"uuid":"127023778","full_name":"hellostealth/stealth-mixpanel","owner":"hellostealth","description":"Stealth Mixpanel integration with built-in tracking","archived":false,"fork":false,"pushed_at":"2020-03-01T22:57:02.000Z","size":24,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-08T03:18:05.536Z","etag":null,"topics":["analytics","chatbot","metrics","mixpanel","stealth"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hellostealth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-27T17:39:24.000Z","updated_at":"2018-12-18T13:59:28.000Z","dependencies_parsed_at":"2022-09-13T20:11:33.597Z","dependency_job_id":null,"html_url":"https://github.com/hellostealth/stealth-mixpanel","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellostealth%2Fstealth-mixpanel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellostealth%2Fstealth-mixpanel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellostealth%2Fstealth-mixpanel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellostealth%2Fstealth-mixpanel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hellostealth","download_url":"https://codeload.github.com/hellostealth/stealth-mixpanel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244536457,"owners_count":20468350,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["analytics","chatbot","metrics","mixpanel","stealth"],"created_at":"2025-03-20T02:13:15.788Z","updated_at":"2025-03-20T02:13:16.280Z","avatar_url":"https://github.com/hellostealth.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stealth Mixpanel\n\nThis gem provides out-of-the-box tracking of state transitions inside of [Stealth](https://github.com/hellostealth/stealth) via the [Mixpanel](https://mixpanel.com) service. You are free to track additional events as needed, and we may add more baseline events in the future.\n\n[![Gem Version](https://badge.fury.io/rb/stealth-mixpanel.svg)](https://badge.fury.io/rb/stealth-mixpanel)\n\n## Setup\n\nOnce you have your Mixpanel Project Token, set the `MIXPANEL_PROJECT_TOKEN` environment variable. That's the only setup required!\n\n## Events Tracked\n\nHere are the events that are tracked automatically:\n\n* `State Change`: these are sent to Mixpanel each time a state transition takes place. The user's `recipient_id` is sent to Mixpanel as the `distinct_id`. Additional properties for `flow` and `state` are also sent with the event. Please note that when an `update_session_to` is called, the user's session is updated immediately and therefore an event is also sent to Mixpanel.\n\n## Tracking Custom Events\n\nIf you'd like to track custom events or store user profiles, you can use the following:\n\n```ruby\n\ntracker = Stealth::Mixpanel.new\n\n# Track events\n\ntracker.track(current_session_id, 'event-to-track')\n\n# Store/update user profiles\n\ntracker.people.set(current_session_id, { offer_code: '1234-2', happy: 'yes' })\n```\n\nFor more information about tracking custom events or user profiles, please check out the [mixpanel-ruby](https://github.com/mixpanel/mixpanel-ruby) gem. The `tracker` instance above is just a `Mixpanel::Tracker` object.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellostealth%2Fstealth-mixpanel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhellostealth%2Fstealth-mixpanel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellostealth%2Fstealth-mixpanel/lists"}