Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add plausible analytics in vercel only #1737

Merged
merged 2 commits into from
Aug 15, 2023
Merged

Conversation

david-crespo
Copy link
Collaborator

@david-crespo david-crespo commented Aug 14, 2023

Would be neat to be able to see a traffic bump if we get one. Use two domains to distinguish between production and preview deploys.

The only interesting bit here is the use of vite-plugin-html to conditionally add the script tag. It's such a simple thing that we could probably do something bespoke; will think about it.

@vercel
Copy link

vercel bot commented Aug 14, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
console ✅ Ready (Inspect) Visit Preview Aug 15, 2023 2:06pm

@david-crespo
Copy link
Collaborator Author

This is neat, it tracks client-side navs. So we'll actually see what people click around to.

image

@david-crespo david-crespo marked this pull request as ready for review August 15, 2023 14:07
@david-crespo david-crespo enabled auto-merge (squash) August 15, 2023 14:11
@david-crespo david-crespo merged commit 4b9b2a0 into main Aug 15, 2023
7 checks passed
@david-crespo david-crespo deleted the plausible-analytics branch August 15, 2023 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant