
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@janus-idp/backstage-plugin-analytics-provider-segment
Advanced tools
This plugin provides an implementation of the Backstage Analytics API for Segment. Once installed and configured, analytics events will be sent to Segment as your users navigate and use your Backstage instance.
This plugin provides an implementation of the Backstage Analytics API for Segment. Once installed and configured, analytics events will be sent to Segment as your users navigate and use your Backstage instance.
This plugin contains no other functionality.
Install the plugin package in your Backstage app:
yarn workspace app add @janus-idp/backstage-plugin-analytics-provider-segment
Wire up the API implementation to your App in packages/app/src/apis.ts
:
/* highlight-add-start */
import {
analyticsApiRef,
configApiRef,
identityApiRef,
} from '@backstage/core-plugin-api';
import { SegmentAnalytics } from '@janus-idp/backstage-plugin-analytics-provider-segment';
/* highlight-add-end */
export const apis: AnyApiFactory[] = [
// Other APIs...
// Instantiate and register the GA Analytics API Implementation.
/* highlight-add-start */
createApiFactory({
api: analyticsApiRef,
deps: { configApi: configApiRef, identityApi: identityApiRef },
factory: ({ configApi, identityApi }) =>
SegmentAnalytics.fromConfig(configApi, identityApi),
}),
/* highlight-add-end */
];
Configure the plugin in your app-config.yaml
:
The following is the minimum configuration required to start sending analytics events to Segment. All that's needed is your Segment Write Key
app:
analytics:
segment:
# highlight-start
writeKey: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
maskIP: true # prevents IP addresses from being sent if true
# highlight-end
In pre-production environments, you may wish to set additional configurations to turn off reporting to Analytics. You can do so like this:
app:
analytics:
segment:
# highlight-next-line
testMode: true # prevents data from being sent if true
You might commonly set the above in an app-config.local.yaml
file, which is
normally gitignore
'd but loaded and merged in when Backstage is bootstrapped.
FAQs
This plugin provides an implementation of the Backstage Analytics API for Segment. Once installed and configured, analytics events will be sent to Segment as your users navigate and use your Backstage instance.
The npm package @janus-idp/backstage-plugin-analytics-provider-segment receives a total of 0 weekly downloads. As such, @janus-idp/backstage-plugin-analytics-provider-segment popularity was classified as not popular.
We found that @janus-idp/backstage-plugin-analytics-provider-segment demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.