Skip to main content
Gainsight Inc.

Proxy Tracking Communication

Enabling PX tracking via a branded secured proxy host is supported.

NGINX Configuration

This example uses a local nginx server (please add SSL on production deployments)

# merged nginx.conf default.conf
user  nginx;
worker_processes  auto;

error_log  /var/log/nginx/error.log warn;
pid        /var/run/;

events {
  worker_connections  1024;
  use epoll;
  multi_accept on;

http {
  include       /etc/nginx/mime.types;
  default_type  application/octet-stream;

  log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
  '$status $body_bytes_sent "$http_referer" '
  '"$http_user_agent" "$http_x_forwarded_for" "$request_body"';

  # docker logs have symlink to stdout
  access_log  off;

  sendfile        on;
  #tcp_nopush     on;

  keepalive_timeout  650;
  keepalive_requests 10000;

  #gzip  on;

  #include /etc/nginx/conf.d/*.conf;

  # start default.conf

  upstream backend {

  server {
    listen 80 default_server;
    listen [::]:80 default_server ipv6only=on;

    server_tokens off;

    server_name _;

    location / {
      proxy_set_header        Host $host;
      proxy_set_header        X-Real-IP $remote_addr;
      proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header        X-Forwarded-Proto $scheme;
      proxy_pass https://backend;

Host PX Tracking SDK

PX supports server side hosting of it's SDK for extended security. 

px TAG.png

For further assistance please contact

  • Was this article helpful?