Skip to content

Make analytics optional+anonymized or even better: get rid of them entirely #198

@Maykeye

Description

@Maykeye

Issue description:

Right now joining leaks the server(and port on which it's running) and player ID to google-analytics

e += ":" + server.getPort();
}
if (e == null || e.startsWith("192.168") || e.contains("127.0.0.1") || e.startsWith("localhost"))
e = "local";
serverName = e;
}
AnalyticsTracking.sendData(event.player, "join", serverName);

UUID uuid = player.getUniqueID();
String analyticsPostData = "v=1" +
"&tid=UA-29079943-5" +
"&cid=" + uuid.toString() +
"&t=event" +
"&ec=customnpcs_1.7d" +
"&ea=" + event +
"&el=" + data +
"&ev=300";
URL url = new URL("http://www.google-analytics.com/collect");
HttpURLConnection connection = (HttpURLConnection) url.openConnection();

This is not necessary, not configurable(compare to version checker)
and it sends data to original customnpc mod anyway

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions