Hi! I was trying to add user properties to an event and I tried doing the following:
var userProperties = {
city: "San Francisco"
};
// @ts-ignore
var amp = amplitude.getInstance();
amp.logEvent(eventName);
amp.setUserProperties(userProperties);
However, this event tracked twice: as a “Continue button clicked” event without user properties and also as a $identify event with user properties. Is there a specific way I should be configuring the user properties to add them to the specific event, rather than tracking as a separate $identify event? Thanks in advance!
Best answer by belinda.chiu
View original