simple analytics middleware for express