Skip to content

Matomo 5 compatibility #76

Open
Open

Description

@snake14

Dear Matomo Plugin Author,
We are excited that Matomo 5.0.0 is on the horizon, and we would greatly appreciate your assistance in ensuring that your plugin remains compatible with this upcoming release. Maintaining compatibility will enable Matomo users to seamlessly use your plugin after they upgrade to Matomo 5. (If the plugin is not updated to be compatible with Matomo 5, then whenever a user will upgrade to Matomo 5, the plugin would be automatically disabled to prevent issues.)

Updating your plugin to be Matomo 5 compatible is a straightforward process and should not require a significant time investment. You can find more information about updating your plugin at: https://developer.matomo.org/guides/migrate-matomo-4-to-5

Thank you for your ongoing support and commitment to the Matomo community.
Your contribution is really appreciated!

The Matomo Team

PS: we’re also available to help if you have any question about making the plugin compatible.

I took the liberty of forking this project and making the necessary changes. If you create a 5.x-dev branch, merge my changes into that branch, and create a new release, you should be good to go.

Activity

  1. Zeichen32 commented on Oct 9, 2023

    @Zeichen32
    Owner

    @snake14 I have tried to update the plugin for Matomo 5, but getting Errors that my Menu classes already exists. It seams that in Matomo 5 the Namespace CustomOptOut is used somewhere else. Do you know if it is a problem to change the Namespace of a plugin?

    For this Plugin i will need to change the namespace from

    namespace Piwik\Plugins\CustomOptOut;

    to:

    namespace Piwik\Plugins\PiwikCustomOptOut;
  2. snake14 commented on Nov 13, 2023

    @snake14
    Author

    Hi @Zeichen32 . I apologize for the delay in getting back to you. I didn't see a notification for some reason.

    I don't see any problem with you changing the namespace of your plugin.

  3. AltamashShaikh commented on Nov 14, 2023

    @AltamashShaikh

    @Zeichen32 Any update ?

  4. Zeichen32 commented on Nov 19, 2023

    @Zeichen32
    Owner

    Sorry for the late reply, will push the changes today.

  5. Zeichen32 commented on Nov 19, 2023

    @Zeichen32
    Owner

    @snake14 @AltamashShaikh I have pushed the changes and release a new version. Unfortunately it seams I need to change the plugin name as well. If the name is not changes, it will unpackt in the CustomOptOut folder and the errors with duplicated namespace raise again.

    I have try different plugin name variants, but all will was rejected. So currently the plugin version 3.0.0 is break and will lead to an error if you activate the plugin.

    As for myself I not using matomo or this plugin anymore for a long time. And matomo meanwhile has everything this plugin provide as core features, I think the best would to deprectate this plugin and not release a plugin version for the Mantomo 5.

    Do you know any way, to reject a plugin version?

  6. pinned this issue on Nov 19, 2023
  7. snake14 commented on Nov 19, 2023

    @snake14
    Author

    Thank you for your effort @Zeichen32 . If you feel that all functionality is included in Matomo 5, I don't see any reason not to keep existing Matomo 4 compatible versions and deprecate the plugin going forward. Does that sound right to you @AltamashShaikh ?

    As far as removing published 3.x versions of the plugin from the marketplace, I think that @tsteur can remove it.

  8. tsteur commented on Nov 19, 2023

    @tsteur

    I can remove certain versions 👍 . Just let me know what exactly needs to happen

  9. Zeichen32 commented on Nov 19, 2023

    @Zeichen32
    Owner

    @tsteur Version 3.0.0 of the plugin need to be deleted. Because this version is broken for Matomo 5.

  10. tsteur commented on Nov 19, 2023

    @tsteur

    That's done @Zeichen32 👍

  11. AltamashShaikh commented on Nov 20, 2023

    @AltamashShaikh

    Thank you for your effort @Zeichen32 . If you feel that all functionality is included in Matomo 5, I don't see any reason not to keep existing Matomo 4 compatible versions and deprecate the plugin going forward. Does that sound right to you @AltamashShaikh ?

    As far as removing published 3.x versions of the plugin from the marketplace, I think that @tsteur can remove it.

    @snake14 Works for me 👍

  12. Cruiser13 commented on Feb 9, 2024

    @Cruiser13

    Actually Matomo does not have the features this plugin has. This plugin does allow setting custom CSS foreach different website in matomo. Matomo has one setting for Opt-out styling that does apply to all websites (which is usually not what you want as each website has a different styling).

    Any chance to get this compatible with 5.X @Zeichen32 ?

  13. Zeichen32 commented on Feb 11, 2024

    @Zeichen32
    Owner

    Matomo has the ability to set the following URL Parameter for each website individual:

    To customise the opt-out form you can use the following URL parameters:
    backgroundColor, a hexadecimal color string for example ffffff or ddd
    fontColor, a hexadecimal color string for example ffffff or ddd
    fontSize, a valid CSS font size for example 1.2em, 15pt, 15px or 50%
    fontFamily, a string containing only letters, space, or hyphen eg. Lucida, Courier new
    

    https://matomo.org/faq/how-to/faq_25918/

    Additional Matomo has support for a complete custom opt out on a javascript base.
    https://developer.matomo.org/guides/tracking-javascript-guide#optional-creating-a-custom-opt-out-form

    "Any chance to get this compatible with 5.X @Zeichen32 ?":
    In its base the plugin is compatible with 5.X, but the namespace and name of the plugin need to be change. The source code of this plugin is open source so you are free to create a fork of this repository.

  14. Cruiser13 commented on Feb 15, 2024

    @Cruiser13

    Thanks a lot! That will work. Also thank you very much for creating and maintaining this plugin for the last years. Has been really helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions