Hi Piotr,
I have an exemplar course I've been working on. I'll be posting about it in the Moodle Learning Analytics Working Group at https://moodle.org/analytics soon. Meanwhile, check out the Working Group page for more information about the state of analytics tools in Moodle.
best regards,
Elizabeth