Socket
Socket
Sign inDemoInstall

googalytics

Package Overview
Dependencies
1
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    googalytics

Google Analytics API for Node projects


Version published
Maintainers
1
Install size
177 kB
Created

Readme

Source

Googalytics

Simple node module to send custom server-side events to Google Analytics

Heavily influenced by the Gabba project from the guys at the Hybrid Group (http://github.com/hybridgroup/gabba)

Examples

Initialize

var GA = require("googalytics");
GA.initialize('UA-12345678-1', 'someplace.com', function () {
  GA.trackPage('page title', 'pageName', function (err, resp) {
    if (!err, resp.statusCode === 200) {
      console.log('it worked!');
    }
  });
});

What do those variables mean?!

The answers, as per usual, can be learned from the Google: https://developers.google.com/analytics/resources/articles/gaTrackingTroubleshooting#gifParameters

FAQs

Last updated on 30 Aug 2012

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc