WordPress.org

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: 4.3
Last Updated: 2015-8-20
Active Installs: 1,000+

Ratings

5 out of 5 stars

Support

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

Got something to say? Need help?

Compatibility

+
=
Not enough data

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

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