=== Wp Tracking Codes ===
Contributors: Heitor_tito, arraycodes
Donate link: https://profiles.wordpress.org/heitor_tito
Tags: google tag manager, ga4, google ads, facebook pixel, woocommerce
Requires at least: 5.2.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.10.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Add Google Tag Manager, GA4, Google Ads Remarketing, Facebook Pixel and Google Merchant Reviews codes to your site — no code editing required.

== 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](https://woocommerce.com/products/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 ==

1. Upload the plugin files to the `/wp-content/plugins/wp-tracking-codes` directory, or install the plugin through the WordPress plugins screen directly.
1. Activate the plugin through the 'Plugins' screen in WordPress.
1. Go 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](https://woocommerce.com/products/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.

== Screenshots ==

1. Plugin settings screen.

== 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

== Upgrade Notice ==

= 1.10.0 =
Removes the legacy DataLayer Google Tag Manager feature (old Universal Analytics format, discontinued). If you use it for ecommerce event tracking, switch to Datalayer for WooCommerce.