Wp Tracking Codes

描述

WP Tracking Codes lets you add the main tracking and advertising codes to your WordPress site from a single settings screen — no theme editing, no separate plugin for each platform.

Features

  • Google Tag Manager — container code in <head> and after <body>
  • Google Analytics 4 — global site tag (gtag.js)
  • Google Ads Remarketing — global site tag for remarketing/conversion tracking
  • Facebook Pixel — base pixel code, including the noscript fallback
  • Google Merchant Customer Reviews (WooCommerce) — opt-in survey on the order confirmation page

What this plugin does not do

WP Tracking Codes only inserts the base tracking snippets above — it does not push ecommerce events or a dataLayer (add to cart, purchase, etc.) to GTM/GA4. For ecommerce event tracking on WooCommerce, check out Datalayer for WooCommerce, a dedicated plugin from the same developer.

Requirements

Works on any WordPress site. WooCommerce is only required for the Google Merchant Customer Reviews feature.

螢幕截圖

安裝

  1. Upload the plugin files to the /wp-content/plugins/wp-tracking-codes directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.
  3. Go to Settings WP Tracking Codes and paste in your tracking IDs.

常見問題

Does this plugin track WooCommerce events (add to cart, purchase, etc.)?

No. WP Tracking Codes only inserts the base/global tracking codes for each platform. For ecommerce event tracking (dataLayer, GA4/GTM enhanced ecommerce), use Datalayer for WooCommerce.

Do I need WooCommerce to use this plugin?

No. Google Tag Manager, GA4, Google Ads Remarketing and Facebook Pixel work on any WordPress site. WooCommerce is only required for the Google Merchant Customer Reviews feature.

What is needed to use this plugin?

  • WordPress 5.2 or higher and PHP 7.4 or higher.

What is the plugin license?

  • This plugin is released under a GPL license.

評價

閱讀全部4個評價

貢獻者及開發者

“Wp Tracking Codes” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Wp Tracking Codes 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄。

修改日誌

1.10.0 – 2026-07-29

  • Remove: DataLayer Google Tag Manager for WooCommerce (legacy Universal Analytics “Standard Ecommerce” format, discontinued since UA sunset).
  • Cleanup: Removed unused code left over from previous versions.
  • Support: Support -> WP 7.0, WC 10.9.0

1.9.3 – 2024-10-29

  • Support: Support -> WP 6.6.2 WC 9.9.3

1.9.2 – 2024-03-27

  • Support: Support -> WP 6.4.3 WC 8.7.0

1.9.1 – 2024-03-27

  • Update: Contributors and short description

1.9.0 – 2024-03-27

  • Fix: PHP deprecated function options page
  • Support: Support -> WP 6.4.3 WC 8.7.0

1.8.0 – 2023-11-07

  • New: Google Analytics 4 global tag
  • New: Google ADS global tag
  • Update: Remove Google Analytics UA support
  • Update: HPOS and Checkout Blocks compatibility
  • Support: Support -> WP 6.3 WC 8.0.3

1.7.0 – 2021-09-22

  • Version 1.7.0 Update global Google Analytics tag gtag.js

1.6.0 – 2021-06-01

  • Version 1.6.0 Update Version WordPress support, minimum version Requires at least now 5.2.0, internationalization pt-br, security fixes

1.5.0 – 2021-01-05

  • Version 1.5.0 Google Analytics 4 global tag

1.4.1 – 2020-04-27

  • Version 1.4.0 Google Merchant Customer update if error

1.4.0 – 2020-04-27

  • Version 1.4.0 Google Merchant Customer Reviews for WooCommerce

1.3.3 – 2020-03-20

  • Version 1.3.3 DataLayer Standard Google Tag Manager update plugin svn

1.3.2 – 2020-03-20

  • Version 1.3.2 DataLayer Standard Google Tag Manager update plugin

1.3.1 – 2020-03-20

  • Version 1.3.1 DataLayer Standard Google Tag Manager include bug resolved

1.3.0 – 2020-02-21

  • Version 1.3.0 Support DataLayer Standard Google Tag Manager for Woocommerce

1.2.0 – 2019-06-26

  • Version 1.2.0 WordPress 5.0 compatibility

1.1.0 – 2018-05-01

  • Version 1.1.0 GTM Validity

1.0.4 – 2018-02-18

  • Version 1.0.4 Stable

1.0.3 – 2018-02-19

  • Google Tag Support W3C Validation

1.0.2 – 2016-10-25

  • Insert Screenshot and Reviews

1.0.1 – 2016-10-25

  • Include Tag Manager and Link Help Me

1.0 – 2016-07-04

  • First Version