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:

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: