Question

Identify event not setting user properties on amplitude from react native

  • 11 January 2024
  • 1 reply
  • 87 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