I am trying to log an event using userID, but unfortunately it was throwing an error saying that logEvent was undefined. Below is the code I am using
I am trying to log an event using userID, but unfortunately it was throwing an error saying that logEvent was undefined. Below is the code I am using
hi
Amplitude.getInstance().setUserId("test_user_id");
Link to dev docs here:
https://developers.amplitude.com/docs/react-native-setup#set-custom-user-id
Please let me know if this helped.
Thanks for your reply
I want to send userid dynamically(the user email id). And if I use the syntax Amplitude.getInstance().setUserId("test_user_id"); how can I pass the event properties?
Hi
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 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.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.