1
Initialize Functions
Terminal
2
Create the proxy
functions/index.js
3
Configure Hosting rewrites
Point
/script.js and /api/events to the deployed function in firebase.json:firebase.json
4
Update the tracker
Replace the default Trfyx script with the proxied path:
index.html
5
Verify installation
Deploy and verify the two requests in your browser Network panel. Confirm the visit appears 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