Ready to get started?Download WordPress

Plugin Directory

Metronet Tag Manager

Integrate Google Tag Manager into your website.

Filtering Variables

If you choose to place variable values inside percentage signs (e.g., %replace_test%), you can filter these as necessary.

Here's an example:

add_filter( 'gtm_replace_test', 'gtm_replace_test', 10, 3 );
function gtm_replace_test( $total_match, $match, $post_id ) {
    return "replaced with content";

The filter name is gtm_ with the suffix of replace_test, since that content is inbetween the percentage signs.

Requires: 3.9 or higher
Compatible up to: 3.9.2
Last Updated: 2014-7-9
Downloads: 1,124


5 stars
5 out of 5 stars


1 of 3 support threads in the last two months have been resolved.

Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.

100,2,2 100,3,3 100,1,1