You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(traffic): tracking snippet points to dead api.ansops.ai host in cloud mode #217
The AI-traffic install snippet shown in the dashboard hardcodes https://api.ansops.ai in cloud mode. That host does not resolve (NXDOMAIN), so the <script src="…/t.js"> that cloud users copy never loads and no traffic is ever recorded. The correct host is https://api.ansvisor.com (the same value as NEXT_PUBLIC_API_URL).
Where
Two places build the snippet with the wrong literal:
Both snippet builders use https://api.ansvisor.com in cloud mode
The string api.ansops.ai no longer appears anywhere in the codebase
The snippet rendered on the Traffic page and Brand settings page points to https://api.ansvisor.com/t.js
Self-hosted mode (!isCloud) still uses NEXT_PUBLIC_API_URL unchanged
Notes
Verified: https://api.ansvisor.com/t.js returns HTTP 200 and POST /track/:code returns 204; api.ansops.ai is NXDOMAIN.
Impacts every cloud customer's tracking-pixel install, so it's worth treating as a priority fix.
Activity
fix(traffic): point cloud tracking snippet to api.ansvisor.com (#218)