zeichen32 / piwikcustomoptout Goto Github PK
View Code? Open in Web Editor NEWCreate your own piwik opt-out iframe css styles
License: GNU General Public License v3.0
Create your own piwik opt-out iframe css styles
License: GNU General Public License v3.0
Don't know if this is an issue with the plugin, or with Piwik plugin installation, but it happened three times in the three Piwiks that I added the plugin to:
BEFORE:
<Files ~ ".(php|php4|php5|inc|tpl|in)$">
<IfModule mod_access.c>
Deny from all
</IfModule>
<IfModule !mod_access_compat>
<IfModule mod_authz_host.c>
Deny from all
</IfModule>
</IfModule>
<IfModule mod_access_compat>
Deny from all
</IfModule>
</Files>
<Files ~ ".(test.php|gif|ico|jpg|png|svg|js|css|swf)$">
<IfModule mod_access.c>
Allow from all
</IfModule>
<IfModule !mod_access_compat>
<IfModule mod_authz_host.c>
Allow from all
</IfModule>
</IfModule>
<IfModule mod_access_compat>
Allow from all
</IfModule>
Satisfy any
</Files>
AFTER:
<Files "*">
<IfModule mod_access.c>
Deny from all
</IfModule>
<IfModule !mod_access_compat>
<IfModule mod_authz_host.c>
Deny from all
</IfModule>
</IfModule>
<IfModule mod_access_compat>
Deny from all
</IfModule>
</Files>
The result is, that Piwik can't access all its files and looks broken.
I'm surprised that I did'nt find anything here or via Google on this, since it happened to me on three different servers... (Ubuntu 12.04, Strato, All-Inkl)
Again thanks for a great plugin!
For security reasons some browsers don't load "http"-content within a "https"- page. So I need to call the opt-out content via https:// in the iframe.
If I do so, the custom-opt-Out plugin does not seem to trigger, the custom css is not used. Using http:// (and convincing the browser to load the unsecure content anyway) works quite normal.
Any idea why that is?
If I try to add a Google-Font via an external css file, Piwik appends some get-parameter:
"http://fonts.googleapis.com/css?family=PT+Sans?cb=0011da5c ..."
This makes Google fail, because it cannot find a font named "PT SANS**?cb=0011da5c ...**"!
Is there any other possibility to include Google-Fonts?
Regards
uagri
For all unauthorized users there is an error message coming out:
You are not allowed to read the value of the setting "defaultCssStyles" in plugin "CustomOptOut"
The plugin has been deactivated in my piwik for compatibility reasons with 2.16.5 (error message Das Plugin CustomOptOut ist nicht kompatibel mit Piwik 2.16.5). Any plans to add 2.16.5 compatibility?
Thanks!
Piwik 2.14.2
Custom OptOut 0.3
I'm using individual CSS code for OptOut text (inserted into CSS code editor).
When you will see Piwik setting on the website, then the popup will be shown correct format and styling.
After changing the settings, the poup will lose individual CSS code.
Can you confirm this problem?
BR,
newbie2004
Hi,
we use a responsive Layout and different Languages. Piwiks predefinition says that the iframe ist 200px high and has a 600px width. We need it more dynamic.
For other iframes we use easyXDM. There the iframe content can propagate its height to the parent. But currently I see no way to add the necessary js to the iframe.
Could you extend the PiwikCustomOptOut for custom js?
br,
Matthias Hermsdorf
Warning: The following plugins are not compatible with Piwik 2.12.1 and could not be loaded: CustomOptOut.
If a DNT header was sent by the browser, the optout page should just tell the user he/she is not being tracked because of the way his/her browser's configured.
Hello,
I'm using your plugin with PIWIK. When I load the iframe into a site I'll get "Invalid 'X-Frame-Options' header encountered when loading 'https://piwik.holgerkral.de/index.php?module=CoreAdminHome&action=optOut&idsite=2&language=de': '' is not a recognized directive. The header will be ignored."
This URL is shown in PIWIK backend: https://piwik.holgerkral.de/index.php?module=CoreAdminHome&action=optOut&idsite=2&language=de and it sents an empty X-Frame-Options header (> curl -I ....)
In your screenshot the URL is https://piwik.holgerkral.de/index.php?module=CustomOptOut&action=optOut&idsite=2&language=de (CustomOptOut instead of CoreAdminHome as module). Testet with curl it doesn't sent a X-Frame-Options header.
But when I check this second URL in browser it is redirected to the first URL and so sending the empty header.
Best regards
Holger Kral
There seems to be an issue with the display of webfonts in mobile Safari and Chrome (iOS 10.1.1) – I simply cannot get the font to display correctly although it works fine in the desktop-versions of Safari, FF, Chrome etc.
Any idea as to why this might happen? Can the plugin do anything differently or is this simply related to a security setting (preventing XSS or the like)?
--> https://thomas-knaus.de/impressum/
Thanks + regards!
Henning
If I "5) Use the iframe code provided below the input fields to add the Piwiki Opt-Out to your website."
the output is:
"CustomOptOut_YouMayOptOut
CustomOptOut_YouMayOptOutBis
CustomOptOut_YouAreOptedIn CustomOptOut_ClickHereToOptOut"
even if I test the output in Piwik.
Piwik 2.11.0 and Custom Opt-Out 0.2.0
Hi there,
piwik_ignore Cookie is not set in Chrome. No activity. IE and Firefox are fine.
Environment;
Apache 2.2
Piwik 2.0.3
CustomOptOut (v0.1.4)
Chrome Version 33.0.1750.154 m
You have an idea what's wrong ?
Best
Daniel
@lippoliv If you agree, we can add this feature in this plugin, so users don't need to install two plugins for customizing the optout.
Reference to:
matomo-org/matomo#2896 (comment)
just a tiny thing: would be great if one could have the easy possibility to remove the different look of the short text beside the check box. (resulting from "strong")
This could be done e.g. via a new checkbox within piwik admin backend.
There are two reasons for that:
an other way to achieve this and even more would be the possibility to have an extra custom css for this part of the text too...
maybe this is piwik issue is also relevant for your extension / or could be solved together:
New setting to disable Do not track but respect "Active Opt Out" from users (require button click) #6147
please see:
matomo-org/matomo#6147
Hi,
i installed the plugin and entered the custom css, which works fine.
But i need to do some more tweaks why i tried to enter a path in "external css file", unfortunately the text in the html is escaped like:
http://www.domain.de/wpcontent/themes/
and so the css can not be found.
I also just upgraded to piwik 2.11.1, maybe the escaping happens somewhere there? Can you give me a hint where to look?
DB Update does not seem to work properly
Is there a possibility to use several sites "idSite=x" in iframe-tag?
The plugin only shows css-input-fields for iframes with a site-id. But for the generic IFrame is no way to set the css.
/index.php?module=CoreAdminHome&action=optOut&language=de
There should be that possibility too. It also could work as a default for all unmodified site-ids.
The screenshot provided here on Github of PiwikCustomOptOut shows two individual configuration possibilities for PiwikCustomOptOut. I have two websites I am currently tracking with Piwik but the PiwikCustomOptOut plugin only shows one(!) configuration. This one is used for both websites. How do I enable site individual settings for PiwikCustomOptOut?
just trying to configure this great looking extension I found a problem:
tested with Piwik 2.1.1B4 and CustomOptOut v0.1.4
Would be great if one could not only change the appearance (CSS) but also the 2 texts shown (marked or not) directly within this plugin.
With this function one could easily adopt this function when using piwik for sites with
Hi! Is it possible to adapt style for all sites (iframe without siteid)?
If I use the module "CoreAdminHome" optout works for all included sites, but with
CustomOptOut only for one site (&action=optOut&idSite=1). I would like to have both: nice style but the functioning for all sites!?
Best regards!
Loading the CustomOptOut settings is not possible if you have hundrets or even thousands of websites in Piwik. Similar to the new website administration in Piwik, the plugin settings should use a paginatable list (and search) for displaying the overview (or single items).
Similar to this Piwik Core issue:
matomo-org/matomo#3135
If I use the original embedding method by Piwik (2.14) OptingOut works fine in IE:
index.php?module=CoreAdminHome&action=optOut&language=de will work, even if Piwik is installed on different domain.
If I use CustomOptOut, the checkbox will always be re-checked because the cookie is not set.
index.php?module=CustomOptOut&action=optOut&idSite=1&language=de
Any idea how to fix this for the plugin too? Maybe in the same way it got fixed in the core?
Piwik Output after update to 2.12.0
Fatal error: Call to undefined method Piwik\Menu\MenuTop::addEntry() in /xxx/piwik/plugins/ExampleUI/ExampleUI.php on line 48
A fatal error occurred
The following error just broke Piwik (v2.12.0):
Call to undefined method Piwik\Menu\MenuTop::addEntry()
in
/xxx/piwik/plugins/ExampleUI/ExampleUI.php line 48
i this an piwik or customoptout Problem?
hi,
using latest plugin version 0.40. i'm working with popup as written above.
when first try to show tracking settings poup, it will be shown in foreground. if you change the hook for do not track your visit, then the popup will be moved to the background.
this isn't very comfortable and with older versions the issue doesn't exist.
br,
newbie2004
Is it possible to add support for the Piwik Proxy Script?
I have no wildcard SSL certificate for the Piwik subdomain but want to use the iframe on the SSL secured main page.
After updating Piwik from 2.4.1 to 2.6.1, the plugin is just disabled and reported to be incompatible.
Hey,
here is a Problem of mine,
everytime i try to open the Custom OPT out Tab , it shows me this Error.
I tried Clearing the OP Cache and restarting my Webserver but nothing fixed it.
Key "custom_css" for array with keys "idsite, name, main_url, ts_created, ecommerce, sitesearch, sitesearch_keyword_parameters, sitesearch_category_parameters, timezone, currency, exclude_unknown_urls, excluded_ips, excluded_parameters, excluded_user_agents, group, type, keep_url_fragment, timezone_name, currency_name, alias_urls" does not exist. in /html/matomo/plugins/CustomOptOut/templates/index.twig 38 using PHP 7.0.29
For responsive websites or some other special cases it would be useful to let the iFrame grow responsively in height to either avoid scroll bars or a huge vertical gap at the bottom. Technically this could be implemented with window.postMessage.
Would this make sense or is it a too specific use case?
hi,
i'm using self hosted version of latest piwik 2.1.5 with your latest plugin 0.40.
i have different websites with different ids.
for all sites tracking with piwik is allowed.
if you are visiting one website and change piwik setting to do-not-track and leave site then visiting another of your own website and check piwik settings here ... it is also set to do-not-track - independent of other idsite parameter.
same procedure from the other side.
br,
newbie2004
Hi,
there is a "." (dot) in the path of the directories inside the zip-file, which makes it impossible for WinZip under Windows7 to extract the files. 7zip does the job.
Please correct.
Cheers,
Nicolai
Hi there,
does PiwikCustomOptOut fully support PHP 7.2 and Matomo 3.8.x? Any known issues? Thank you for your excellent plugin.
The file provides a changelog but not examples how to insert CSS. It will be nice to improve it.
hi,
i had tried to modify the german translations for your plugin in different .json files (add to /lang/de.json, add to /plugin/CoreAdminHome/lang/ & /plugin/CustomOptOut/lang/), but don't get a result.
i'm using piwik in the newest version 2.9.1.
hope you can help!?
br,
newbie-2004
Do you plan to update this plugin to work with 2.9.1?
Hi there,
I just noticed an error when using the plugin with the latest Piwik 3.0.0-b3 version in https://github.com/Zeichen32/PiwikCustomOptOut/blob/master/Menu.php#L24
addSettingsItem()
should be replaced with addSystemItem()
Here is a guide for migrating plugins to Piwik 3: http://developer.piwik.org/guides/migrate-piwik-2-to-3
You would pretty much only need to update plugin.json
to require Piwik 3 as described in the guide and then release a new version.
Haven't checked if there are any other problems re compatibility with Piwik 3
Hi Jens,
this plugin is really great, saved my day after much sweat and inadequate progress. It seems to work fine, but I use a Google font on one of my sites, so for the text to be in the same font as the rest of the website, I need to load it in the iframe too. I tried to sneak it in as the external css file, which of course does'nt work, just ended up with:
<link href="<link type="text/css" rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto:400,400italic,700,700italic">?cb=bace8b099b9c268dbacd9fecc7531b8a" type="text/css" rel="stylesheet">
as was pretty much to be expected. So my feature request is, to provide a second box underneath the css file box, which is pasted straight into the head area without being wrapped in anything - this would give maximum flexibility.
Again, many thanks!
Piwik recently started to give plugin developers the possibility to use the Piwik translation project to get translations for their plugins.
Are you interested in using it?
In the log i noticed the error "Invalid idSite: '0'" and found following hint in the Piwik forum:
http://forum.piwik.org/read.php?2,115076
In one Posting (from matt, 'May 09, 2014 12:58AM'):
you should use &idsite= and not &idSite= (notice the case difference)
If you saw &idSite= somewhere in the doc let me know as we need the user guides to be correct smiling smiley
It seems like in some former Piwik version, there was accidentally idSite instead of idsite as parameter.
Since this is corrected in Piwik itself, maybe the idSite-Error comes from CustomOptOut-Plugin?
Plugin does not work with latest version of piwik and is disabled.
If I am logged out of Piwik I get the error message “You are not allowed to read the value of the setting "defaultCssStyles" in plugin "CustomOptOut"” shown in the Piwik-Iframe on the web page where I'd like to offer the Piwik Opt-out. Once I am logged into Piwik, the styling works as intended together with the proper message from Piwik.
I am using the latest version of Piwik (2.16.0) and your plugin (0.4.1)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.