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 1 year 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

🦋 Changeset detected

Latest commit: 3ac314d1cdfc1dbe983773571a980971fed2dee3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@bigcommerce/catalyst-core Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

changeset-bot[bot] avatar May 06 '24 20:05 changeset-bot[bot]

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

Name Status Preview Comments Updated (UTC)
catalyst-latest ✅ Ready (Inspect) Visit Preview May 7, 2024 3:35pm
catalyst-test-store ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 7, 2024 3:35pm
3 Ignored Deployments
Name Status Preview Comments Updated (UTC)
catalyst-1millionproducts-store ⬜️ Ignored (Inspect) Visit Preview May 7, 2024 3:35pm
catalyst-au ⬜️ Ignored (Inspect) Visit Preview May 7, 2024 3:35pm
catalyst-uk ⬜️ Ignored (Inspect) Visit Preview May 7, 2024 3:35pm

vercel[bot] avatar May 06 '24 20:05 vercel[bot]

⚡️🏠 Lighthouse report

Lighthouse ran against https://catalyst-latest-g11gqhptt-bigcommerce-platform.vercel.app

🖥️ Desktop

We ran Lighthouse against the changes on a desktop and produced this report. Here's the summary:

Category Score
🟢 Performance 99
🟢 Accessibility 100
🟢 Best practices 100
🟢 SEO 90

📱 Mobile

We ran Lighthouse against the changes on a mobile and produced this report. Here's the summary:

Category Score
🟠 Performance 89
🟢 Accessibility 100
🟢 Best practices 100
🟢 SEO 92

github-actions[bot] avatar May 07 '24 15:05 github-actions[bot]