Google Analytics with nginx reverse proxy

I am using NGINX as reverse proxy and forward the traffic to Apache
server
where Google Analytics is configured. I have configured proxy_set_header
and
from Apache server I can view users IP address. But in Googel Analytics
users session droped. I am wonder where there is any other
configuration
need to be done?

Thanks
Fakrul

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,245460,245460#msg-245460

Google analytics code (the JavaScript) isn’t served from your server. I
don’t quite understand what your problem is?

Sent from my iPhone

Google analytics code (the JavaScript) works properly when I point my
domain to apache server. But when I point my domain to nginx (as reverse
proxy); Google Analytics statistics get dropped and it doesn’t show the
actual users hits.

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,245460,245477#msg-245477

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs