About widgets in Analytics (classic)

Analytics classic

If you’d like to show your web analytics reports on your website, blog or internal dashboard without sharing the credentials to your Piwik PRO you can achieve it with a couple of clicks.

To start please go to Analytics Settings and then select Widgets

Widgetize dashboards – give you a possibility to embed the whole Piwik Dashboard in your website, application in an iframe.

The date parameter can be set to a specific calendar date, “today”, or “yesterday”. The period parameter can be set to “day”, “week”, “month”, or “year”.

You can also widgetize the All Websites dashboard in an iframe.

Widgetize reports give an option to place in an iframe just a specific report/ widget.

All you need to do is select the report and its widget and the relevant code will be generated.

In order to make your reports accesible to everyone who visits your website or application, you need to add token_auth to the link with your report.

So if for example, the link to our dashboard is:

<iframe src="https://salesdemo.piwik.pro/index.php?module=Widgetize&action=iframe&moduleToWidgetize=Dashboard&actionToWidgetize=index&idSite=15&period=week&date=yesterday" width="100%" height="100%" frameborder="0" marginwidth="0" marginheight="0"></iframe>

And our auth token &amp;token_auth=b0692a5f936c4bce5bdb9c9448803285

The correct code with authentication included is going to look like the example below:

<iframe src="https://salesdemo.piwik.pro/index.php?module=Widgetize&action=iframe&moduleToWidgetize=Dashboard&actionToWidgetize=index&idSite=15&period=week&date=yesterday&token_auth=b0692a5f936c4bce5bdb9c9448803285
" width="100%" height="100%" frameborder="0" marginwidth="0" marginheight="0"></iframe>
Was this article helpful?

Be the first to rate this article.

Technical Support

If you have any questions, drop us a line at support_SPC@piwik_SPC.pro.

We’re happy to help!