1
Create a proxy endpoint
Create a route for For events, forward the request body and relevant request headers to
/script.js that fetches and returns the Trfyx script:script-proxy.php
https://app.trfyx.com/api/events, then return Trfyx’s response to the browser.2
Update the tracker
index.html
3
Verify installation
Open Developer Tools → Network and confirm the script and event requests use your domain. Then verify a new visit in Trfyx.
For most PHP sites, Managed Proxy is simpler because it removes the proxy code and maintenance burden.