1
Add Nginx configuration
Add two locations to your server block: one for the tracker and one for event collection.If
nginx.conf
/api/events is already used by your application, choose another public path and configure data-api-url accordingly.2
Update the tracker
Update the tracker snippet to use the proxied path:
index.html
3
Test and reload
Validate the configuration and reload Nginx:
Terminal
4
Verify installation
Open your production site and verify requests in your browser Network panel. Confirm both
script.js and /api/events use your domain, then check that activity shows in Trfyx.Next steps
Proxy setup
Read the full proxy setup guide
Managed Proxy
Let Trfyx manage the proxy for you
Goals
Start tracking goals with Trfyx
Troubleshooting
Fix common proxy issues