[WordPress] 外掛分享: CAOS | Host Google Analytics Locally

首頁外掛目錄 › CAOS | Host Google Analytics Locally
WordPress 外掛 CAOS | Host Google Analytics Locally 的封面圖片
10,000+
安裝啟用
★★★★
4.9/5 分(128 則評價)
105 天前
最後更新
100%
問題解決
WordPress 4.6+ PHP 7.0+ v5.0.1 上架:2016-05-05

內容簡介

CAOS(完整的 Google Analytics 最佳化套件)允許您在本地主機上托管 analytics.js/gtag.js 檔案,並使用 WordPress 內建的 Cron 計劃自動更新。完全自動化!

如果您不是 Google Analytics 的重度使用者,只是對您的網頁瀏覽量感到好奇?CAOS 完全支援 Minimal Analytics,即 Google Analytics Lite。這是 Google Analytics 預設庫(analytics.js/gtag.js)的一個極輕型替代品。Minimal Analytics 還可以幫助您擺脫 Google PageSpeed Insights 中令人惱人的未使用 JavaScript 警告!

每當您在 Google Pagespeed Insights、Pingdom 或 GTMetrix 上分析您的網站時,都會告訴您在使用 Google Analytics 時要利用瀏覽器快取,因為 Google 將快取過期時間設定為 2 小時。這個外掛能夠讓您在 Pagespeed 和 Pingdom 上得到更高的分數,並使您的網站加載更快,因為瀏覽器不需要從 Google 的外部服務器進行回程下載。

只需安裝外掛,輸入您的追蹤 ID,外掛就會將必要的 Google Analytics 追蹤代碼添加到您的佈景主題標頭(或頁腳),並下載並保存 analytics.js/gtag.js 檔案到您的網站伺服器中,並自動保持更新(使用 wp_cron() 中的定期腳本)。或者,如果您想使用另一個外掛來使用本地托管檔案,可以在進階設定下勾選相容性模式,無論哪種方法,CAOS 都是一個設置後可以不再理會的外掛。

欲知更多信息,請參閱:[如何設置 CAOS](更多信息: 如何設置 CAOS)。

功能

在本地主機上托管 analytics.js 或 gtag.js(有什麼區別?)
下載的檔案會重新命名為隨機字符串,以避免被廣告封鎖器擋下
相容性模式允許您使用本地托管檔案與所有 Google Analytics 外掛一起使用,例如:

MonsterInsights(Pro 版),
ExactMetrics
Site Kit by Google,
WooCommerce Google Analytics Integration,
WooCommerce Google Analytics Pro,
Analytify,
還有許多!

與所有 Cookie Notice 外掛相容,例如:

Complianz,
CookieYes,
WP Cookie Notice,
Cookie Notice & Compliance,
Cookie Notice & Consent Banner,
還有許多!

Minimal Analytics 支持,
Google Analytics V4 支持(包括雙追蹤),
預連接至 google-analytics.com 以減少延遲並加快請求速度,
當訪客使用廣告封鎖器查看您的頁面時,向您的 Google Analytics 儀表板傳送事件,
捕獲外部連結,
增強連結歸因,
將追蹤代碼添加到標頭、頁腳或手動設置,
異步或默認(同步)加載跟踪片段,
將 analytics.js/gtag.js 檔案保存到 WordPress 內容(wp-content)目錄中的任何位置,以避免 WordPress 安全外掛(如 WordFence)檢測或緩存外掛(如 WP Super Cache)刪除它,
從 CDN 提供 analytics.js/gtag.js,
設定 Cookie 到期時間,
設定網站速度取樣率,
設定調整後的跳出率 (Adjusted Bounce Rate),

外掛標籤

開發者團隊

⬇ 下載最新版 (v5.0.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「CAOS | Host Google Analytics Locally」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

CAOS can be downloaded for free without any paid subscription from the official WordPress repository.
CAOS (Complete Analytics Optimization Suite) for Google Analytics allows you to host gtag.js locally and keep it updated using WordPress’ built-in Cron-schedule. Fully automatic!
Not a big Google Analytics user and just curious about your pageviews? CAOS fully supports Minimal Analytics 4. An extremely lightweight alternative to Google Analytics’ default libraries (gtag.js). Minimal Analytics also helps you get rid of that annoying Unused JS notice in Google PageSpeed Insights!
Whenever you run an analysis of your website on Google Pagespeed Insights, Pingdom or GTMetrix, it’ll tell you to leverage browser cache when you’re using Google Analytics. Because Google has set the cache expiry time to 2 hours. This plugin will get you a higher score on Pagespeed and Pingdom and make your website load faster, because the user’s browser doesn’t have to make a roundtrip to download the file from Google’s external server.
Just install the plugin, enter your Mesurement ID and the plugin adds the necessary Tracking Code for Google Analytics 4 to the header (or footer) of your theme, downloads and saves the gtag.js-file to your website’s server and keeps it updated (automagically) using a scheduled script in wp_cron(). Or if you’d like to use the locally hosted file with another plugin, check Compatibility Mode under Advanced Settings, Either way, CAOS is a set and forget plugin.
For more information: [How to setup CAOS](For more information: How to setup CAOS.
Features

Host gtag.js for Google Analytics 4 locally,
Downloaded files are renamed to random strings to avoid ad blockers,
Minimal Analytics 4 support,
Compatibility Mode allows you to use the locally hosted file with all Google Analytics plugins, e.g.

MonsterInsights (Pro),
ExactMetrics
Site Kit by Google,
WooCommerce Google Analytics Integration,
WooCommerce Google Analytics Pro,
Analytify,
And many more!

Compatible with all Cookie Notice plugins, e.g.

Complianz,
CookieYes,
WP Cookie Notice,
Cookie Notice & Compliance,
Cookie Notice & Consent Banner,
And many more!

Preconnect to google-analytics.com to reduce latency and speed up requests,
Add tracking code to header, footer or manually,
Save gtag.js anywhere within the WordPress content (wp-content) directory to avoid detection by WordPress security plugins (such as WordFence) or removal by caching plugins (such as WP Super Cache),
Serve gtag.js from your CDN,
Set Cookie Expiry Period,
Force disabling display features functionalities,
Track logged in Administrators,

Features in CAOS Pro
Use Google Analytics in compliance with GDPR with:
– Randomize Client ID (which grants a fresh, untraceable UUID/ClientID to each visitor),
– Stealth Mode (a unique, customized API, designed for WordPress, which anonymizes your visitor’s data before sending it to Google’s servers).
Other features:
– Cloaked Affiliate Link Tracking,
– Cloudflare Compatibility Mode.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon