Join live session: Top 8 Storybook myths holding your team back

Google Analytics

Storybook addon for google analytics

View on Github

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

within .storybook/main.js:

module.exports = {
  addons: ['@storybook/addon-google-analytics']
}

Then, set an environment variable in .storybook/manager.js

window.STORYBOOK_GA_ID = "UA-000000-01"
window.STORYBOOK_REACT_GA_OPTIONS = {}
Made by
  • igor-dv
    igor-dv
  • tmeasday
    tmeasday
  • hypnosphi
    hypnosphi
  • ndelangen
    ndelangen
  • shilman
    shilman
Work with
    Angular
    Ember
    HTML
    Marko
    Mithril
    Preact
    Rax
    React
    Riot
    Svelte
    Vue
    Web Components
Tags