Title: Measure Viewport Size
Author: beantin
Published: <strong>2010年8月3日</strong>
Last modified: 2013年8月29日

---

プラグインを検索

このプラグインは **WordPress の最新3回のメジャーリリースに対してテストされていま
せん**。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress
で使用した場合は互換性の問題が発生する可能性があります。

![](https://s.w.org/plugins/geopattern-icon/measure-viewport-size.svg)

# Measure Viewport Size

 作者: [beantin](https://profiles.wordpress.org/beantin/)

[ダウンロード](https://downloads.wordpress.org/plugin/measure-viewport-size.zip)

 * [詳細](https://ja.wordpress.org/plugins/measure-viewport-size/#description)
 * [レビュー](https://ja.wordpress.org/plugins/measure-viewport-size/#reviews)
 *  [インストール](https://ja.wordpress.org/plugins/measure-viewport-size/#installation)
 * [開発](https://ja.wordpress.org/plugins/measure-viewport-size/#developers)

 [サポート](https://wordpress.org/support/plugin/measure-viewport-size/)

## 説明

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.

## スクリーンショット

[⌊The Viewport event category report in Google Analytics.⌉⌊The Viewport event category
report in Google Analytics.⌉[

The Viewport event category report in Google Analytics.

## インストール

 1. Download the .zip file and unpack
 2. Upload the measure-viewport-size directory to the `/wp-content/plugins/` directory
 3. Activate the plugin through the ‘Plugins’ menu in WordPress
 4. Make sure `<body <?php body_class(); ?>>` exists in header.php in the theme you
    are using

## FAQ

  I’ve installed the plugin but I can’t see any stats yet?

It can take up to 24 hours after the first visit to your site after installation
of the plugin for events to appear in Google Analytics.

  I’ve waited more than 24 hours, but still no stats are appearing?

Make sure your theme supports the body_class filter. See the readme.txt

  I’m getting a javascript error when I view my site

Perhaps you are logged in (as admin) and have configured the “Google Analytics For
WordPress” plugin to ignore visits from a user group. This plugin is dependent on
the Google Analytics tracking object being present. Enable tracking for all visitors.

    ```
    <?php code(); // goes in backticks ?>
    ```

## 評価

このプラグインにはレビューがありません。

## 貢献者と開発者

Measure Viewport Size はオープンソースソフトウェアです。以下の人々がこのプラグイン
に貢献しています。

貢献者

 *   [ beantin ](https://profiles.wordpress.org/beantin/)

[“Measure Viewport Size” をあなたの言語に翻訳しましょう。](https://translate.wordpress.org/projects/wp-plugins/measure-viewport-size)

### 開発に興味がありますか ?

[コードを閲覧](https://plugins.trac.wordpress.org/browser/measure-viewport-size/)
するか、[SVN リポジトリ](https://plugins.svn.wordpress.org/measure-viewport-size/)
をチェックするか、[開発ログ](https://plugins.trac.wordpress.org/log/measure-viewport-size/)
を [RSS](https://plugins.trac.wordpress.org/log/measure-viewport-size/?limit=100&mode=stop_on_copy&format=rss)
で購読してみてください。

## 変更履歴

#### 1.0.3

 * added opt_noninteraction to prevent events affecting bounce rate.

#### 1.0.2

 * Fixed plugin URL & updated readme.

#### 1.0.1

 * Initial release.

#### 0.0.5

 * Initial dev version.

## メタ

 *  バージョン **1.0.3**
 *  最終更新日 **13年前**
 *  有効インストール数 **10+**
 *  WordPress バージョン ** 2.8.0またはそれ以降 **
 *  検証済み最新バージョン: **3.6.1**
 *  言語
 * [English (US)](https://wordpress.org/plugins/measure-viewport-size/)
 * タグ
 * [browser](https://ja.wordpress.org/plugins/tags/browser/)[google](https://ja.wordpress.org/plugins/tags/google/)
   [measure](https://ja.wordpress.org/plugins/tags/measure/)[viewport](https://ja.wordpress.org/plugins/tags/viewport/)
 *  [詳細を表示](https://ja.wordpress.org/plugins/measure-viewport-size/advanced/)

## 評価

レビューはまだ送信されていません。

[Your review](https://wordpress.org/support/plugin/measure-viewport-size/reviews/#new-post)

[すべてのレビューを見る](https://wordpress.org/support/plugin/measure-viewport-size/reviews/)

## 貢献者

 *   [ beantin ](https://profiles.wordpress.org/beantin/)

## サポート

意見や質問がありますか ?

 [サポートフォーラムを表示](https://wordpress.org/support/plugin/measure-viewport-size/)