I have a wordpress site using Cloudflare, when using Piwik more than half the visits are not counted. I tried disabling Cloudflare and then the visits were counted correctly. Then I enabled it again and visits dropped immediately. GA and GetClicky counts fine either way. I have this in the config.ini.php file:
proxy_client_headers = "HTTP_CF_CONNECTING_IP"
proxy_client_headers = “HTTP_X_FORWARDED_FOR”
I also have set my nginx configuration as stated in the Cloudflare website.
What could be wrong?