Skip to main content

Hello,

we are required to disable ip address tracking. However, we do have our own GeoIP running, and I would like to sent the country.

I’ve tried like this with the typescript sdk, but it doesn’t work (I tried `country` and `Country`):

 

// ...
identify = identify.set("account type", accountType);
const userCountry = ...;
if (userCountry) {
identify = identify.set("country", userCountry);
}
this.client.identify(identify);
// ...

 

It is set as a user property, and not as the Amplitude property:

Is this possible at all?

Regards
Christian

Hi @ChristianS 

The default Amplitude user property ( prefixed with amplitude_logo.png) is set by Amplitude using your captured ip_address field using the MaxMind database.

When you disable tracking of ip address, the default property won’t be populated for your user events.
AFAIK, this is the behavior when using the SDKs. Your user property of ‘country’ will appear as a custom user property rather than the default user property.

If you still want to send your own value for the default country property, then HTTP API could be one of the ways to do it.

Let me know if I have interpreted your use case correctly. Hope this helps.

 


Reply