I have a cohort created where user property filter ‘userType = premium’.
I know that I have set this property on 950+ users in Amplitude, as I set it using API and received a success for all 950. Individually navigating to the “user look-up” page for a user also shows that “userType = premium” is set in each user.
However, in the cohort, I can only see 176 users who have this property, no matter what I set the date range to.
I can confirm there are users who have this property set properly in Amplitude (eg. cy7ggf9aKcgg9B2zpFmX3RLSuFG2) but do not show up in the cohort.
I have been unable to figure out why this is the case and any help to uncover this would be highly appreciated!
Best answer by Saish Redkar
Since you are using the Identify API call to update this property, I suspect that not all of the 950 users have sent an event after this update. If an Identify call is sent after the event, the updated value is not reflected with the event. It will be reflected at the top of a user's profile, but will not appear in chart results until another event is sent after the Identify call.
So most likely only 176 of those could have sent an event which makes the property available and thus their inclusion in the cohort. I could be misinterpreting your case here, but let me know if you can verify this with some sample users. For a user not included in your cohort, check if their latest event has the userType property in the raw payload.
Since you are using the Identify API call to update this property, I suspect that not all of the 950 users have sent an event after this update. If an Identify call is sent after the event, the updated value is not reflected with the event. It will be reflected at the top of a user's profile, but will not appear in chart results until another event is sent after the Identify call.
So most likely only 176 of those could have sent an event which makes the property available and thus their inclusion in the cohort. I could be misinterpreting your case here, but let me know if you can verify this with some sample users. For a user not included in your cohort, check if their latest event has the userType property in the raw payload.
And for them to keep showing up in the cohort, do they need to have that property within the last N days on their events, or once I set the property on the user it stays there even if I don’t send that value for future events?
If you don't have an Amplitude account, you can create an Amplitude Starter account for free and enjoy direct access to the Community via SSO. Create an Amplitude account. You can also create a Guest account below!
If you're a current customer, select the domain you use to sign in with Amplitude.
If you don't have an Amplitude account, you can create an Amplitude Starter account for free and enjoy direct access to the Community via SSO. Create an Amplitude account. Want to sign up as a guest? Create a Community account.
If you're a current customer, select the domain you use to sign in with Amplitude.
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.