[WordPress] 外掛分享: Lean GA4 Tracker

WordPress 外掛 Lean GA4 Tracker 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Lean GA4 Tracker」是 2025-04-01 上架。
  • 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
  • 上一次更新是 2025-04-12,距離現在已有 22 天。
  • 外掛最低要求 WordPress 6.2 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 8.2 以上。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

maidulcu |

外掛標籤

ga4 | tracking | lightweight | google analytics |

內容簡介

總結:Lean GA4 Tracker是一個輕量、開發者友好的WordPress外掛程式,可將Google Analytics 4(GA4)追蹤整合進WordPress中。設計考量效能和簡單性,使您可以實施先進的GA4追蹤,同時避免較大型的分析外掛所帶來的累贅。

問題與答案:


  • Lean GA4 Tracker的設計目標是什麼?

  • 答:設計為輕量和簡單性,以協助您在WordPress中實施先進的GA4追蹤,避免其他較大型分析外掛帶來的累贅。
  • 這個外掛支援哪些功能?

  • 答:支持手動GA4 API訪問令牌、基於標籤的設置UI以及可選的Google Tag Manager(GTM)容器注入等功能。
  • 如何實現與GA4的簡單整合?

  • 答:通過您的測量ID簡單整合GA4。
  • Lean GA4 Tracker提供哪些設置選項?

  • 答:包括選項Google Tag Manager(GTM)容器注入、通過JSON輸入進行自定義GA4事件追蹤、潔淨的分頁設置介面等。
  • 這個外掛是否對隱私非常關注?

  • 答:是的,它還提供可選的集成同意模式和餅乾橫幅外掛(如Complianz、CookieYes)。

原文外掛簡介

A lightweight, developer-friendly plugin to integrate Google Analytics 4 (GA4) tracking with WordPress. Designed for performance and simplicity, Lean GA4 Tracker lets you implement advanced GA4 tracking without the bloat of larger analytics plugins.
Includes lightweight WooCommerce tracking for product views, cart actions, checkout, and purchases — no extra setup required. Consent Mode integration supports Complianz, CookieYes, Cookiebot, and native WordPress consent APIs.
Key Features:

Easy integration with GA4 using your Measurement ID
Lightweight, performance-first architecture with no bloat
Manual GA4 API access using user-supplied access tokens and property IDs
Optional Google Tag Manager (GTM) container injection with support for Web, AMP, and Custom containers
Enable GTM Debug Mode for container preview/testing
Custom GA4 Event Tracking via JSON input
Tabbed settings UI for clean configuration management
Debug Mode for inspecting events in the console (admin only)
Error notices for invalid JSON in Custom Events field
Site-level and Multisite Network-level settings with optional enforcement
Configurable script loading (default, async, or defer)
Clean, class-based architecture with Composer and PSR-4 autoloading
Developer-friendly and extensible for custom implementations
Privacy-aware: Optional integration with Consent Mode and cookie banner plugins (e.g., Complianz, CookieYes)
Exclude specific user roles from GTM injection
Toggle support for automatic integration with Complianz, CookieYes, and Cookiebot cookie banners
Track form submissions from popular plugins including Contact Form 7, WPForms, Gravity Forms, Ninja Forms, Formidable Forms, and Fluent Forms
WooCommerce support: track product views, add to cart, checkout, and purchases using GA4 eCommerce event schema

Whether you’re a developer building custom themes or a site owner who wants full control over analytics, Lean GA4 Tracker delivers exactly what you need — nothing more, nothing less.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Lean GA4 Tracker」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0.3 | 1.0.4 | 1.0.5 | 1.0.6 | 1.0.7 | 1.0.9 | 1.1.0 | 1.1.1 | 1.1.2 | trunk |

延伸相關外掛(你可能也想知道)

  • Clear Sucuri Cache 》這個外掛可以讓您在點擊一下按鈕之後刪除所需網域的整個 Sucuri 快取。, 刪除動作可以在 WordPress 管理面板或外掛程式的頁面中進行。目前版本包含以 URL 項...。
  • imageLightbox 》這是使用 WordPress 製作的圖片燈箱效果外掛,其基礎程式為 MIT 授權的 imageLightbox.js,原作者為 Osvaldas Valutis (http://osvaldas.info/image-lightbox...。
  • Fast Smooth Scroll 》外掛總結:, - 這個外掛簡單直接,提供快速且高效的使用者體驗。, - 啟用外掛後,所有的錨點連結(指向同一頁面上其他內容的連結)將提供平滑捲動的體驗,而...。
  • Anchor smooth scroll 》這個外掛會為 WordPress 中的錨點(anchors)加入平滑滾動效果。, 功能, , 輕量快速,沒有滾動事件, 在不同頁面間進行滾動(在頁面載入時滾動到目標 ID), 可...。
  • Add infos to The Events Calendar 》這款輕量級的外掛程式「Add infos to the events calendar」為 MODERN TRIBE 的「The Events Calendar Free Plugin」提供快速鍵區塊 (圖片版權、連結至具特定...。
  • FrontBlocks 》總結:這篇文章介紹了在WordPress外掛中使用的數據屬性,包括輪播圖的數據屬性和動畫的數據屬性。, , 問題與答案:, 1. 這篇文章主要介紹了哪些輪播圖的數據...。
  • Debrandify · Remove or Replace WordPress Branding 》Debrandify(前身為DeWordPressify)是一個工具套件外掛,提供了許多設置來自定義和改進WordPress。您可以刪除WordPress的品牌標識,並將其替換為您自己的品...。
  • Snow Fall 》總結:這個外掛可以在您的網站上添加一個輕微的飄雪效果,使用了 Zach Leatherman 製作的輕量<snow-fall> JavaScript web component。, , HTML...。
  • atec Stats 》**總結:** 這個外掛觀察流入的流量,記錄頁面訪問和訪客數。它功能輕巧(200KB),且資源效率高,後端 CPU 負載少於 1 毫秒,前端 CPU 負載也是少於 1 毫秒...。
  • Lightweight Live Ajax Search 》「輕量級即時 Ajax 搜尋外掛」可啟用 AJAX 驅動的即時搜尋功能,外掛體積小巧,提供簡易的短碼讓您能在任何地方顯示即時搜尋輸入框。您可以將短碼放置在任何...。
  • Lightweight and Responsive Youtube Embed 》如果你想要在你的網站上嵌入 YouTube 影片,那麼你就需要這個外掛程式。也許你知道,也許你不知道,預設的 YouTube 嵌入程式碼不是可響應的,在載入播放器時...。
  • Lightweight Slider 》Lightweight Slider 是一個免費且非常輕量的響應式圖片幻燈片外掛,使用自定義文章類型和特色圖像。易於使用的設置頁面允許完全控制幻燈片高度、幻燈片之間的...。
  • EasyWeather widget 》Weather Underground(www.wunderground.com)的天氣數據和預報的簡單而輕量的小工具。, 外掛程式會儲存數據的本機副本,以達到更快速和更優化的執行效果。, ...。
  • Auto-Social Meta Tags ASMT83 》Auto-Social Meta Tags ASMT83 是一款外掛,它會在 WordPress 網站的文章、頁面和其他部分上自動添加社交媒體元標籤,使用現有的特徵(例如摘要、標籤和特色...。
  • WP Advanced Categories Widget 》WP Advanced Categories Widget 是一個簡單易用的 WordPress 外掛,可以顯示您的類別(categories),並利用每個類別中第一篇文章的特色圖片自動生成背景圖片...。

文章
Filter
Mastodon