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

Improve handling of DevicePlugins to make it extendable #11748

Merged
merged 4 commits into from Jun 1, 2017
Merged

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented May 30, 2017

Based on this changes it will be simple to add new browser plugin detections.
I've created a simple plugin for WebGL detection: https://github.com/sgiehl/Piwik-Plugin-DevicePluginWebGL
Will improve and publish that plugin as soon as this gets merged

Note: Due to the adjustments the "cookie" property is now also available in visitor object.

refs #10841

After Merge:

  • adjust test in CustomDimensions plugin

@sgiehl sgiehl added c: Platform For Matomo platform changes that aren't impacting any of our APIs but improve the core itself. Needs Review PRs that need a code review labels May 30, 2017
@sgiehl sgiehl added this to the 3.0.5 milestone Jun 1, 2017
@tsteur
Copy link
Member

tsteur commented Jun 1, 2017

Code looks good 👍
If we want other plugins to be able to extend it, should we document it? Not sure if it is actually needed since there is a lot of boiler code for the tracking part etc.

@sgiehl
Copy link
Member Author

sgiehl commented Jun 1, 2017

I'll try to add some more comments in the code to explain everything a bit. But we shouldn't make it official API, I think

@tsteur
Copy link
Member

tsteur commented Jun 1, 2017

👍

@sgiehl sgiehl merged commit 457d630 into 3.x-dev Jun 1, 2017
@sgiehl sgiehl deleted the deviceplugins branch June 1, 2017 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Platform For Matomo platform changes that aren't impacting any of our APIs but improve the core itself. Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants