mirror of
https://github.com/plausible/analytics.git
synced 2024-11-24 04:32:57 +03:00
Log IP for testing
This commit is contained in:
parent
f049e7f358
commit
3fb184a893
@ -383,6 +383,7 @@ defmodule PlausibleWeb.Api.ExternalController do
|
||||
defp visitor_location_details(conn) do
|
||||
result =
|
||||
PlausibleWeb.RemoteIp.get(conn)
|
||||
|> IO.inspect()
|
||||
|> Geolix.lookup()
|
||||
|
||||
country_code = get_in(result, [:geolocation, :country, :iso_code])
|
||||
|
Loading…
Reference in New Issue
Block a user