Simple, lightweight solution for inserting your Google Tag Manager Universal tracking code.
As of April 2026, Tracking Code for Google Tag Manager is a WordPress google plugin with 20 active installations and a 5/5 rating from 1 reviews. It has been downloaded 1.4K+ times in total. Requires WordPress 5.2+ and PHP 5.6+. Available on WordPress.org since 2020. Last updated 1 year ago — may have compatibility concerns. Top alternative: Site Kit by Google – Analytics, Search….
Tracking Code For Google Tag Manager is a simple, lightweight WordPress plugin for inserting your Google Tag Manager tracking code. The plugin does one thing and one thing only; prints the standard Google Tag Manager tacking script to the <head> of your website. To insert your container ID, navigate to Settings > General and then scroll to the bottom of the page.
composer require claytoncollie/tracking-code-for-google-tag-manager
If you want to set the container ID without using the wp-admin user interface, use the filter below.
add_filter(
'tracking_code_for_google_tag_manager_id',
/**
* Set Google Tag Manager container ID.
*
* @param string $container_id Container ID.
*
* @return string
*/
function ( $container_id ) {…| WordPress | 5.2+ requiredTested up to 6.6.0 |
| PHP | 5.6+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.