Describe the bug
When reporting events using Amplify Analytics Location is empty
To Reproduce
check any event reported from react-native using amplify analytics and check the location field.
Expected behavior
the location should be reported at least at a country level.
The same happens for amplify within react (web). While all standard attributes are reported, location remains empty.
@ohlr and @mynameisguy, how are you adding the location information, in the default config while configure Analytics https://docs.amplify.aws/lib/analytics/getting-started/q/platform/js#set-up-existing-analytics-backend or while updating the end point https://docs.amplify.aws/lib/analytics/getting-started/q/platform/js#update-endpoint
Do you see the location information being present in the http request when seen in the developer console? If yes, are you seeing location data being absent in the pinpoint console?
My setup:
https://docs.amplify.aws/lib/analytics/getting-started/q/platform/js#configure-your-app
https://docs.amplify.aws/lib/analytics/autotrack/q/platform/js#session-tracking
import Amplify, { Analytics } from 'aws-amplify';
import awsconfig from './aws-exports';
Analytics.autoTrack('session', {
enable: true,
});
Analytics.autoTrack("pageView", {
enable: true,
type: "multiPageApp",
});
Amplify.configure(awsconfig);
Location is not in the request

I'm not adding the location information manually. Should I?
yes, the location is supposed to be provided by the user, either in the udpateEndPoint() API's attributes or while configuring Amplify or Analytics category. I have provided the link for both in my previous comment.
Code for reference:
https://github.com/aws-amplify/amplify-js/blob/a75e9c30348d4230fb3649e099c531f4521b3191/packages/analytics/src/Providers/AWSPinpointProvider.ts#L752-L755
and what demographic information is provided by default by Amplify https://github.com/aws-amplify/amplify-js/tree/main/packages/core/src/ClientDevice
@Amplifiyer Google Analytics as far as I know provides approximate user location based on ip address... I wonder why a paid service like pinpoint/amplify does not provide that
Besides seeing this as a feature request I would also appreciate if the docs could be updated with respect to what is captured automatically and what not.
Knowing in advance that features such as location / session duration are not supported yet would improve comparability to other frameworks out there
Most helpful comment
Besides seeing this as a feature request I would also appreciate if the docs could be updated with respect to what is captured automatically and what not.
Knowing in advance that features such as location / session duration are not supported yet would improve comparability to other frameworks out there