[WordPress] 外掛分享: GAinWP Google Analytics Integration for WP

首頁 › 外掛目錄 › GAinWP Google Analytics Integration for WP
WordPress 外掛 GAinWP Google Analytics Integration for WP 的封面圖片
7,000+
安裝啟用
★★★★☆
4.8/5 分(126 則評價)
剛更新
最後更新
—
問題解決
WordPress 6.0+ PHP 7.4+ v6.0.0 上架:2018-06-13

內容簡介

GAinWP 是一款輕量級 Google Analytics 整合外掛,能在數分鐘內為 WordPress 網站加入追蹤碼與數據報表,並於控制台即時呈現流量統計,同時提供完整的隱私保護選項,適合重視數據隱私的站長使用。

【主要功能】
• 控制台內嵌 Google Analytics 即時流量報表
• 支援 Universal Analytics 與 gtag.js 追蹤碼
• 支援 Google Tag Manager 代碼部署
• 提供 IP 匿名化及 Do Not Track 等隱私功能
• 自訂事件追蹤(下載、外連、信件、捲動深度等)
• 完整支援多站網路(Multisite)三種設定模式

外掛標籤

開發者團隊

⬇ 下載最新版 (v6.0.0) 或搜尋安裝

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

原文外掛簡介

GAinWP adds the Google Analytics 4 tag (or a Google Tag Manager container) to every page of your site. It is lightweight, has no dashboards or upsells, and sends your data straight to Google: nothing passes through a third party.
Google Analytics 4

Paste your Measurement ID (G-XXXXXXXXXX) and you’re done.
Page attributes sent with every page view: author, category, tags, publication year and month, and whether the visitor is logged in.
Engagement events that GA4 enhanced measurement doesn’t cover: email and phone link clicks, same-page anchor clicks, affiliate link clicks, and scroll depth at 25, 50, 75 and 100%.
Cross-domain measurement, cookie domain and cookie lifetime settings.

Google Tag Manager

Adds your container, including the no-JavaScript fallback.
Pushes page attributes to the data layer (gainwpAuthor, gainwpCategory, gainwpTag, gainwpPublicationYear, gainwpPublicationYearMonth, gainwpUser).
Optional AMP container for AMP plugin Reader mode pages.

Privacy

Google Consent Mode v2 defaults: leave them to your consent banner, deny in the EEA, UK and Switzerland only, or deny everywhere.
Optionally skip tracking for visitors who send Do Not Track or Global Privacy Control.
Visitor opt-out link or button with the [gainwp_useroptout] shortcode.
Exclude logged-in user roles (and network super admins) from tracking. Post previews and the Customizer are never tracked.

Bug reports and feature requests: GAinWP on GitHub.

Upgrading from 5.x
Version 6.0 is a rewrite for Google Analytics 4. Google stopped processing Universal Analytics data in July 2023, so 5.x has not been collecting anything since then.
After updating, go to Settings → Google Analytics and enter your GA4 Measurement ID. Until you do, GAinWP adds no tag and shows a reminder on the Dashboard and Plugins screens.
Carried over automatically:

Tracking method, including Tag Manager containers. Tag Manager sites keep working with no changes; data layer variable names are the same as before.
Custom dimension and data layer choices, which become page attributes.
Email, phone, anchor, affiliate and scroll tracking, Do Not Track, opt-out, excluded roles, cross-domain domains, cookie domain and lifetime.
Affiliate links are now matched by plain URL fragments such as /out/ instead of a regular expression. Simple patterns convert automatically; if yours can’t, the settings screen tells you and affiliate events stay off until you update it.

Removed:

Dashboard reports, real-time stats, post reports and the front-end widget. They relied on Google APIs that were shut down. Use Google Analytics, or Site Kit by Google if you want reports in WordPress.
Download, outbound link and form submit events: GA4 enhanced measurement records these itself.
Google Optimize (discontinued by Google), Analytics on AMP pages, Universal Analytics ecommerce, sample rates, enhanced link attribution and the custom cookie name.
IP anonymization (GA4 never stores IP addresses) and the remarketing switch (manage Google signals in Google Analytics instead).
Custom event categories, actions and labels set with data-vars-ga-* attributes. GA4 has no categories or labels, so tracked links send the standard event names.
Your stored Google sign-in and cached report data are deleted.

Opt-outs recorded by 5.x are still honored.
External services
GAinWP connects your site to Google so you can measure visits. It contacts no other service.

Google Analytics 4 mode loads the Google tag (gtag.js) from googletagmanager.com on every page. The visitor’s browser then sends page views, the page attributes and events you enable, and standard browser data (such as page URL, referrer, screen size and language) to Google Analytics, under the Measurement ID you enter.
Google Tag Manager mode loads your container from googletagmanager.com on every page. What it sends, and to whom, depends on the tags you configure in Tag Manager.

Nothing is sent to Google from your server, and nothing is sent before you enter an ID. Google’s Terms of Service, Privacy Policy and Google Analytics Terms apply.

延伸相關外掛

文章
Filter
Mastodon