Minor changeset and other improvements.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
---
|
||||
'@backstage/plugin-analytics-module-ga': patch
|
||||
---
|
||||
|
||||
Initial Google Analytics implementation for the Backstage Analytics API, which:
|
||||
|
||||
- Handles pageview and custom event instrumentation idiomatically.
|
||||
- Enables custom dimension and metric collection via app config.
|
||||
- Includes configurable debug/test mode for non-production environments.
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
'@backstage/core-plugin-api': minor
|
||||
'@backstage/core-plugin-api': patch
|
||||
---
|
||||
|
||||
Introducing the Analytics API: a lightweight way for plugins to instrument key
|
||||
|
||||
Vendored
-12
@@ -65,18 +65,6 @@ export interface Config {
|
||||
}>;
|
||||
}>;
|
||||
};
|
||||
|
||||
/**
|
||||
* Information about how analytics events should be collected in this
|
||||
* Backstage Instance.
|
||||
*/
|
||||
analytics?: {
|
||||
/**
|
||||
* The provider used to collect instrumented events. Further
|
||||
* configuration values depend on the provider specified here.
|
||||
*/
|
||||
provider: string;
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -34,8 +34,9 @@ function useTracker(): AnalyticsTracker {
|
||||
context,
|
||||
domain,
|
||||
});
|
||||
} catch {
|
||||
// Just don't throw on an instrumentation problem.
|
||||
} catch (e) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.warn('Error during analytics event capture. %o', e);
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
@@ -21,21 +21,21 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@backstage/config": "^0.1.5",
|
||||
"@backstage/core-components": "^0.4.0",
|
||||
"@backstage/core-plugin-api": "^0.1.6",
|
||||
"@backstage/core-components": "^0.4.2",
|
||||
"@backstage/core-plugin-api": "^0.1.8",
|
||||
"@backstage/theme": "^0.2.10",
|
||||
"@material-ui/core": "^4.12.2",
|
||||
"@material-ui/icons": "^4.9.1",
|
||||
"@material-ui/lab": "4.0.0-alpha.45",
|
||||
"@material-ui/lab": "4.0.0-alpha.57",
|
||||
"react": "^16.13.1",
|
||||
"react-dom": "^16.13.1",
|
||||
"react-ga": "^3.3.0",
|
||||
"react-use": "^17.2.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@backstage/cli": "^0.7.10",
|
||||
"@backstage/core-app-api": "^0.1.11",
|
||||
"@backstage/dev-utils": "^0.2.8",
|
||||
"@backstage/cli": "^0.7.12",
|
||||
"@backstage/core-app-api": "^0.1.13",
|
||||
"@backstage/dev-utils": "^0.2.9",
|
||||
"@backstage/test-utils": "^0.1.17",
|
||||
"@testing-library/jest-dom": "^5.10.1",
|
||||
"@testing-library/react": "^11.2.5",
|
||||
|
||||
Reference in New Issue
Block a user