I am looking for help in configuring Vercel Analytics in my Storybook deployment.
I have tried just adding the script tags and following the "HTML" instructions, would possibly adding a decorator with the <Analytics/> component work and actually give me the stats for the stories that are being viewed?
Vercel Alum
Hi , welcome to the Vercel Community!
Thanks for your question! I'm not 100% familiar with Storybook, but after some digging, I found that you could configure Vercel Analytics in your Storybook deployment by creating a custom decorator that wraps each story with the <Analytics/> component from @vercel/analytics/react.
import React from 'react';
import { Analytics } from '@vercel/analytics/react';