內容簡介
監控和分析訪客瀏覽器視窗大小對於您優化網站體驗、設計和轉換率至關重要,尤其是隨著響應式網頁設計的興起。這個外掛會收集瀏覽器視窗大小的資料並儲存在 Google Analytics 中。
透過在載入事件觸發的 Javascript 事件,這個外掛會量測您訪客的瀏覽器視窗大小並將結果作為事件傳送至您的 Google Analytics 帳號中。
您必須在網站上安裝異步 Google Analytics 追蹤腳本,並使用 "_gaq" 作為物件名稱。
您使用的模板必須支援在 WordPress 2.8 中引入的 body_class 過濾器勾子。
這個解決方案背後的技術細節可以在此找到 http://beantin.se/post/354097397/track-viewport-google-analytics
若要查看結果,請登入您的 Google Analytics 帳號(但需等待一天以讓 GA 處理資料),然後查看內容 -> 事件 -> 前三項事件。
在該報告中,您將看到一個名為 "Viewport" 的事件,並有三個動作: "Width"、 "Height" 和 "Size"。 "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.
