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: nullCity:nullDeviceType: null so no properties of the user are visible
Hi Furkan Kocatürk
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.
Saish Redkar Thank you for your help, but why don't these other features show up? Why a deviceType user property set with JS SDK may not appear in the event sent from the backend to the same user later?
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?
Hey there I've been playing around for a couple of hours with the guide and analytics which fires properly on the UI but wouldn't give me any analytics. I read that there is another script that should be installed for the analytics part of things. Would anyone be able to guide me towards the potential script or some…
All my data is being collected through Firebase I want to export all this data in Amplitude and keep it synced with GA4, I tried adding data sources as BigQuery and GA4 both but for some reason it only partially imported the data and now its not working, I cant even see connected sources. Any help will be appreciated.
How do I transfer data from one amplitude account to another? It seems all the community chats about this have completely broken links. Easy to export, no way to import, very frustrating. :(
When using @amplitude/plugin-web-vitals-browser with Create React App v4 (react-scripts@4.0.3), the build fails with: ./node_modules/@amplitude/plugin-web-vitals-browser/node_modules/web-vitals/dist/web-vitals.js<br /><br />SyntaxError:…
Hello, I'm using SpringBoot and Kotlin to integrate with the Amplitude Export API. The official Amplitude documentation (https://amplitude.com/docs/apis/analytics/export) states that "data is available to export at a minimum within 2 hours of when the servers received it." However, there's no clear information about the…