AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

5.4K members online now
5.4K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
Guide Me

Implementation of node.js & express.js code for getting remote client address

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭



I am trying to filter traffic originating from internal users running behind a proxy server. The proxy server has x-forwarded-for header enabled which contains the client IP address. How do I implement this code both on server side and client side ? Also, what settings on the GA console will help in filtering this traffic or will it happen automatically ?


I have found a link on stack overflow : but not sure how and where to implement this. Any help would be much appreciated.