@ -15,6 +15,7 @@ If you have only one site, or all of your sites sending requests to the same piw
`django-pypiwik` installs the `Piwik configuration` model. Use this model to connect your Django site with an Piwik site.
When using the `PiwikTrackingMiddleware`, the `PIWIK_TRACKING_MIDDLEWARE_EXCLUDE_ADMIN` option controls whether requests in the Django admin site should be tracked or not.
@ -79,6 +80,7 @@ You can also use the `track_page_view` decorator in your `urls.py` to wrap third
## PiwikTrackingMiddleware (since 0.1.6)
You can also use the `PiwikTrackingMiddleware` to track page views by including `django_pypiwik.middleware.PiwikTrackingMiddleware` in your `MIDDLEWARE_CLASSES`. The middleware sends a server-to-server tracking call in the `process_response` hook.
The `PIWIK_TRACKING_MIDDLEWARE_PARAMS` option (a dict) in your settings.py let you control other tracking parameters to send to Piwik.
Please note that the call is synchronous - if your tracking server is slow to response, the response time of your application will suffer.