Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add opt-out feature by customizeable iframe and PHP-API #7398

Closed
typoworx-de opened this issue Mar 9, 2015 · 3 comments
Closed

Add opt-out feature by customizeable iframe and PHP-API #7398

typoworx-de opened this issue Mar 9, 2015 · 3 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@typoworx-de
Copy link

Currently the opt-out feature is only available by iframe and text from piwik lang.
By having different customers using one piwik instance it would be a very handy feature to be able to customize the css-style and default-texts by offering more flexible solutions.

May be it could be possible to inject custom text and css-styles using GET-params?
A much cleaner solution would be to offer an PHP-API Method triggering the cookie on/off and another one reading the current state as plain boolean to integrate such things as custom PHP f.e. by using AJAX to trigger the server-side skript triggering the Piwik API.

The current solution to change texts/style by adapting the template is not very suitable as this always will affect all customers/instances of a piwik-instance and changes may get lost by running an software-update on Piwik.

@lorenzschmid
Copy link

There is a plugin which lets you adapt the css per site over the administration interface http://plugins.piwik.org/customoptout
Concerning the language I agree it would be handy to have another plugin or even better, as you described, an API to include it smoother in the own design flow

@typoworx-de
Copy link
Author

Thanks for the hint! I also found that in the meantime and used it as "workaround".

Never the less, I still think it may be a nice feature to have a JSON/Javascript triggerable interface :)
May be I'll give it a try if I find some spare-time.

By the way for custom-opt-out I figured out that is important to add special headers for Internet Explorer.
It was hard to figure out why it did work in chrome and other browser, but did not in Safari/Internet Explorer until I set P3P Headers (see #3135).

@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label Mar 25, 2015
@lorenzschmid
Copy link

I honestly still think there should be an API :) but same here, I don't see it urgent but if I have some spare-time, we'll see.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

3 participants