Socket
Socket
Sign inDemoInstall

@storybook/addon-google-analytics

Package Overview
Dependencies
130
Maintainers
5
Versions
699
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @storybook/addon-google-analytics

Storybook addon for google analytics


Version published
Weekly downloads
1.1K
increased by7.22%
Maintainers
5
Install size
13.9 MB
Created
Weekly downloads
 

Readme

Source

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 = {}

Keywords

FAQs

Last updated on 23 Apr 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc