File tree Expand file tree Collapse file tree 4 files changed +22
-0
lines changed Expand file tree Collapse file tree 4 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ module.exports = {
9
9
'@storybook/addon-viewport' ,
10
10
'@storybook/addon-a11y' ,
11
11
'@storybook/addon-links' ,
12
+ '@storybook/addon-google-analytics' ,
12
13
] ,
13
14
webpackFinal : async ( config : any ) => {
14
15
// Sass support with post-css for vendor prefixes.
Original file line number Diff line number Diff line change 1
1
import { addons } from '@storybook/addons' ;
2
2
3
+ // Google Analytics ID
4
+ // @ts -ignore
5
+ window . STORYBOOK_GA_ID = 'UA-6566170-4' ;
6
+
3
7
addons . setConfig ( {
4
8
/**
5
9
* show story component as full screen
Original file line number Diff line number Diff line change 66
66
"@storybook/addon-a11y" : " 6.0.0-alpha.3" ,
67
67
"@storybook/addon-actions" : " 6.0.0-alpha.3" ,
68
68
"@storybook/addon-docs" : " 6.0.0-alpha.3" ,
69
+ "@storybook/addon-google-analytics" : " 6.0.0-alpha.3" ,
69
70
"@storybook/addon-info" : " 6.0.0-alpha.2" ,
70
71
"@storybook/addon-knobs" : " 6.0.0-alpha.3" ,
71
72
"@storybook/addon-links" : " 6.0.0-alpha.3" ,
Original file line number Diff line number Diff line change 1615
1615
vue-docgen-api "^4.1.0"
1616
1616
vue-docgen-loader "^1.3.0-beta.0"
1617
1617
1618
+
1619
+ version "6.0.0-alpha.3"
1620
+ resolved "https://registry.yarnpkg.com/@storybook/addon-google-analytics/-/addon-google-analytics-6.0.0-alpha.3.tgz#31e449a96d13724b08c5d7b6dcb730a9fcb0f5bc"
1621
+ integrity sha512-js+IF0FIOVrt2Ly2adI7TwFt956ICRDIC/QNvqZpKhArSJmaxUKCbLePKgqyP+7qWQYGxbck4qJ+1Ywudh4Juw==
1622
+ dependencies:
1623
+ "@storybook/addons" "6.0.0-alpha.3"
1624
+ "@storybook/core-events" "6.0.0-alpha.3"
1625
+ core-js "^3.0.1"
1626
+ global "^4.3.2"
1627
+ react-ga "^2.5.7"
1628
+
1618
1629
1619
1630
version "6.0.0-alpha.2"
1620
1631
resolved "https://registry.yarnpkg.com/@storybook/addon-info/-/addon-info-6.0.0-alpha.2.tgz#2ee4e45f0692996afeeaa199ded5d6f3c3176383"
@@ -12564,6 +12575,11 @@ react-focus-lock@^2.1.0:
12564
12575
use-callback-ref "^1.2.1"
12565
12576
use-sidecar "^1.0.1"
12566
12577
12578
+ react-ga@^2.5.7:
12579
+ version "2.7.0"
12580
+ resolved "https://registry.yarnpkg.com/react-ga/-/react-ga-2.7.0.tgz#24328f157f31e8cffbf4de74a3396536679d8d7c"
12581
+ integrity sha512-AjC7UOZMvygrWTc2hKxTDvlMXEtbmA0IgJjmkhgmQQ3RkXrWR11xEagLGFGaNyaPnmg24oaIiaNPnEoftUhfXA==
12582
+
12567
12583
react-helmet-async@^1.0.2:
12568
12584
version "1.0.4"
12569
12585
resolved "https://registry.yarnpkg.com/react-helmet-async/-/react-helmet-async-1.0.4.tgz#079ef10b7fefcaee6240fefd150711e62463cc97"
You can’t perform that action at this time.
0 commit comments