Quantcast
Channel: Support & Bugs - Matomo forums
Viewing all articles
Browse latest Browse all 5706

Showing incorrect client IP in stats

$
0
0

@RedSocks5 wrote:

Hi,

I have installed a self-hosted copy of Piwik, and use the proxy script as described here:
https://github.com/piwik/tracker-proxy

To hide the domain name of where the Piwik script is installed.

Everything was working fine when I used the default geo tracking.

But my problem is now that I have set Piwik to use the GeoIP (Php) tracking (I'm using a shared host) all of the IPs being reported are the IP of my server, and no longer the true client IP.

I followed the recommend changes listed in the FAQ here:
http://piwik.org/faq/how-to-install/faq_98/

My config.ini.php now includes:

[General]
assume_secure_protocol = "1"
proxy_client_headers[] = "HTTP_X_FORWARDED_FOR"
proxy_host_headers[] = "HTTP_X_FORWARDED_HOST"
salt = "c0c87632260cf1d18493d6a03a85XXXX"
trusted_hosts[] = "piwikhostedhere.com"
trusted_hosts[] = "mywebsite.com"

But it has made no difference.

Can anyone help me with this at all?

The correct browser, OS and pages viewed are all showing correct, just not the IP/Country (Im in the UK, hosting in the US).

Many thanks!

Posts: 3

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 5706

Trending Articles