Skip to content

Latest commit

 

History

History
121 lines (80 loc) · 3.5 KB

README.md

File metadata and controls

121 lines (80 loc) · 3.5 KB

Custom Opt-Out Styles Piwik Plugin

Description

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

Usage

  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.

http://www.example.org/styles/piwikcustom.css

  1. Click the "Save" button.

  2. 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

Requirements

  • Piwik >= 2.15.0

Changelog

CustomOptOut 0.4.0:

  • Use new OptOutManager
  • Drop support for Piwik < 2.15.0
  • Use piwiks default OptOutView and Controller

CustomOptOut 0.3.1:

  • (Issue #32) Use idsite instead of idSite parameter
  • (Issue #33) Loose site id between switching Opt Out states

CustomOptOut 0.3.0:

  • Use the new OptOut Manager, so this Plugin can change the style of the core OptOut View
  • Update Transifex translations
  • Update CodeMirror Editor

CustomOptOut 0.2.5: (HotFix)

  • Fix CodeMirror Editor Textarea with large css code
  • Fix invalid html in optout template

CustomOptOut 0.2.4:

CustomOptOut 0.2.3:

  • (Issue #22) Remove escaping from externel css url
  • Fix PluginSettings

CustomOptOut 0.2.2: (HotFix)

CustomOptOut 0.2.1:

  • (Issue #21) Remove possibility to change opt-out text for each website (Breaking Changes in Piwik 2.11.0)

CustomOptOut 0.2.0:

  • Add possibility to change opt-out text for each website

CustomOptOut 0.1.9:

CustomOptOut 0.1.8:

  • (MR #15) Make the opt-out form work even if JavaScript is disabled (craue)

CustomOptOut 0.1.7:

  • (MR #14) Update Readme (kghbln)

CustomOptOut 0.1.6:

CustomOptOut 0.1.5: (HotFix)

  • (Issue #6) Disable AngularJs form binding

CustomOptOut 0.1.4:

  • (Issue #3) Code updated to support Piwik 2.1 and newer
  • (Issue #2) Allow relative urls in css file field

CustomOptOut 0.1.3:

  • (MR #1) Added a p-tag around the opt-out text for better markup and easier styling. (christianseel)

CustomOptOut 0.1.2:

  • Fix wrong css escaping

CustomOptOut 0.1.1:

  • Initial Version

Authors

Jens Averkamp

Sven Motz

Support

Please direct any feedback to https://github.com/Zeichen32/PiwikCustomOptOut

Copyright and license

Released under the GPL v3 (or later) license, see misc/gpl-3.0.txt