Repository navigation
fix(traffic): point cloud tracking snippet to api.ansvisor.com - #218
Merged
Merged
Conversation
The dashboard install snippet hardcoded https://api.ansops.ai in cloud mode, which is NXDOMAIN — so the t.js pixel never loaded and no AI traffic was recorded for cloud users. Use the correct managed API host (api.ansvisor.com, matching NEXT_PUBLIC_API_URL). Self-hosted mode is unchanged. Closes #217
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Fixes the AI-traffic install snippet, which hardcoded
https://api.ansops.aiin cloud mode. That host is NXDOMAIN, so the<script src="…/t.js">cloud users copy never loaded and no traffic was ever recorded. Switched to the correct managed API hosthttps://api.ansvisor.com(same asNEXT_PUBLIC_API_URL).Closes #217.
Changes
Two snippet builders, one line each:
web/src/app/[locale]/(dashboard)/dashboard/traffic/page.tsxweb/src/app/[locale]/(dashboard)/dashboard/brands/[id]/settings/page.tsxSelf-hosted mode (
!isCloud) still usesNEXT_PUBLIC_API_URL, unchanged.Verification
grep -rni ansopsoverweb/src+server/src→ no matches remain.https://api.ansvisor.com/t.jsreturns HTTP 200;POST https://api.ansvisor.com/track/<code>returns 204 and records a row inai_traffic_logs.api.ansops.aiis NXDOMAIN.format:checkpasses on both files.