Measure Viewport Size

Captures the viewport size of visitors’ browser window and stores it as events in Google Analytics

Author:James Royal-Lawson (profile at wordpress.org)
WordPress version required:2.8.0
WordPress version tested:3.6
Plugin version:1.0.3
Added to WordPress repository:03-08-2010
Last updated:29-08-2013
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:http://beantin.se/post/903946687/wordpress-pl...
Total downloads:6 892
Active installs:10+
plugin download
Click to start download

Monitoring and analysing the size of the browser windows of your visitors is crucial for you to optimise the experience, design and conversion rate of your site. More than ever with the advent of responsive web design. This plugin gathers viewport data and stores it in Google Analytics.

Using a javascript event triggered by the onload event, this plug in measures the browser viewport size of your visitor's browser and sends the result to your Google Analytics account as an event.

You must have the asynchronous Google Analytics tracking script installed on your site and use _gaq as the object name. The template you are using must support the body_class filter hook introduced in wordpress 2.8

Details on the technique behind this solution can be found here http://beantin.se/post/354097397/track-viewport-google-analytics

To view the results, log in to your Google Analytics account (but wait a day for GA to process the data) and look at Content -> Events -> Top Events.

In that report you will see and event called "Viewport" with three actions; "Width", "Height", and "Size". The label within the action "Size" shows the exact dimensions of the browser viewport size of each visitor to your site.


Screenshots
FAQ
ChangeLog