Skip to content
Draft
Show file tree
Hide file tree
Changes from 31 commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
57290e3
feat(analytics): hierarchical groups support
tylerjroach Nov 2, 2026
7ed18ce
feat(analytics): return null from getCompany when there is no company
tylerjroach Nov 2, 2026
07fbf2c
feat(flags): send $user_id and $company_id in hierarchical groups fla…
tylerjroach Nov 2, 2026
d63f933
feat(analytics): reject list groups in trackWithGroups on hierarchica…
tylerjroach Nov 2, 2026
8e3a039
fix(analytics): keep a company handle's own company and send only the…
tylerjroach Nov 4, 2026
bc66184
fix(analytics): keep the opt-out delete when a /groups batch is sending
tylerjroach Nov 4, 2026
7bd1584
fix(analytics): keep the opt-out delete when a /groups batch is rejected
tylerjroach Nov 4, 2026
5c9f562
chore: merge master into hierarchical-groups
tylerjroach Nov 4, 2026
52c136f
fix(analytics): send identify(identity) to the native SDK right away
tylerjroach Nov 4, 2026
83eb0ae
fix(analytics): opt out before sending the hierarchical groups user d…
tylerjroach Nov 5, 2026
c2d5263
fix: keep the distinct id getter instead of deprecating it
tylerjroach Nov 5, 2026
ce482e9
chore: replace the hierarchical groups demo project token with a plac…
tylerjroach Nov 5, 2026
37b6570
fix(flags): send no distinct_id with hierarchical groups first-time e…
tylerjroach Nov 5, 2026
1e579a7
fix: send no distinct_id with identified hierarchical groups events
tylerjroach Nov 6, 2026
c07301f
fix: track no $identify on hierarchical groups projects
tylerjroach Nov 6, 2026
5a4b564
refactor: leave deviceId off the MixpanelIdentity passed to identify()
tylerjroach Nov 6, 2026
ebc9437
fix: leave the user opted out when opt-in gets an identity identify w…
tylerjroach Nov 9, 2026
2798b02
fix: keep non-hierarchical-groups identify and storage as before
tylerjroach Nov 9, 2026
ec14a4a
fix: tighten hierarchical groups identity, company and profile handling
tylerjroach Nov 9, 2026
c52fd91
fix: keep hierarchical groups pending profile updates in order and re…
tylerjroach Nov 9, 2026
230472b
fix: drop hierarchical groups profile updates made while opted out
tylerjroach Nov 9, 2026
81d9ff6
fix: send no distinct_id on hierarchical groups flags requests
tylerjroach Nov 10, 2026
d497fc2
fix: warn when the distinct id is read on a hierarchical groups project
tylerjroach Nov 10, 2026
9ee62b7
fix: reset JavaScript-mode feature flags when the identity changes
tylerjroach Nov 17, 2026
dbad0ad
chore: opt in to the restricted MixpanelIdentity constructor
tylerjroach Nov 18, 2026
1651a8d
fix: remove optInTrackingWithIdentity; opt in, then identify
tylerjroach Nov 18, 2026
4a754e5
fix: drop pre-hierarchical-groups list handling from removeGroup
tylerjroach Nov 20, 2026
98ed34a
fix: address hierarchical groups review feedback
tylerjroach Nov 24, 2026
a28787c
refactor: hierarchical groups review cleanups
tylerjroach Nov 24, 2026
76e2b1e
Merge branch 'master' into hierarchical-groups
tylerjroach Nov 25, 2026
35c647d
refactor: share the $user_id key constant
tylerjroach Nov 25, 2026
5efba25
fix: capture the identity before removeGroup's profile update on hier…
tylerjroach Nov 25, 2026
93268c2
fix: capture the identity before setGroup's profile update on hierarc…
tylerjroach Nov 30, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions Samples/MixpanelExample/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ import {
View,
} from 'react-native';
import {Mixpanel} from 'mixpanel-react-native';
import HierarchicalGroupsPage from './HierarchicalGroupsPage';

const trackAutomaticEvents = true;
const mixpanel = new Mixpanel('Your Project Token', trackAutomaticEvents);

function App(): React.JSX.Element {
const [isInitialized, setIsInitialized] = useState(false);
const [showHierarchicalGroups, setShowHierarchicalGroups] = useState(false);

useEffect(() => {
const initializeMixpanel = async () => {
Expand Down Expand Up @@ -60,6 +62,12 @@ function App(): React.JSX.Element {
mixpanel.reset();
};

if (showHierarchicalGroups) {
return (
<HierarchicalGroupsPage onBack={() => setShowHierarchicalGroups(false)} />
);
}

return (
<SafeAreaView style={styles.container}>
<StatusBar barStyle="dark-content" />
Expand Down Expand Up @@ -92,6 +100,11 @@ function App(): React.JSX.Element {
onPress={resetUser}
disabled={!isInitialized}
/>
<View style={styles.spacer} />
<Button
title="Hierarchical Groups"
onPress={() => setShowHierarchicalGroups(true)}
/>
</View>

<View style={styles.info}>
Expand Down
Loading
Loading