Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lorenz/piwik-middleware

Simplify Piwik integration in Express/Connect
https://github.com/lorenz/piwik-middleware

Last synced: about 24 hours ago
JSON representation

Simplify Piwik integration in Express/Connect

Awesome Lists containing this project

README

        

# Piwik Middleware
*Simplify Piwik integration in Express/Connect*
## Installation
Preferred via NPM:

npm install piwik-middleware

## Usage
app.js
```javascript
var piwik = require("piwik-middleware");
app.use(piwik({
piwikUrl: "piwik.example.com",
siteId: 1, // See Settings -> Websites in Piwik
trackPageView: true, // See Piwik documentation
linkTracking: true, // enableLinkTracking in Piwik
}));
```
template.jade
```jade
head
!=piwik()
```
template.ejs
```ejs

<%= piwik() %>

```
## License
This module is under the MIT license. For the text, see LICENSE.