If you like Piwik and R then piwikr
is for you. This post describes some of the custom analytics possible using piwikr
.
To install piwikr
in R
use the following commands:
install.packages('devtools')
devtools::install_github('amarder/piwikr')
This page was useful in understanding the data stored by Piwik in MySQL.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.