catalyst icon indicating copy to clipboard operation
catalyst copied to clipboard

feat(core): add sample rate for Vercel analytics and speed insights

Open chanceaclark opened this issue 9 months ago • 3 comments

What/Why?

Adds an opinionated default on the sample rates for both Vercel Speed Insights and Vercel Analytics. Most of the time you don't need to capture 100%, especially on a heavily trafficked site.

For Vercel Analytics, there was a little lifting that was needed to be done. We don't necessarily want to send events 25% of the time, but rather 25% of the users get analytics tracked per session.

Testing

Screenshot 2024-05-06 at 15 56 04 Screenshot 2024-05-06 at 15 56 16

chanceaclark avatar May 06 '24 20:05 chanceaclark