Hi team, I use self-hosted Rudderstack. Is it poss...
# support
q
Hi team, I use self-hosted Rudderstack. Is it possible to use Identify for an anonymous user? I would like to attach their “initial UTM” as their user property, before they login
c
Yes it should be possible, please attach
initial UTM
as
traits
, while making identify call.
🙌 1
q
but the users are still anonymous at that stage. I guess my only concern is, is it okay to actually make the
identify
call on them?
c
It should depend on the destination being used and whether it supports merging of user traits. If the destination supports this feature, you can call the identify function before the user logs in, and then call it again with the updated user details, once they log in/sign-up. The destination should then merge the two sessions into one. For example refer to the Mixpanel docs: https://www.rudderstack.com/docs/destinations/streaming-destinations/mixpanel/#identify
You can identify the user traits without the
userId
if you wish to add the people properties in Mixpanel before knowing the
userId
. To do so, refer to the following snippet: