Create your own piwik opt-out iframe css styles
Latest commit 4c2e287 Nov 28, 2016 @Zeichen32 committed on GitHub Merge pull request #44 from Zeichen32/JsInjection
[WIP] Add new feature to inject Javascript to the OptOut iFrame.

Custom Opt-Out Styles Piwik Plugin


Adds a new admin tab allowing to change the opt-out CSS Styles for each website.


1) Click on the "Settings" link located in the top menu on the right

2) Click on the "Custom Opt-Out" tab located in the "Settings" section of the sidebar on the left

3) Enter your customized CSS code into the textarea input field called "Custom Css" e.g.

  body {
    font-family: Arial, Verdana, sans-serif;
    font-size: 12px;
    color: #ddd;
    line-height: 160%;
    margin: 10px;
    padding: 0;

or insert a URL to the file containing your custom CSS into the input field called "External CSS File" e.g.

4) Click the "Save" button.

5) Use the iframe code provided below the input fields to add the Piwiki Opt-Out to your website.

How to change the opt-out text

I needed to remove this feature due to the breaking changes in Piwik 2.11.0


  • Piwik >=3.0.0-b1


Jens Averkamp

Sven Motz


Please direct any feedback to

Copyright and license

Released under the GPL v3 (or later) license, see