{"id":26959133,"url":"https://github.com/cbschuld/mixpanel-browser-hook","last_synced_at":"2026-02-17T17:01:05.388Z","repository":{"id":285578063,"uuid":"958656904","full_name":"cbschuld/mixpanel-browser-hook","owner":"cbschuld","description":"Provides a react hook for Mixpanel's `mixpanel-browser`","archived":false,"fork":false,"pushed_at":"2025-04-01T15:51:00.000Z","size":59,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-22T16:24:45.153Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/cbschuld.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-01T14:51:19.000Z","updated_at":"2025-04-01T15:50:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"54cb2b1f-0f81-434d-975d-068457824194","html_url":"https://github.com/cbschuld/mixpanel-browser-hook","commit_stats":null,"previous_names":["cbschuld/mixpanel-browser-hook"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/cbschuld/mixpanel-browser-hook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbschuld%2Fmixpanel-browser-hook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbschuld%2Fmixpanel-browser-hook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbschuld%2Fmixpanel-browser-hook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbschuld%2Fmixpanel-browser-hook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cbschuld","download_url":"https://codeload.github.com/cbschuld/mixpanel-browser-hook/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbschuld%2Fmixpanel-browser-hook/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29550804,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T14:33:00.708Z","status":"ssl_error","status_checked_at":"2026-02-17T14:32:58.657Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2025-04-03T04:34:50.278Z","updated_at":"2026-02-17T17:01:05.382Z","avatar_url":"https://github.com/cbschuld.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mixpanel-browser-hook\n\nProvides a react hook for Mixpanel's `mixpanel-browser`\n\n## Installation\n\nInstall the package using npm:\n\n```bash\nnpm install mixpanel-browser-hook\n```\n\n## Usage\n\nHere is an example of how to use `mixpanel-browser-hook` in your project:\n\n```javascript\nimport useMixpanel from 'mixpanel-browser-hook'\n\nfunction App() {\n  const { trackEvent, identifyUser, setUserProperties } = useMixpanel(\n    'YOUR_MIXPANEL_TOKEN',\n  )\n\n  // Track an event\n  trackEvent('Button Clicked', { buttonName: 'Submit' })\n\n  // Identify a user\n  identifyUser('user-123')\n\n  // Set user properties\n  setUserProperties({ plan: 'premium', age: 30 })\n\n  return \u003cdiv\u003eYour App Content\u003c/div\u003e\n}\n```\n\n## API\n\n### `useMixpanel(token: string)`\n\nReturns an object with the following methods:\n\n- **`trackEvent(eventName: string, properties?: object): void`**  \n  Tracks an event with optional properties.\n\n- **`identifyUser(userId: string): void`**  \n  Identifies a user with a unique ID.\n\n- **`setUserProperties(properties: object): void`**  \n  Sets properties for the identified user.\n\n## License\n\nThis project is licensed under the MIT License.\n\n## Contact\n\n- **Email** - twitter handle @ gmail.com\n- **X** - @cbschuld\n\n## Contributing\n\nYes, thank you! Please update the docs and tests and add your name to the package.json file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcbschuld%2Fmixpanel-browser-hook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcbschuld%2Fmixpanel-browser-hook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcbschuld%2Fmixpanel-browser-hook/lists"}