Skip to content

Commit

Permalink
Update effective-server-side-tracking.md (#533)
Browse files Browse the repository at this point in the history
Including information about ip=0 for Ingestion API /engage
  • Loading branch information
Tofufu authored Sep 19, 2023
1 parent 9a4a25b commit de1fdb3
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ def handle_signup(request):
## Tracking Geolocation (HTTP API)

As all server-side calls originate from the same IP, such as the IP of your server, it can have the unintended effect of setting the location of all of your users to the location of your datacenter.
To prevent Ingestion API `/engage` endpoint from taking the IP of the incoming request for geolocation, you can specify the `ip=0` parameter.
```
api.mixpanel.com/engage?verbose=1&ip=0
```

If you want to pass in your own IP address using our [HTTP API](https://developer.mixpanel.com/reference/profile-set) (`/engage#profile-set` endpoint) similar to the way you can with `track()`, pass in a property called `$ip` to the message payload.
```
Expand Down Expand Up @@ -140,7 +144,7 @@ On user profile updates, the data must be named `$latitude` and `$longitude` and

You would also need to set `$latitude` and `$longitude` outside of the `$set` dictionary.

You will see profile property `$geo_souce=reverse_geocoding` in the Profile UI if location properties were determined through `$latitude` and `$longitude`.
You will see profile property `$geo_source=reverse_geocoding` in the Profile UI if location properties were determined through `$latitude` and `$longitude`.

Do note: Reverse geocoding for user profiles is not supported via client-side SDKs.
```
Expand Down

1 comment on commit de1fdb3

@vercel
Copy link

@vercel vercel bot commented on de1fdb3 Sep 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs – ./

help.mixpanel.com
docs-mixpanel.vercel.app
docs-git-main-mixpanel.vercel.app
docs.mixpanel.com

Please sign in to comment.