storybook/addons/google-analytics
Norbert de Langen b09259db77 Merge branch 'next' into dependabot/npm_and_yarn/webpack-4.28.4
# Conflicts:
#	addons/actions/package.json
#	addons/backgrounds/package.json
#	addons/cssresources/package.json
#	addons/events/package.json
#	addons/google-analytics/package.json
#	addons/info/package.json
#	addons/jest/package.json
#	addons/ondevice-backgrounds/package.json
#	addons/ondevice-knobs/package.json
#	addons/ondevice-notes/package.json
#	addons/options/package.json
#	addons/storyshots/storyshots-core/package.json
#	addons/storyshots/storyshots-puppeteer/package.json
#	addons/storysource/package.json
#	addons/viewport/package.json
#	examples/angular-cli/package.json
#	examples/mithril-kitchen-sink/package.json
2019-01-17 13:03:59 +01:00
..

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