Skip to content
Permalink
Browse files

Piwik test

  • Loading branch information...
Depado committed Dec 4, 2014
1 parent 6cf4d6b commit aa5dfcc987ed60f27a4181dc092d9dff64d79a51
Showing with 6 additions and 1 deletion.
  1. +6 −1 app.js
7 app.js
@@ -116,7 +116,12 @@ io.sockets.on('connection', function (socket) {

// Simple route with websocket inside it
app.get('/', function(req, res) {
piwik.track(baseUrl + req.url);
piwik.track({
url: baseUrl + req.url,
action_name: 'Unicorn HomePage',
ua: req.header('User-Agent'),
lang: req.header('Accept-Language'),
});
res.render('index.html');
});

0 comments on commit aa5dfcc

Please sign in to comment.
You can’t perform that action at this time.