---
# System prepended metadata

title: Mixpanel track (groups)

---

# Mixpanel track (groups)

##### Track event for Group only
```
this.mixpanelSdk.track(
	'Foo Event',
	{
		golee_club: 'foo-group-id',
	},
	err => console.log(err)
);
```

##### Track event for Profile only
```
this.mixpanelSdk.track(
	'Foo Event',
	{
		distinct_id: 'foo-profile-id',
	},
	err => console.log(err)
);
```

##### Track event for Profile and Group
```
this.mixpanelSdk.track(
	'Foo Event',
	{
		distinct_id: 'foo-profile-id',
		golee_club: 'foo-group-id',
	},
	err => console.log(err)
);
```
