Skip to content

Commit

Permalink
Merge pull request #8468 from soundasleep/patch-2
Browse files Browse the repository at this point in the history
Fix 'path is required in .pageview()' in GA addon
  • Loading branch information
shilman committed Nov 12, 2019
2 parents 0e2fc3a + db7bd4e commit f9cb17a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/google-analytics/src/register.ts
Expand Up @@ -8,8 +8,8 @@ addons.register('storybook/google-analytics', api => {
ReactGA.initialize(window.STORYBOOK_GA_ID);

api.on(STORY_CHANGED, () => {
const { url } = api.getUrlState();
ReactGA.pageview(url);
const { path } = api.getUrlState();
ReactGA.pageview(path);
});
api.on(STORY_ERRORED, ({ description }: { description: string }) => {
ReactGA.exception({
Expand Down

1 comment on commit f9cb17a

@vercel
Copy link

@vercel vercel bot commented on f9cb17a Nov 12, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deployment failed with the following error:

ENOENT: no such file or directory, stat '/tmp/wtLm9r5bF6ySqjX7Njxu8NEk/repo/examples/official-storybook/built-storybooks/angular-cli'

Please sign in to comment.