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 new column in statify table for mobile usage #104

Open
Zodiac1978 opened this issue Sep 28, 2018 · 4 comments
Open

Add new column in statify table for mobile usage #104

Zodiac1978 opened this issue Sep 28, 2018 · 4 comments
Assignees
Milestone

Comments

@Zodiac1978
Copy link
Member

I would like to add a new data column besides created, referrer and target.

ismobile

This feature could be easily added with the WordPress core functionwp_is_mobile and would just add a boolean value in a new column for each entry.

It is easily to visualize and would add a real benefit to the users without creating any privacy problems.

If you follow the post about statify this is one of the most mentioned missing features.

If the majority thinks this is a good idea I would add a new branch for this feature. Otherwise I would try to make an addon plugin for this.

@Zodiac1978
Copy link
Member Author

This feature could be easily added with the WordPress core functionwp_is_mobile and would just add a boolean value in a new column for each entry.

Does somebody have an idea how this could work for the JS tracking?

@stklcode
Copy link
Contributor

stklcode commented Oct 4, 2018

Either call wp_is_mobile while processing the JS request or add the flag via wp_localize_script should work I think.

@patrickrobrecht patrickrobrecht added this to the 1.8.0 milestone Dec 28, 2018
@florianbrinkmann
Copy link
Member

Just for the reference: work on this started in branch issue/104-show-mobile-usage. Showing the usage already works, the part of storing it is missing. @Zodiac1978 wrote a plugin for that (https://gist.github.com/Zodiac1978/a4796579f5143d9e3100015e664adc2c) which can be used as a starting point. I will try to find the time to add this.

@patrickrobrecht patrickrobrecht modified the milestones: 1.8.0, 1.9.0 Jul 25, 2020
@patrickrobrecht patrickrobrecht modified the milestones: 1.9.0, 2.1.0 Dec 12, 2020
@Zodiac1978
Copy link
Member Author

If the WordPress function wp_is_mobile is not sufficient there is a plugin called mobble which is using this PHP library which could be used for more detailed info: http://mobiledetect.net/

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

No branches or pull requests

4 participants