O'Reilly logo

Piwik Web Analytics Essentials by Stephan A. Miller

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Embedding Piwik widgets

We haven't written any code so far in this chapter, but I bet you know it's coming. Let's get started with something easy. Then we can jump into the deep end. Embedding a Piwik widget in another page, such as the sidebar of your website, is easy. It is just like any other badge or widget you may add to your blog. Just generate the code right in your Piwik installation, paste the code where you want it on your site, and you are done. But there are a few details that mean the difference between a widget you can see and useless code.

Give your anonymous user rights

Piwik is going to give you the code you need, but first you have to make sure that your user named anonymous can see it, or else you may trick yourself. Because you ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required