Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 535 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 535 Bytes

Storybook Addon Google Analytics

Storybook Addon Google Analytics can be used to support google analytics in Storybook.

Framework Support

Getting Started

Install:

yarn add @storybook/addon-google-analytics --dev

Then, add following content to .storybook/addons.js

import '@storybook/addon-google-analytics/register';

Then, set an environment variable

window.STORYBOOK_GA_ID = UA-000000-01