內容簡介
QuantumCloud PageSpeed友善的Google分析追蹤外掛,能夠在所有網頁中簡單地新增追蹤代碼到您的WordPress網站。但除此之外,它還解決了Google Pagespeed的另一個惱人問題。您有試過想要增加Google Pagespeed分數嗎?如果是,那麼您很可能會遇到最後幾個問題之一。Google的Pagespeed機器人會在"槓桿瀏覽器快取"區段中報告http://www.google-analytics.com/analytics.js具有僅2小時的到期日,因此阻止您獲得"Leverage browser caching"的通過標記。
我們中的大多數人無法避免使用Google Analytics來統計我們的網站。但是,您如何控制Google服務器上的頁面到期日呢?您不能。這是我們必須處理的一些蠢事之一。有關此問題的複雜解決方案,例如將分析代碼複製到您自己的服務器上,然後運行cron job每隔幾小時更新分析JavaScript。這些解決方案通常非常複雜,不建議使用。
QuantumCloud的WordPress Google Analytics Tracker插件是Google Pagespeed友善的。通過檢測到正是Google Pagespeed機器人正在要求頁面時,不在您的源代碼中添加分析代碼來解決這個問題。默認情況下選項被關閉。如果要完美通過"Leverage browser caching",可以打開這些選項。
網站:http://www.quantumcloud.com/
支援外掛頁面:https://www.quantumcloud.com/blog/wordpress/pagespeed-friendly-analytics-tracking-code-plugin-wordpress/
使用方法
啟用外掛後,添加您的分析追蹤ID
如果要隱藏Google Pagespeed機器人的分析代碼並提高Google Pagespeed分數,請選擇增加頁面速度選項。
外掛標籤
開發者團隊
② 後台搜尋「QuantumCloud PageSpeed Friendly Analytics Tracking」→ 直接安裝(推薦)
原文外掛簡介
QuantumCloud PageSpeed Friendly Analytics Tracking for Google does the simple job of adding tracking code to your WordPress website in all pages. But in addition to that it solves another annoying issue with google pagespeed. Have you ever tried to increase your pagespeed score in google pagespeed insight? If you did, then you most likely ran into an annoying issue as part of the last few issues to solve. Google’s pagespeed bot will report in the Leverage browser caching section that http://www.google-analytics.com/analytics.js has an expiry date set to only 2 hours and thus prevent you from getting a Passed rule marker for the Leverage browser caching area.
Most of us cannot avoid using google analytics for statistics on our website. But how can you control page expiry date on google server? You cannot. This is one of those stupid things we have to deal with. There are complex work-arounds for this. Like copying the analytics code to your own server and then run a cron job to update the analytics javascript every few hours. These work-arounds are usually quite complex and not recommended.
QuantumCloud’s Google Analytics Tracker Plugin for WordPress is Google pagespeed friendly. The issue is overcome by not adding the analytics code in your source code when the plugin detects that it is google pagespeed bot that is requesting the page. The option is turned off by default. You can turn on the options should you want a perfect score for Leverage browser caching.
Website: http://www.quantumcloud.com/
Support Plugin Page: https://www.quantumcloud.com/blog/wordpress/pagespeed-friendly-analytics-tracking-code-plugin-wordpress/
Use
After activating the plugin, add your analytics tracking id
Select the option Increase Page Speed if you want to hide the analytics code from Google Pagespeed bot and improve your Google pagespeed score.
