[WordPress] 外掛分享: Local Google Analytics for WordPress – caches external requests

首頁外掛目錄 › Local Google Analytics for WordPress – caches external requests
WordPress 外掛 Local Google Analytics for WordPress – caches external requests 的封面圖片
4,000+
安裝啟用
★★★★
4.5/5 分(10 則評價)
132 天前
最後更新
問題解決
WordPress 5.6+ PHP 7.4+ v3.2.9 上架:2011-03-23

內容簡介

這個外掛可以協助在網站頁面上插入 Google Analytics 代碼,而不影響佈景主題的代碼。您只需輸入跟踪代碼即可,並且此外掛相較於其他外掛講究網站效能並會快取 Google Analytics 腳本。

這個外掛如何快取 Google Analytics 腳本以及為什麼要這麼做?

當您啟用並填寫外掛設定時,它會下載名為 analytics.js 的遠端檔案,並將其放置在您的主機(伺服器)上的快取資料夾中。這個檔案每天更新一次,它有助於避免對 Google 遠端伺服器的外部請求,從而加快網站頁面的載入速度。另外,如果您想在 Google Pagespeed Insights 上獲得 100 的效能評分,那麼您一定需要快取 Google Analytics,否則您將收到警告。

外掛特性

可協助在網站標頭或頁尾放置分析代碼。
監視彈跳率。這裡的重點是您可以設定事件來觸發,當用戶在登陸頁面上停留一定時間後,告知 Google Analytics 不要將這些用戶視為彈跳。用戶可以訪問您的網站,查找所有必要的資訊(例如電話號碼),然後 - 簡單地關閉網站而不訪問其他頁面。如果未調整彈跳率,則將視此用戶為彈跳,即使他有成功的體驗。通過定義時間限制,從何時開始將用戶視為彈跳,您可以獲得更準確的用戶體驗(例如,他是否能夠找到自己正在尋找的東西)。
定義分析代碼位置。 Google Analytics 代碼默認情況下會在其他腳本和 JavaScript 代碼之前載入。但是,如果您設定了值 100,那麼 Google Analytics 代碼將會在所有腳本之後載入。調整優先順序有助於設定代碼在頁面上的位置。
禁用所有顯示網路功能。更多詳情請參閱:https://developers.google.com/analytics/devguides/collection/analyticsjs/display-features
使用匿名 IP 位址(某些國家法律要求)。更多詳情參閱:https://support.google.com/analytics/answer/2763052
追蹤管理員。您可以禁用對管理員活動的追蹤,以獲得更準確的統計資料。
不更新本地 script 的 analytics.js。外掛每天創建 Cron 任務以更新 Google Analytics 腳本的快取。一旦啟用此功能,外掛將不會更新 Google Analytics 快取檔案。

翻譯

英文 - 預設,並且始終包含
俄語

如果您希望協助翻譯,請通過此網站或外掛內部的聯繫方式與我聯繫。

感謝外掛作者

我們使用了一些外掛的功能:
GA Google Analytics、NK Google Analytics、Complete Analytics Optimization Suite(CAOS)、Clearfy - WordPress optimization plugin and disable ultimate tweaker、Enhanced Ecommerce Google Analytics Plugin for WooCommerce。

推薦的獨立模組

我們邀請您檢查我們的團隊還推出了一些其他相關的免費外掛,您可能會特別有用:

Clearfy - WordPress optimization plugin and disable ultimate tweaker
Disable Comments for Any Post Types(Remove Comments)
Cyrlitera - transliteration of links and file names
Cyr-to-lat reloaded

外掛標籤

開發者團隊

⬇ 下載最新版 (v3.2.9) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Local Google Analytics for WordPress – caches external requests」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This plugin helps to plug in Google Analytics code to the website pages without affecting the theme code. All you have to do is to enter the tracking code. That’s all. Unlike other plugins, this one cares about your website performance and caches Google Analytics scripts.
How does plugin cache Google Analytics scripts and why?
When you activate and fill in plugin settings, it downloads remote file named analytics.js and places it to the Cache folder on your hosting (server). This file is updated once a day – it helps to avoid external requests to the Google remote server and speeds up the website pages.
Also if you want to gain 100 performance rating on Google Pagespeed Insights, then you’ll definitely need to cache Google Analytics, otherwise you’ll get a warning.
PLUGIN FEATURES

Helps to place analytics code to the website header or footer.
Monitors bounce rates. The point is that you set up the event triggered after a user spends a certain amount of time on the landing page, telling Google Analytics not to consider these users as a bounce. The user can visit your website, find all necessary information (for example, phone number), and then – simply close the website without visiting other pages. If the bounce rate hasn’t been adjusted, then this user is considered as a bounce, even though he had a successful experience. By defining time limits as from when the user should be considered as a bounce, you get more accurate performance of the user experience (for example, whether he’s been able to find what he was looking for or not).
Define the analytics code position. Google Analytics code loads prior to other scripts and JavaScript code by default. But if you set up the value 100, for example, then the Google Analytics code will be loaded after all scripts. Adjusting the priority helps to set up the code’s position on the page.
Disable all Display Network functions. Find more: https://developers.google.com/analytics/devguides/collection/analyticsjs/display-features
Use anonymous IP address (required by the law in some countries). More details: (https://support.google.com/analytics/answer/2763052)
Track administrators. You can disable tracking for administrators’ activities and get more accurate statistics.
Do not update the analytics.js local script. Plugin creates cron task to update cache of Google Analytics scripts daily. Once this feature is enabled, the plugin won’t update the Google Analytics cache file.

Translations

English – default, always included
Russian

If you want to help with the translation, please contact me through this site or through the contacts inside the plugin.
THANKS TO THE PLUGINS’ AUTHORS
We used some plugins functions:
GA Google Analytics, NK Google Analytics, Complete Analytics Optimization Suite (CAOS), Clearfy — WordPress optimization plugin and disable ultimate tweaker, Enhanced Ecommerce Google Analytics Plugin for WooCommerce
Recommended separate modules
We invite you to check out a few other related free plugins that our team has also produced that you may find especially useful:

Clearfy – WordPress optimization plugin and disable ultimate tweaker
Disable Comments for Any Post Types (Remove Comments)
Cyrlitera – transliteration of links and file names
Cyr-to-lat reloaded – transliteration of links and file names
Disable admin notices individually
Hide login page
Disable updates, Disable automatic updates, Updates manager
WordPress Assets manager, dequeue scripts, dequeue styles

延伸相關外掛

文章
Filter
Apply Filters
Mastodon