Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@sap_oss/automated-usage-tracking-tool
Advanced tools
Automated usage tracking tool is a user-centric data collection tool, using a Customer Data Cloud tenant, that tracks the usage of CX IAS's automation tools, generates comprehensive reports for evaluating tool effectiveness and improvements.
The Automated Usage Tracking Tool is designed to help developers track user interactions within their JavaScript and TypeScript applications using SAP Customer Data Cloud.
By integrating this tool, you can gather insights into how users interact with various features of your application, which can be invaluable for improving user experience and making data-driven decisions.
sap_horizon
theme to the consent dialog for a consistent look and feel.This tool is ready to use by JavaScript/Typescript client applications after importing and installing it from NPM.
npm init
Install @sap_oss/automated-usage-tracking-tool as a dependency of the new project
npm install @sap_oss/automated-usage-tracking-tool
Import the default artifact
import TrackingTool from '@sap_oss/automated-usage-tracking-tool'
const trackingTool = new TrackingTool({
apiKey: [apiKey],
dataCenter: [dataCenter],
storageName: [storageName], // Optional
})
Ask for consent confirmation or ask the consent question to the user.
Note: If the consent was already granted, the consent dialog will not be shown (no extra validations needed).
await trackingTool.requestConsentConfirmation() // Possible Answer: Yes (or exit app)
// OR
await trackingTool.requestConsentQuestion() // Possible Answers: Yes or No
Track usages of your application features.
Note: If the consent was not granted, the usage will not be tracked (no extra validations needed).
trackingTool.trackUsage({
toolName: [toolName],
featureName: [featureName],
})
For the web version, there is the option to import the sap_horizon theme to be applied to the consent dialog
import '@sap_oss/automated-usage-tracking-tool/theme/sap_horizon.css'
Types are available for Typescript client applications.
import { TrackerArguments, TrackUsageArguments, ConsentArguments } from '@sap_oss/automated-usage-tracking-tool'
This method is not necessary for the implementation (as this is performed behind the scenes), but it can be used to check if the consent was already granted if you want to use that information in your application.
trackingTool.isConsentGranted()
In the /examples
folder there are available examples of Javascript and Typescript Web and CLI client apps using the tool.
This example demonstrates the integration with a JavaScript CLI client application. See examples/javascript-cli-client/README.md for more details.
This example demonstrates the integration with a JavaScript web client application. See examples/javascript-web-client/README.md for more details.
This example demonstrates the integration with a TypeScript CLI client application. See examples/typescript-cli-client/README.md for more details.
This example demonstrates the integration with a TypeScript web client application. See examples/typescript-web-client/README.md for more details.
This project is open to feature requests/suggestions, bug reports etc. via GitHub issues. Contribution and feedback are encouraged and always welcome. For more information about how to contribute, the project structure, as well as additional contribution information, see our Contribution Guidelines.
If you find any bug that may be a security problem, please follow our instructions at in our security policy on how to report it. Please do not create GitHub issues for security-related doubts or problems.
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone. By participating in this project, you agree to abide by its Code of Conduct at all times.
Copyright 2024 SAP SE or an SAP affiliate company and automated-usage-tracking-tool contributors. Please see our LICENSE for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available via the REUSE tool.
FAQs
Automated usage tracking tool is a user-centric data collection tool, using a Customer Data Cloud tenant, that tracks the usage of CX IAS's automation tools, generates comprehensive reports for evaluating tool effectiveness and improvements.
We found that @sap_oss/automated-usage-tracking-tool 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.