storybook/addons/google-analytics
2018-11-25 11:00:57 +09:00
..
2018-11-25 11:00:57 +09:00

Storybook Addon Google Analytics

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

Framework Support

Getting Started

Install:

npm i -D @storybook/addon-google-analytics

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