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)
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.
A closer look.
- 01Upload the plugin files to the /wp-content/plugins/wp-tracking-codes directory, or install the plugin through the WordPress plugins screen directly.
- 02Activate the plugin through the ‘Plugins’ screen in WordPress.
- 03Go to Settings → WP Tracking Codes and paste in your tracking IDs.
Frequently asked questions.
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 .