@launcher/component
Advanced tools
Comparing version 1.2.0 to 1.3.0
export interface Analytics { | ||
init(): any; | ||
pageview(path: string): any; | ||
event(name: string, action: string, label?: string, value?: number, params?: object): any; | ||
event(category: string, action: string, label?: string, value?: number, params?: object): any; | ||
} |
export * from './analytics'; | ||
export * from './google-analytics'; | ||
export * from './analytics-context'; |
@@ -6,2 +6,13 @@ # Change Log | ||
# [1.3.0](https://github.com/fabric8-launcher/launcher-frontend/compare/v1.2.0...v1.3.0) (2019-07-04) | ||
### Features | ||
* introduce Google Analytics implementation ([#1314](https://github.com/fabric8-launcher/launcher-frontend/issues/1314)) ([f3d73bd](https://github.com/fabric8-launcher/launcher-frontend/commit/f3d73bd)) | ||
# [1.2.0](https://github.com/fabric8-launcher/launcher-frontend/compare/v1.1.0...v1.2.0) (2019-07-03) | ||
@@ -8,0 +19,0 @@ |
{ | ||
"name": "@launcher/component", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"license": "Apache-2.0", | ||
@@ -28,2 +28,3 @@ "main": "build/index.js", | ||
"@storybook/theming": "5.0.9", | ||
"@types/google.analytics": "0.0.40", | ||
"@types/storybook__addon-actions": "3.4.2", | ||
@@ -38,3 +39,3 @@ "@types/storybook__react": "4.0.1", | ||
}, | ||
"gitHead": "46bcc73bbfd907aa70632fac396adb5ca0d7ea38" | ||
"gitHead": "7a64d27039e11e593506d4248d08fe25a6b3046d" | ||
} |
@@ -13,4 +13,4 @@ import React, { useContext } from 'react'; | ||
event(name: string, action: string, label?: string, value?: number, params?: object) { | ||
console.log(`analytics>event(${name}, ${action}, ${label}, ${value})`) | ||
event(category: string, action: string, label?: string, value?: number, params?: object) { | ||
console.log(`analytics>event(${category}, ${action}, ${label}, ${value})`) | ||
} | ||
@@ -17,0 +17,0 @@ } |
export interface Analytics { | ||
init(); | ||
pageview(path: string); | ||
event(name: string, action: string, label?: string, value?: number, params?: object); | ||
event(category: string, action: string, label?: string, value?: number, params?: object); | ||
} |
export * from './analytics'; | ||
export * from './google-analytics'; | ||
export * from './analytics-context'; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
656097
221
10835
13