10000 Option to report Browser Window size instead of resolutions · Issue #983 · matomo-org/matomo · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Option to report Browser Window size instead of resolutions #983

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

Open
anonymous-matomo-user opened this issue Sep 14, 2009 · 10 comments
Open

Option to report Browser Window size instead of resolutions #983

anonymous-matomo-user opened this issue Sep 14, 2009 & 8000 middot; 10 comments
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.

Comments

@anonymous-matomo-user
Copy link

I know screen resolution is already logged, but not everyone runs their browser maximized. I'd like to see reports on the actual browser window size. I have sample javascript code that will collect that data.

function getBrowserWindowSize()
{
var myWidth = 0, myHeight = 0;
if( typeof( window.innerWidth ) == 'number' )
{
//Non-IE
myWidth = window.innerWidth;
myHeight = window.innerHeight;
}
else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) )
{
//IE 6+ in 'standards compliant mode'
myWidth = document.documentElement.clientWidth;
myHeight = document.documentElement.clientHeight;
}
else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) )
{
//IE 4 compatible
myWidth = document.body.clientWidth;
myHeight = document.body.clientHeight;
}

return {width:myWidth, height:myHeight};
}

Keywords: browser size

@robocoder
Copy link
Contributor

Thank you for the suggestion and code. While this may seem like a trivial request, this feature still requires changes to the protocol, Tracker (and Generator), new widgets, archiving, etc.

It might be better to incorporate this into #73 (which collects this information already) or #802 (which is about usability testing).

@mattab
Copy link
Member
mattab commented Sep 22, 2009

alternatively, this could be a Javascript tracking API option, eg.

 piwikTracker.detectResolutionAsWindowSize ```

but agreed with vipsoft that this as a new plugin would be better...

@anonymous-matomo-user
Copy link
Author

For web developers the actual screen size is a lot more useful than the screen resolution.

This is, in my opinion, important enough to be in core.

@bxt
Copy link
bxt commented Mar 9, 2015

This ticket ist nearly 6 years old but more relevant than ever with mobile web taking over and most sites being responsive by now. Any chances this will be fixed soon?

@johanholm
Copy link

+1 @bxt

@mattab mattab modified the milestones: Long term, Mid term Dec 23, 2015
@JimmyKuruvilla
Copy link

+1

@mattab mattab modified the milestones: Long term, Mid term Dec 5, 2016
@pdigioia
Copy link

+1

@luroguco
Copy link

+1

2 similar comments
@tinect
Copy link
tinect commented Dec 12, 2019

+1

@frinsen
Copy link
frinsen commented Feb 22, 2024

+1

@innocraft-automation innocraft-automation removed this from the Backlog (Help wanted) milestone Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Development

No branches or pull requests

0