Wp Tracking Codes
Wp Tracking Codes
Description
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.
Installation
- Upload the plugin files to the
/wp-content/plugins/wp-tracking-codesdirectory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the ‘Plugins’ screen in WordPress.
- Go to Settings WP Tracking Codes and paste in your tracking IDs.
Faq
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.
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.
- WordPress 5.2 or higher and PHP 7.4 or higher.
- This plugin is released under a GPL license.
Reviews
Very simple and useful!
By xcs85 on March 2, 2020
Perfect
By anemosfilak on October 23, 2019
The plugin work wery well
By tomeek76 on October 17, 2018
muito bom
By Heitor_tito on September 3, 2016
Muito Bom
Changelog
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