Railway

Deploy dark-wide

Saki is a analytics proxy service

Deploy dark-wide

Just deployed

Deploy and Host Saki on Railway

Saki is a self-hosted Nginx reverse proxy that routes analytics and tracking traffic through your own domain. It forwards full client headers and simply swaps the hostname, so tools like Google Analytics, GTM, Amplitude, Mixpanel, PostHog, and Microsoft Clarity can bypass adblockers without any SDK changes.

About Hosting Saki

On Railway, Saki runs as a single Docker container listening on port 80 inside the service. You point your analytics script tags to your Saki hostname (for example, https://analytics.your-domain.com) and Saki forwards requests to the real analytics providers. This keeps your existing tracking setup intact while improving delivery rates in the presence of adblockers. You can start with the default routes defined in the image and, when needed, override or add Nginx locations via environment variables or a custom image. Railway handles the runtime, scaling, and networking so you only focus on your domain and configuration.

Common Use Cases

  • Route Google Tag Manager and Google Analytics through your own subdomain to reduce tracking loss from adblockers
  • Proxy Amplitude, Mixpanel, PostHog, and Clarity events while keeping your existing web SDK setup unchanged
  • Standardize all third‑party analytics traffic behind a single internal endpoint for easier control and observability

Dependencies for Saki Hosting

  • A custom domain or subdomain (for example, analytics.your-domain.com) with DNS pointed to Railway
  • SSL/TLS configured via Railway for HTTPS termination
  • Existing accounts and properties for the analytics providers you proxy (GTM, GA, Amplitude, Mixpanel, PostHog, Clarity, etc.)

Deployment Dependencies

  • Saki GitHub repository for configuration details and updates: GitHub
  • Saki Docker image reference and tags: Docker Hub
  • Original project page and documentation overview: Project page

Implementation Details

Health check endpoint used to verify the proxy is up:

curl -s http://localhost:8765/health
# OK

Key environment variables you might override for custom paths:

  • ROUTE_GTM for Google Tag Manager path (default: /tg/www.googletagmanager.com)
  • ROUTE_GA for Google Analytics path (default: /an/www.google-analytics.com)
  • ROUTE_AMP_CDN, ROUTE_AMP_API for Amplitude
  • ROUTE_MIX_CDN, ROUTE_MIX_API for Mixpanel
  • ROUTE_CLARITY for Microsoft Clarity
  • ROUTE_PH_JS, ROUTE_PH_API for PostHog

Why Deploy Saki on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Saki on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


Template Content

More templates in this category

View Template
Bugsink
Self-hosted Error Tracking. Sentry-SDK compatible

zǝʇɹoɔ oɓıɹpoɹ
View Template
SubTrackr
Self-hosted Subscription Tracker

amnesia
View Template
Dashy — Open Source Homer & Homarr Alternative on Railway
Self Host Dashy. Open Source Start Page with Widgets & Themes

Heimdall