Skip to main content
Question

Identify event not setting user properties on amplitude from react native

  • January 11, 2024
  • 1 reply
  • 311 views

I am using ‘@amplitude/analytics-react-native’ library ( Version 1.4.7 ) inside react native mobile app ( Version 0.71 ) and other events like track is working and going to amplitude.

But facing issue with identify event to send user properties on amplitude and below is the code that I am using to set user properties on amplitude. Can anyone please help me!

 

import * as amplitude from '@amplitude/analytics-react-native';

import { Identify, identify } from '@amplitude/analytics-react-native';

 

const defaultInstance = amplitude.createInstance();

defaultInstance.init('your_amplitude_key');

 

const identifyObj = new Identify();

 

identifyObj.set('location', 'LAX')

identify(identifyObj);

1 reply

Do logEvent('EVENT_NAME', { location: 'LAX' }) works for you?


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings