While JS SDK contains user properties, when I send an event to the same user from http api, user properties do not appear in that event
For example:
Country: null
City:null
DeviceType: null
so no properties of the user are visible
While JS SDK contains user properties, when I send an event to the same user from http api, user properties do not appear in that event
For example:
Country: null
City:null
DeviceType: null
so no properties of the user are visible
Hi
If you’re sending data via HTTP API instead of using an SDK, Amplitude cannot track these user properties automatically. You must instead set these properties explicitly in the HTTP API post request.
For Country and City properties, these are resolved from the IP address. If the IP address field is null, then they won’t be resolved.
You can read more on that here.
Hope this helps.
If the JS SDK has set the deviceType property on the user properties once, then that value should persist across all events unless explicitly changed. Can you verify if your HTTP API calls are overwriting the previously set value for device type?
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.