Of particular interest are user-defined variables. For example, you could push the category of the currently displayed blog post to Piwik to get categories-based analytics.
All those options basically end up as values/arrays in the _paq JavaScript variable.
Now it would be very handy if there was a service so you could write in your controller
Coverage remained the same when pulling e83295258d81c94ea6ccef5a197f56f0b9fe2cc5 on fix-issue-2 into ffd439037614070cd4c6ae2ed7ae11178841abc6 on master.
There are quite a few things and settings you can apply to the tracker; see http://developer.piwik.org/api-reference/tracking-javascript.
Of particular interest are user-defined variables. For example, you could push the category of the currently displayed blog post to Piwik to get categories-based analytics.
All those options basically end up as values/arrays in the _paq JavaScript variable.
Now it would be very handy if there was a service so you could write in your controller
or in Twig
Then the bundle could collect all those extra settings and write them out once it renders the piwik_code.