Linux 软件免费装
Banner图

GlobalDev Server Tracking for Google

开发者 globaldevitus
更新时间 2026年11月23日 22:10
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce analytics google-analytics google-ads conversion-tracking

下载

2.7.0

详情介绍:

GlobalDev Server Tracking for Google connects a WordPress website to the owner's own Google Analytics 4 (GA4) web stream and optional Google Ads conversion action. It is independently developed and is not affiliated with or endorsed by Google LLC. It does not include a Google account, advertising account, tracking ID, API secret, or hosted GlobalDev tracking service.

安装:

  1. Install and activate this plugin on WordPress 6.2 or newer. WooCommerce is optional, but required for ecommerce purchase and refund hooks.
  2. Open WooCommerce > Server Tracking for Google (or Settings > GlobalDev Tracking when WooCommerce is not active).
  3. Enter your own GA4 Measurement ID (G-...), and optionally the Google Ads tag ID (AW-...) and purchase conversion label. Create a Google Analytics Measurement Protocol API secret to enable server-side ecommerce purchases and refunds.
  4. Select Hybrid (browser engagement and server-side order events) or Browser only. Previously saved 'server' mode settings behave like Hybrid; the unauthenticated public event relay has been removed for security.
  5. Configure a consent management platform (CMP), and make sure it reports statistics and, if using Google Ads, marketing consent. Confirm that neither Google tag nor any Google request is present before consent.
  6. Save, accept the relevant cookies on a test browser, then test the tracking with Google Tag Assistant and GA4 Realtime/DebugView. Perform a paid test order for ecommerce. A paid order alone is not proof of an attributed Ads conversion.

常见问题:

Does the plugin contact Google before consent?

No. Only the locally enqueued tracking.js runs before consent, and it does not create a Google tag or perform an external request until the CMP reports explicit statistics or marketing permission. This is Basic Consent Mode, not Advanced Mode with cookieless pings.

Does the server mode send every event through the server?

No. Starting in 2.7.0, the insecure public event relay has been removed. Hybrid mode sends engagement events in the browser and consented WooCommerce purchase/refund events server-side. Old 'server' settings are interpreted as Hybrid. This removes an endpoint that could be abused to inject events using your GA4 API secret.

Why is there no GA4 event after accepting cookies?

The CMP must actively signal consent using one of the documented interfaces. Test your analytics permission, then confirm window.gdgtTrackingStatus shows analyticsConsent: true. A cookie banner's mere presence is not proof of consent.

Can I use the plugin without WooCommerce?

Yes, for page-view and engagement tracking. Ecommerce purchase/refund events require WooCommerce.

How are duplicate purchases prevented?

Server-side GA4 purchases use WooCommerce order metadata and stable transaction IDs; browser thank-you conversions use session-scoped keys. Independent tags from other plugins or Google Tag Manager cannot be automatically deduplicated by this plugin.

更新日志:

2.7.0 2.6.2