Does CloudFlare affect Google Analytics?
Posted by Danni on 08 December 2011 02:53 PM
No, not at all. If you use Google Analytics or a system that tracks logs through a script on your web pages, then CloudFlare does not affect any of your Google Analytic tracking. 
Why? GA works by inserting a piece of Javascript (JS) on your site. This JV interacts with the Google servers. When visitors come to your site, they interact with the Google servers. Since CloudFlare's proxy does not sit between the Google servers and your visitor, we have no effect on GA. Instead, CloudFlare sits between your visitor and web server. So, the CloudFlare connecting IP matters only for any programs that read logs directly from your web server (like awstats). 
If you use awstats or a logging system that reads the web server logs directly, you still see all of your logs, they just look different. The connecting IP always shows up as CloudFlare, and CloudFlare reports the IP address of the visitor in an HTTP header it appends: CF-Connecting-IP. To make your logs appear in the same format as before you joined CloudFlare, there is an apache module you can run.
(16 vote(s))
Helpful
Not helpful

Comments (0)