Node.js - Server side google analytics

Oscar Brito

Use google analytics to track all operations on server-side!

npm install analytics-node
var analytics = require('analytics-node');
analytics.init({ secret: 'YOURAPISECRET' });

userId : '019mr8mf4r',
event : 'Purchased an Item',
properties : {
revenue : 39.95,
shippingMethod : '2-day'


Visit for more informations, contacts and news about Web Development.
See other blog posts at

Divhide purpose is to follow the HTML5 movement and contribute with applications which prove the quality of technology.

Feel free to contact divhide.