
Product
Socket Brings Supply Chain Security to skills.sh
Socket is now scanning AI agent skills across multiple languages and ecosystems, detecting malicious behavior before developers install, starting with skills.sh's 60,000+ skills.
ndla-tracker
Advanced tools
NDLA's tracker for google tag manager.
# Using npm:
$ npm install ndla-tracker --save
# Using yarn:
$ yarn add ndla-tracker
To use the tracker you need to configure the tracker with correct google analytics id, google tag manager id and a listener for when the history changes:
import createHistory from 'history/createBrowserHistory';
import { configureTracker } from 'ndla-tracker';
const browserHistory = createHistory();
configureTracker({
listen: browserHistory.listen,
gaTrackingId: 'someGoogleAnalyticsId',
googleTagManagerId: 'someGoogleTagMangerId',
});
ReactDOM.render(
...,
document.getElementById('app'),
);
Tracking can be used in two different ways. Either with your own helmet handling:
import { HelmetWithTracker } from 'ndla-tracker';
const SomeTrackableComponent = ({title}) => {
return (
<div>
<HelmetWithTracker title={title} />
<p>A paragraph (hopefully)</p>
</div>
);
};
export default SomeTrackableComponent;
or:
import Helmet from 'react-helmet'
import { withTracker } from 'ndla-tracker';
const SomeTrackableComponent = ({title}) => {
return (
<div>
<Helmet title={title} />
<p>A paragraph (hopefully)</p>
</div>
);
};
export default withTracker(SomeTrackableComponent);
| Props | Type | Required | Description |
|---|---|---|---|
| title | String | * | A title (meta) used for the tracker. |
FAQs
A simple library for tracking NDLA applications
The npm package ndla-tracker receives a total of 2 weekly downloads. As such, ndla-tracker popularity was classified as not popular.
We found that ndla-tracker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.

Product
Socket is now scanning AI agent skills across multiple languages and ecosystems, detecting malicious behavior before developers install, starting with skills.sh's 60,000+ skills.

Product
Socket now supports PHP with full Composer and Packagist integration, enabling developers to search packages, generate SBOMs, and protect their PHP dependencies from supply chain threats.

Security News
An AI agent is merging PRs into major OSS projects and cold-emailing maintainers to drum up more work.