Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
@gitlab/application-sdk-node
Advanced tools
This SDK is for using GitLab Application Services with Node.
Add the NPM package to your package JSON using your preferred package manager:
yarn add @gitlab/application-sdk-node
OR
npm i @gitlab/application-sdk-node
import { GitLabSDK } from '@gitlab/application-sdk-node';
const glSDK = new GitLabSDK({ app_id: 'YOUR_APP_ID', host: 'YOUR_HOST' });
Option | Description |
---|---|
app_id | The ID specified in the GitLab Project Analytics setup guide. It ensures your data is sent to your analytics instance. |
host | The GitLab Project Analytics instance specified in the setup guide. |
identify
Used to associate a user and their attributes with the session and tracking events.
glSDK.identify('123abc', { user_name: 'Matthew' });
Property | Type | Description |
---|---|---|
user_id | String | The ID of the user. |
user_attributes | Hash | Optional. The user attributes to add to the session and tracking events. |
track
Used to trigger a custom event.
glSDK.track(event_name, event_attributes);
Property | Type | Description |
---|---|---|
event_name | String | The name of the custom event. |
event_attributes | Hash | The event attributes to add to the tracked event. |
To develop with a local Snowplow pipeline, use Analytics devkit's Snowplow setup.
Want to contribute to the GitLab Application SDK - Node? follow contributing guide.
FAQs
NodeJS SDK for GitLab Application services
The npm package @gitlab/application-sdk-node receives a total of 66 weekly downloads. As such, @gitlab/application-sdk-node popularity was classified as not popular.
We found that @gitlab/application-sdk-node demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.