WordPress.org

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.1
Last Updated: 2014-7-9
Downloads: 1,013

Ratings

5 stars
5 out of 5 stars

Support

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

Got something to say? Need help?

Compatibility

+
=
Not enough data

1 person says it works.
0 people say it's broken.

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