Skip to content

Commit

Permalink
Add IP address geolocation flag to engage call (#656)
Browse files Browse the repository at this point in the history
  • Loading branch information
codeflows authored and patedit committed Dec 5, 2019
1 parent 1953039 commit 62786cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/mixpanel/android/mpmetrics/MPConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ public String getPeopleEndpoint() {
}

public void setMixpanelPeopleEndpoint() {
setPeopleEndpoint(MPConstants.URL.PEOPLE);
setPeopleEndpoint(MPConstants.URL.PEOPLE + (getUseIpAddressForGeolocation() ? "1" : "0"));
}

public void setPeopleEndpoint(String peopleEndpoint) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/mixpanel/android/util/MPConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class MPConstants {
public static class URL {
public static final String DECIDE = "https://decide.mixpanel.com/decide";
public static final String EVENT = "https://api.mixpanel.com/track?ip=";
public static final String PEOPLE = "https://api.mixpanel.com/engage";
public static final String PEOPLE = "https://api.mixpanel.com/engage?ip=";
public static final String GROUPS = "https://api.mixpanel.com/groups";
public static final String SWITCHBOARD = "wss://switchboard.mixpanel.com/connect/";
}
Expand Down

0 comments on commit 62786cb

Please sign in to comment.