[BUG] - The redirect to the Labs annual report(s) reports visits in Plausible from preview builds, not just the live site #665
Labels
area: Vercel
labs 🔭
Items related to the Labs website
owner: Quansight
For Quansight work, regardless of timing/priority
type: bug 🐛
Something isn't working
What site is this for?
Quansight Labs
Expected behavior
The Plausible analytics should only show download traffic for Labs Annual Reports from the live site at https://labs.quansight.org
Actual behavior
Traffic to the Labs Report on Vercel preview builds also is captured in Plausible.
I opened an incognito window (since I have Plausible capture disabled on my browser) and navigated to:
https://labs-git-fix-test-homepage-quansight.vercel.app/annual-reports/quansight-labs-annual-report-2022.pdf?utm_source=checking-report-visit-capture-on-vercel-preview-builds
This took me to the current stand-in NumFOCUS report PDF, as expected.
Checking Plausible, my visit was registered:
The same sort of behavior should be observed with any
vercel.app
preview build of the site.I think we want the Plausible tracking call in
/apps/labs/pages/api/annual-report.pdf.ts
to be guarded by a check for the livelabs.quansight.org
domain.How to Reproduce the problem?
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: