Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/lorenz/piwik-middleware
- Owner: lorenz
- License: mit
- Created: 2014-09-30T19:00:21.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-10-05T10:43:27.000Z (over 10 years ago)
- Last Synced: 2025-01-14T08:49:32.944Z (8 days ago)
- Language: JavaScript
- Homepage:
- Size: 145 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.