
Product
Introducing Supply Chain Attack Campaigns Tracking in the Socket Dashboard
Campaign-level threat intelligence in Socket now shows when active supply chain attacks affect your repositories and packages.
A tiny (312B) client-side module for tracking with Google Analytics
This module exposes three module definitions:
dist/ganalytics.mjsdist/ganalytics.jsdist/ganalytics.min.jsPlease see Releases for changelog!
$ npm install --save ganalytics
const GAnalytics = require('ganalytics');
const ga = new GAnalytics('UA-XXXXXXXX-X', { aid:1 });
// or
const ga = GAnalytics('UA-XXXXXXXX-X', { aid:1 });
ga.send('pageview');
ga.send('pageview', { dt:'Foobar', dp:'/foo' });
ga.send('event', { ec:'Video', ea:'Play', el:'Home Hero' });
Type: String
Your Google Analytics tracker ID; eg UA-XXXXXXXX-X
Type: Integer
Default: 0
Anonymize the sender's IP address. See Anonymize IP.
Type: String
Specifies the application's name. See Application Name.
Type: String
Specifies the application identifier. See Application ID.
Type: String
Specifies the application installer identifier. See Application Installer ID.
Type: String
Specifies the application verison. See Application Version.
Type: String
Indicates the data source type of the hit; eg web or app. See Data Source.
Type: Boolean
Default: false
When truthy, a pageview event will not be sent immediately upon initialization.
Type: String
The type of hit to send. Must be one of these: pageview, screenview, event, transaction, item, social, exception, or timing.
Type: Object
The parameters to send based on the type of hit.
Please follow the links for each available parameter set:
For pageview hits only, if no params are provided, then the document.title and location.href values will be auto-filled. This allows you to send valid requests by writing:
ga.send('pageview');
// is the same as:
//=> ga.send('pageview', { dt:document.title, dl:location.href })
MIT © Luke Edwards
FAQs
A tiny (242B) shim when Element.classList cannot be used~!
The npm package classico receives a total of 0 weekly downloads. As such, classico popularity was classified as not popular.
We found that classico demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Campaign-level threat intelligence in Socket now shows when active supply chain attacks affect your repositories and packages.

Research
Malicious PyPI package sympy-dev targets SymPy users, a Python symbolic math library with 85 million monthly downloads.

Security News
Node.js 25.4.0 makes require(esm) stable, formalizing CommonJS and ESM compatibility across supported Node versions.