kapa.ai how do is set group properties particlary location "setGroupProperties("merchant_id", hqId, { categories: categoryHandles, town: listerData.town?.townSlug, county: listerData.county?.countySlug, latitude: listerData.exactLocation?.geoPoint?.latitude, longitude: listerData.exactLocation?.geoPoint?.longitude, is_hq: merchantData?.is_hq ?? true, is_branch: merchantData?.is_branch ?? false, }, '/business/onboarding');" can i set geopoint to goup "export const setGroupProperties = (groupKey, groupId, properties, pathname = '') => { if (typeof window === 'undefined') return; initMixpanel(); const isBusiness = pathname.startsWith('/business'); if (isBusiness && mixpanel.merchant) { // If we're setting merchant properties, sync both merchant_id and branch_id groups // for now only merchant_id is used, but we're future-proofing for branch_id later if (groupKey === 'merchant' || groupKey === 'merchant_id') { mixpanel.merchant.get_group('merchant_id', groupId).set(properties); mixpanel.merchant.get_group('branch_id', groupId).set(properties); } else { mixpanel.merchant.get_group(groupKey, groupId).set(properties); } } };"
kapa.ai wait so the events appearing like that is normal. i mean when i login again, those events are not picked up again by group events (they dont get distinct id ever again) they remain greyed out. new group events after login get the distinct id again. example business landing page view (no user/ grey event group)> user logs in (that previous event / page view stays grey) > user is redirected to dashboard> those views are identified> log out again> those events group appear but grayed out. this is normal??
kapa.ai no does not work see this"API Endpoint: api.mixpanel.com API Timestamp: 1777564477541 Browser: Chrome Browser Version: 147 Current URL: http://localhost:3000/business Device ID: 38155dbf-0df0-4dbe-8298-e50e7bacc281 Event Size: 682 Initial Referrer: http://localhost:3000/business/onboarding Initial Referring Domain: localhost:3000 Insert ID: z55upfbnh7 Library Version: 2.78.0 Mixpanel Library: web Operating System: Mac OS X Original Distinct Id: $device:38155dbf-0df0-4dbe-8298-e50e7bacc281 path: /business Referrer: http://localhost:3000/business/onboarding Referring Domain: localhost Screen Height: 900 Screen Width: 1440 Time: 6:54:37.000 pm, Thu, Apr 30, 2026 Time Processed (UTC): 3:54:37.900 pm, Thu, Apr 30, 2026 url:" group event and user event"API Endpoint: api.mixpanel.com API Timestamp: 1777564477541 Browser: Chrome Browser Version: 147 Current URL: http://localhost:3000/business Device ID: 38155dbf-0df0-4dbe-8298-e50e7bacc281 Distinct ID: $device:38155dbf-0df0-4dbe-8298-e50e7bacc281 Event Size: 682 Initial Referrer: http://localhost:3000/business/onboarding Initial Referring Domain: localhost:3000 Insert ID: z55upfbnh7 Library Version: 2.78.0 Mixpanel Library: web Operating System: Mac OS X path: /business Referrer: http://localhost:3000/business/onboarding Referring Domain: localhost Screen Height: 900 Screen Width: 1440 Time: 6:54:37.000 pm, Thu, Apr 30, 2026 Time Processed (UTC): 3:54:37.900 pm, Thu, Apr 30, 2026 url: http://localhost:3000/business", as you can see the distinct id , i do "mixpanel.reset(); mixpanel.merchant?.reset();""mixpanel.merchant?.unregister('merchant_id'); mixpanel.merchant?.unregister('branch_id');" on logout, as you can see the events i have sent they dont have groups like this "API Endpoint: api.mixpanel.com API Timestamp: 1777564471301 branch_id: rzk9Wxg0yGSrVQZwHFIx3F7pFH23 Browser: Chrome Browser Version: 147 Current URL: http://localhost:3000/business/onboarding Device ID: 4f03829a-195b-42c1-bfcb-87619ffc9637 Distinct ID: rzk9Wxg0yGSrVQZwHFIx3F7pFH23 Event Size: 852 Groups: {"branch_id":"rzk9Wxg0yGSrVQZwHFIx3F7pFH23","merchant_id":"rzk9Wxg0yGSrVQZwHFIx3F7pFH23"} Initial Referrer: http://localhost:3000/business/onboarding Initial Referring Domain: localhost:3000 Insert ID: asxsftsmmr Library Version: 2.78.0 merchant_id: rzk9Wxg0yGSrVQZwHFIx3F7pFH23 Mixpanel Library: web Operating System: Mac OS X Original Distinct Id: rzk9Wxg0yGSrVQZwHFIx3F7pFH23 Referrer: http://localhost:3000/business/onboarding Referring Domain: localhost Screen Height: 900 Screen Width: 1440 Time: 6:54:30.000 pm, Thu, Apr 30, 2026 Time Processed (UTC): 3:54:31.412 pm, Thu, Apr 30, 2026 User ID: rzk9Wxg0yGSrVQZwHFIx3F7pFH23" this for example, so why would they come to group events
kapa.ai i am sending group events and it works they get seen in mixpanel, but when i logout , the user events get a new id which is correct, but then the logged out events start appearing in group events but greyed out, which shouldtnt hppen on log out. am using a proxy in nextjs
