{"id":18555724,"url":"https://github.com/mixpanel/mixpanel-react-native","last_synced_at":"2026-01-21T03:11:32.960Z","repository":{"id":38406202,"uuid":"238638291","full_name":"mixpanel/mixpanel-react-native","owner":"mixpanel","description":"Official React Native Tracking Library for Mixpanel Analytics","archived":false,"fork":false,"pushed_at":"2026-01-15T00:04:56.000Z","size":11787,"stargazers_count":123,"open_issues_count":45,"forks_count":60,"subscribers_count":39,"default_branch":"master","last_synced_at":"2026-01-15T07:33:29.728Z","etag":null,"topics":["analytics","analytics-tracking","android","ios","mixpanel","mixpanel-sdk","native","react","react-native","sdk","tracking"],"latest_commit_sha":null,"homepage":"https://mixpanel.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mixpanel.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-02-06T08:11:13.000Z","updated_at":"2025-12-15T23:41:26.000Z","dependencies_parsed_at":"2024-01-09T06:47:32.616Z","dependency_job_id":"ebf99457-9b6e-4348-924b-d11d1bb3ffa2","html_url":"https://github.com/mixpanel/mixpanel-react-native","commit_stats":{"total_commits":327,"total_committers":23,"mean_commits":"14.217391304347826","dds":0.3700305810397554,"last_synced_commit":"682232c9fd91d372dd3eecd9e8eae2acaa213af7"},"previous_names":[],"tags_count":55,"template":false,"template_full_name":null,"purl":"pkg:github/mixpanel/mixpanel-react-native","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mixpanel%2Fmixpanel-react-native","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mixpanel%2Fmixpanel-react-native/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mixpanel%2Fmixpanel-react-native/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mixpanel%2Fmixpanel-react-native/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mixpanel","download_url":"https://codeload.github.com/mixpanel/mixpanel-react-native/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mixpanel%2Fmixpanel-react-native/sbom","scorecard":{"id":650972,"data":{"date":"2025-08-11","repo":{"name":"github.com/mixpanel/mixpanel-react-native","commit":"36ce38f53d61314c99afc112b6c3331addcc92bc"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.7,"checks":[{"name":"Code-Review","score":2,"reason":"Found 7/27 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":10,"reason":"13 commit(s) and 3 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/node.js.yml:1","Warn: no topLevel permission defined: .github/workflows/release-tag.yml:1","Warn: no topLevel permission defined: .github/workflows/release.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Binary-Artifacts","score":5,"reason":"binaries present in source code","details":["Warn: binary detected: Samples/ContextAPIMixpanel/android/gradle/wrapper/gradle-wrapper.jar:1","Warn: binary detected: Samples/MixpanelDemo/android/gradle/wrapper/gradle-wrapper.jar:1","Warn: binary detected: Samples/MixpanelExample/android/gradle/wrapper/gradle-wrapper.jar:1","Warn: binary detected: Samples/SimpleMixpanel/android/gradle/wrapper/gradle-wrapper.jar:1","Warn: binary detected: android/gradle/wrapper/gradle-wrapper.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/mixpanel/mixpanel-react-native/node.js.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/mixpanel/mixpanel-react-native/node.js.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/mixpanel/mixpanel-react-native/node.js.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/mixpanel/mixpanel-react-native/node.js.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/mixpanel/mixpanel-react-native/node.js.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/node.js.yml:54: update your workflow using https://app.stepsecurity.io/secureworkflow/mixpanel/mixpanel-react-native/node.js.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/node.js.yml:62: update your workflow using https://app.stepsecurity.io/secureworkflow/mixpanel/mixpanel-react-native/node.js.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:78: update your workflow using https://app.stepsecurity.io/secureworkflow/mixpanel/mixpanel-react-native/node.js.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:80: update your workflow using https://app.stepsecurity.io/secureworkflow/mixpanel/mixpanel-react-native/node.js.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-tag.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/mixpanel/mixpanel-react-native/release-tag.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-tag.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/mixpanel/mixpanel-react-native/release-tag.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/mixpanel/mixpanel-react-native/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/mixpanel/mixpanel-react-native/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/mixpanel/mixpanel-react-native/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:48: update your workflow using https://app.stepsecurity.io/secureworkflow/mixpanel/mixpanel-react-native/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:66: update your workflow using https://app.stepsecurity.io/secureworkflow/mixpanel/mixpanel-react-native/release.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/node.js.yml:27","Warn: npmCommand not pinned by hash: .github/workflows/node.js.yml:48","Warn: npmCommand not pinned by hash: .github/workflows/node.js.yml:49","Warn: npmCommand not pinned by hash: .github/workflows/node.js.yml:50","Warn: npmCommand not pinned by hash: .github/workflows/node.js.yml:84","Warn: npmCommand not pinned by hash: .github/workflows/node.js.yml:85","Warn: npmCommand not pinned by hash: .github/workflows/node.js.yml:88","Warn: npmCommand not pinned by hash: .github/workflows/release-tag.yml:21","Info:   0 out of  11 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   5 third-party GitHubAction dependencies pinned","Info:   0 out of   8 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Branch-Protection","score":3,"reason":"branch protection is not maximal on development and all release branches","details":["Info: 'allow deletion' disabled on branch 'master'","Info: 'force pushes' disabled on branch 'master'","Warn: 'branch protection settings apply to administrators' is disabled on branch 'master'","Warn: could not determine whether codeowners review is allowed","Warn: no status checks found to merge onto branch 'master'","Warn: PRs are not required to make changes on branch 'master'; or we don't have data to detect it.If you think it might be the latter, make sure to run Scorecard with a PAT or use Repo Rules (that are always public) instead of Branch Protection settings"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":4,"reason":"SAST tool is not run on all commits -- score normalized to 4","details":["Warn: 7 commits out of 15 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"28 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-3q56-9cc2-46j4","Warn: Project is vulnerable to: GHSA-mpg4-rc92-vx8v","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-m5qc-5hw7-8vg7","Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q","Warn: Project is vulnerable to: GHSA-f5x2-xv93-4p23","Warn: Project is vulnerable to: GHSA-gmpm-xp43-f7g6","Warn: Project is vulnerable to: GHSA-pf27-929j-9pmm","Warn: Project is vulnerable to: GHSA-327c-qx3v-h673","Warn: Project is vulnerable to: GHSA-x4cf-6jr3-3qvp","Warn: Project is vulnerable to: GHSA-mph8-6787-r8hw","Warn: Project is vulnerable to: GHSA-7mhc-prgv-r3q4","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-7f53-fmmv-mfjv","Warn: Project is vulnerable to: GHSA-g4rg-993r-mgx7"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T13:30:02.580Z","repository_id":38406202,"created_at":"2025-08-21T13:30:02.580Z","updated_at":"2025-08-21T13:30:02.580Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28624349,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T02:47:06.670Z","status":"ssl_error","status_checked_at":"2026-01-21T02:45:44.886Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["analytics","analytics-tracking","android","ios","mixpanel","mixpanel-sdk","native","react","react-native","sdk","tracking"],"created_at":"2024-11-06T21:27:43.225Z","updated_at":"2026-01-21T03:11:32.955Z","avatar_url":"https://github.com/mixpanel.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\" style=\"text-align: center\"\u003e\n  \u003cimg src=\"https://user-images.githubusercontent.com/71290498/231855346-12c8fc52-5f24-485c-b9e6-24468599fb87.png\" alt=\"Mixpanel React Native Library\" height=\"150\"/\u003e\n\u003c/div\u003e\n\n#####\n\n## Table of Contents\n\n\u003c!-- MarkdownTOC --\u003e\n\n- [Introduction](#introduction)\n- [Quick Start Guide](#quick-start-guide)\n  - [Install Mixpanel](#1-install-mixpanel)\n  - [Initialize Mixpanel](#2-initialize-mixpanel)\n  - [Send Data](#3-send-data)\n  - [Check for Success](#4-check-for-success)\n  - [Complete Code Example](#complete-code-example)\n- [FAQ](#faq)\n- [I want to know more!](#i-want-to-know-more)\n\n\u003c!-- /MarkdownTOC --\u003e\n\n## Introduction\n\nWelcome to the official Mixpanel React Native library.\nThe Mixpanel React Native library is an open-source project, and we'd love to see your contributions!\nWe'd also love for you to come and work with us! Check out **[Jobs](https://mixpanel.com/jobs/#openings)** for details.\n\n## Quick Start Guide\n\nMixpanel's React Native SDK is a wrapper around Mixpanel’s native iOS and Android SDKs and it supports offline tracking. Check out our **[official documentation](https://developer.mixpanel.com/docs/react-native)** for more in depth information on installing and using Mixpanel on React Native.\n\n\u003ca name=\"installation\"\u003e\u003c/a\u003e\n\n### 1. Install Mixpanel\n\n#### Prerequisites\n\n- React Native v0.6+\n- [Setup development environment for React Native](https://reactnative.dev/docs/environment-setup)\n\n#### Steps\n\n1. Under your app's root directory, install Mixpanel React Native SDK.\n\n```\nnpm install mixpanel-react-native\n```\n\n2. Install AsyncStorage (required for data persistence):\n\n```\nnpm install @react-native-async-storage/async-storage\n```\n\n\u003e **Note:** Starting from v3.2.0, `@react-native-async-storage/async-storage` is a peer dependency. This allows your project to use either v1.x or v2.x, avoiding conflicts with frameworks like Expo 52+.\n\n3. Under your application's ios folder, run\n\n```\npod install\n```\n\nPlease note: You do not need to update your Podfile to add Mixpanel.\n\n4. Since Xcode 12.5, there is a known swift compile issue, please refer to this **[workaround](https://github.com/mixpanel/mixpanel-react-native/issues/43#issuecomment-829599732)**. However the compile issue has been resolved in Xcode 13.2.1+, there is no extra step required as long as you upgrade to Xcode 13.2.1+.\n\n### 2. Initialize Mixpanel\n\nTo start tracking with the library you must first initialize with your project token. You can get your project token from [project settings](https://mixpanel.com/settings/project).\n\n```js\nimport { Mixpanel } from \"mixpanel-react-native\";\n\nconst trackAutomaticEvents = false;\nconst mixpanel = new Mixpanel(\"Your Project Token\", trackAutomaticEvents);\nmixpanel.init();\n```\n\nOnce you've called this method once, you can access `mixpanel` throughout the rest of your application.\n\n### 3. Send Data\n\nLet's get started by sending event data. You can send an event from anywhere in your application. Better understand user behavior by storing details that are specific to the event (properties). After initializing the library, Mixpanel will automatically track some properties by default. [learn more](https://help.mixpanel.com/hc/en-us/articles/115004613766-Default-Properties-Collected-by-Mixpanel)\n\n```js\n// Track with event-name\nmixpanel.track(\"Sent Message\");\n// Track with event-name and property\nmixpanel.track(\"Plan Selected\", { Plan: \"Premium\" });\n```\n\nIn addition to event data, you can also send [user profile data](https://developer.mixpanel.com/docs/react-native#storing-user-profiles). We recommend this after completing the quickstart guide.\n\n### 4. Check for Success\n\n[Open up Events in Mixpanel](http://mixpanel.com/report/events) to view incoming events.\nOnce data hits our API, it generally takes ~60 seconds for it to be processed, stored, and queryable in your project.\n\u003ca name=\"i-want-to-know-more\"\u003e\u003c/a\u003e\n\n### Complete Code Example\n\n```js\nimport React from \"react\";\nimport { Button, SafeAreaView } from \"react-native\";\nimport { Mixpanel } from \"mixpanel-react-native\";\n\nconst trackAutomaticEvents = false;\nconst mixpanel = new Mixpanel(\"Your Project Token\", trackAutomaticEvents);\nmixpanel.init();\n\nconst SampleApp = () =\u003e {\n  return (\n    \u003cSafeAreaView\u003e\n      \u003cButton\n        title=\"Select Premium Plan\"\n        onPress={() =\u003e mixpanel.track(\"Plan Selected\", { Plan: \"Premium\" })}\n      /\u003e\n    \u003c/SafeAreaView\u003e\n  );\n};\n\nexport default SampleApp;\n```\n\n### Expo and React Native for Web support (3.0.2 and above)\n\nStarting from version 3.0.2, we have introduced support for Expo, React Native for Web, and other platforms utilizing React Native that do not support iOS and Android directly.\nTo enable this feature,\n\u003cbr\u003eStep 1:\n\n```\nnpm install @react-native-async-storage/async-storage\n```\n\nWhen JavaScript mode is enabled, Mixpanel utilizes [AsyncStorage](https://react-native-async-storage.github.io/async-storage/) to persist data. If you prefer not to use it, or if AsyncStorage is unavailable in your target environment, you can import or define a different storage class. However, it must follow a subset (see: [`MixpanelAsyncStorage`](index.d.ts)) of the same interface as [AsyncStorage](https://react-native-async-storage.github.io/async-storage/) The following example demonstrates how to use a custom storage solution:\n\n```\n// Optional: if you do not want to use the default AsyncStorage\nconst MyAsyncStorage = require(\"@my-org/\u003clibrary-path\u003e/AsyncStorage\");\nconst trackAutomaticEvents = false;\nconst useNative = false;\nconst mixpanel = new Mixpanel('YOUR_TOKEN', trackAutomaticEvents, useNative, MyAsyncStorage);\nmixpanel.init();\n```\n\n\u003cbr\u003eStep 2:\nInitialize Mixpanel with an additional parameter, `useNative`, set to false.\n\n```\nconst trackAutomaticEvents = false;\nconst useNative = false;\nconst mixpanel = new Mixpanel(\n    \"YOUR_MIXPANEL_TOKEN\",\n    trackAutomaticEvents,\n    useNative\n  );\n```\n\nThis will activate JavaScript mode.\n\n👋 👋 Tell us about the Mixpanel developer experience! [https://www.mixpanel.com/devnps](https://www.mixpanel.com/devnps) 👍 👎\n\n## FAQ\n\n**I want to stop tracking an event/event property in Mixpanel. Is that possible?**\nYes, in Lexicon, you can intercept and drop incoming events or properties. Mixpanel won’t store any new data for the event or property you select to drop. [See this article for more information](https://help.mixpanel.com/hc/en-us/articles/360001307806#dropping-events-and-properties).\n\n**I have a test user I would like to opt out of tracking. How do I do that?**\nMixpanel’s client-side tracking library contains the [optOutTracking()](https://mixpanel.github.io/mixpanel-react-native/Mixpanel.html#optOutTracking) method, which will set the user’s local opt-out state to “true” and will prevent data from being sent from a user’s device. More detailed instructions can be found in the section, [Opting users out of tracking](https://developer.mixpanel.com/docs/react-native#opting-users-out-of-tracking).\n\n**Why aren't my events showing up?**\nFirst, make sure your test device has internet access. To preserve battery life and customer bandwidth, the Mixpanel library doesn't send the events you record immediately. Instead, it sends batches to the Mixpanel servers every 60 seconds while your application is running, as well as when the application transitions to the background. You can call [flush()](https://mixpanel.github.io/mixpanel-react-native/Mixpanel.html#flush) manually if you want to force a flush at a particular moment.\n\n```\nmixpanel.flush();\n```\n\nIf your events are still not showing up after 60 seconds, check if you have opted out of tracking. You can also enable Mixpanel debugging and logging, it allows you to see the debug output from the Mixpanel library. To enable it, call [setLoggingEnabled](https://mixpanel.github.io/mixpanel-react-native/Mixpanel.html#setLoggingEnabled) with true, then run your iOS project with Xcode or android project with Android Studio. The logs should be available in the console.\n\n```\nmixpanel.setLoggingEnabled(true);\n```\n\n**Starting with iOS 14.5, do I need to request the user’s permission through the AppTrackingTransparency framework to use Mixpanel?**\nNo, Mixpanel does not use IDFA so it does not require user permission through the AppTrackingTransparency(ATT) framework.\n\n**If I use Mixpanel, how do I answer app privacy questions for the App Store?**\nPlease refer to our [Apple App Developer Privacy Guidance](https://mixpanel.com/legal/app-store-privacy-details/)\n\n## I want to know more!\n\nNo worries, here are some links that you will find useful:\n\n- **[Sample apps](https://github.com/mixpanel/mixpanel-react-native/tree/master/Samples)**\n- **[Full API Reference](https://mixpanel.github.io/mixpanel-react-native/Mixpanel.html)**\n\n[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/mixpanel/mixpanel-react-native)\n\nHave any questions? Reach out to Mixpanel [Support](https://help.mixpanel.com/hc/en-us/requests/new) to speak to someone smart, quickly.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmixpanel%2Fmixpanel-react-native","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmixpanel%2Fmixpanel-react-native","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmixpanel%2Fmixpanel-react-native/lists"}