آیکن GTM4WP – A Google Tag Manager (GTM) plugin for WordPress
افزونه رایگان نسخه 1.22.5

GTM4WP – A Google Tag Manager (GTM) plugin for WordPress

توسعه‌دهنده: Thomas Geiger

توضیحات

Advanced tag management for WordPress with Google Tag Manager

تغییرات این نسخه

1.22.5
A maintenance release for the 1.x line. 1.22.4 was intended to be the last one before GTM4WP 2.0; this release exists because the fixes below are worth shipping to 1.x users rather than holding for 2.0.

Fixed (security): hardened how the hidden product-data attribute is built for WooCommerce product lists and cart remove links, so that no product field value can affect the surrounding HTML. Certain values were not guaranteed to stay inside the attribute.

Fixed: when a custom X-Forwarded-For header is configured as the visitor IP source, all entries of the header are now evaluated. Only the first entry was ever considered, because the remaining ones were not trimmed of the space that follows each comma and therefore failed IP validation.

Fixed: the custom visitor IP header name is now validated in full. The check accepted any value that contained at least one valid character, so an invalid header name passed validation and was then simply never found. Setups with a working header name are unaffected.

Please test 2.0.0 beta before the planned release on 1st September, 2026.

Download the latest test version from GitHub

1.22.4

Fixed: hardened how values are encoded into the data layer and into inline script blocks. Script blocks are no longer HTML entity decoded after sanitization, and every value written into a script context is now JSON encoded with the full set of hex escaping flags. Thanks cyn and Aether AI.

Fixed: nonce attribute should not be sanitized. Thank