{"id":349211,"date":"2026-08-19T10:36:47","date_gmt":"2026-08-19T10:36:47","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/simple-gtm\/"},"modified":"2026-08-19T10:36:31","modified_gmt":"2026-08-19T10:36:31","slug":"cosi-tags","status":"publish","type":"plugin","link":"https:\/\/eo.wordpress.org\/plugins\/cosi-tags\/","author":15695703,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"1.0.0","tested":"7.0.4","requires":"5.2","requires_php":"7.0","requires_plugins":null,"header_name":"Cos\u00ec Tags","header_author":"John Pennypacker","header_description":"A simple Google Tag Manager code inserter","assets_banners_color":"2cc1f4","last_updated":"2026-08-19 10:36:31","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/pennypacker.net","header_plugin_uri":"","header_author_uri":"https:\/\/pennypacker.net","rating":0,"author_block_rating":0,"active_installs":0,"downloads":63,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"johnpenn","date":"2026-08-19 10:36:31"}},"upgrade_notice":{"1.0":"<p>Initial release.<\/p>"},"ratings":[],"assets_icons":{"icon.svg":{"filename":"icon.svg","revision":3654456,"resolution":false,"location":"assets","locale":false}},"assets_banners":{"banner-1554x500.png":{"filename":"banner-1554x500.png","revision":3654413,"resolution":"1554x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3654413,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3654413,"resolution":"1","location":"assets","locale":"","width":2096,"height":1388},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3654413,"resolution":"2","location":"assets","locale":"","width":2127,"height":1398}},"screenshots":{"1":"Cos\u00ec Tags admin settings screen.","2":"Cos\u00ec Tags network\/multisite settings screen."}},"plugin_section":[],"plugin_tags":[232,23294,23295,4093,550],"plugin_category":[36],"plugin_contributors":[276486],"plugin_business_model":[],"class_list":["post-349211","plugin","type-plugin","status-publish","hentry","plugin_tags-analytics","plugin_tags-google-tag-manager","plugin_tags-gtm","plugin_tags-tag-manager","plugin_tags-tracking","plugin_category-analytics","plugin_contributors-johnpenn","plugin_committers-johnpenn"],"banners":{"banner":"https:\/\/ps.w.org\/cosi-tags\/assets\/banner-772x250.png?rev=3654413","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":"https:\/\/ps.w.org\/cosi-tags\/assets\/icon.svg?rev=3654456","icon":"https:\/\/ps.w.org\/cosi-tags\/assets\/icon.svg?rev=3654456","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/cosi-tags\/assets\/screenshot-1.png?rev=3654413","caption":"Cos\u00ec Tags admin settings screen."},{"src":"https:\/\/ps.w.org\/cosi-tags\/assets\/screenshot-2.png?rev=3654413","caption":"Cos\u00ec Tags network\/multisite settings screen."}],"raw_content":"<!--section=description-->\n<p>In most cases, this'll be all you need to add Google Tag Manager to your WordPress site. If your site is complicated, then you'll want a different solution that is sufficiently complicated to complete your idiom, but if you're like me, and you just want to insert the GTM snippets on your site, this plugin is your huckleberry.<\/p>\n\n<p>This plugin works on multisite installations as well as single installations. When used in a network, you have the option of specifying network default settings and allowing individual sites to override them or not.<\/p>\n\n<p>Note: Google Tag Manager is a third-party service provided by Google. This plugin embeds code from that service onto your WordPress website.<\/p>\n\n<h4>Requirements<\/h4>\n\n<p>Your own Google Tag Manager account, as well as its Container ID. It probably looks something like: <code>GTM-Z3V1L<\/code>.<\/p>\n\n<p>Plus, your theme should follow two particular WordPress standards. Those standards are two function calls:<\/p>\n\n<ul>\n<li>your theme calls <code>wp_head()<\/code> from within the <code>&lt;head&gt;<\/code> element.<\/li>\n<li>your theme calls <code>wp_body_open()<\/code> right after the <code>&lt;body&gt;<\/code> element begins.<\/li>\n<\/ul>\n\n<h3>Questions and answers<\/h3>\n\n<h4>What does Google Tag Manager do?<\/h4>\n\n<p>Google Tag Manager embeds snippets of HTML and Javascript on your website. It is often used to manage analytics tools on a website without changing the website's code.<\/p>\n\n<h4>What does Cos\u00ec Tags do?<\/h4>\n\n<p>Cos\u00ec Tags embeds the snippets of HTML and Javascript that Google Tag Manager requires on your website \u2014 in the proper locations \u2014 without you having to manually change any code.<\/p>\n\n<h4>Does Google Tag Manager have terms of service or related policies?<\/h4>\n\n<p>Yes. See: <a href=\"https:\/\/marketingplatform.google.com\/about\/analytics\/tag-manager\/use-policy\/\">Google Tag Manager Terms of Service<\/a> for information on usage, privacy, and terms.<\/p>\n\n<h4>What does the plugin do if I activate it but don't enter a Container ID?<\/h4>\n\n<p>Nothing. Well, nothing meaningful. If this is the case, disable the plugin until you're ready to add a Container ID.<\/p>\n\n<h4>What's \"defer loading\"?<\/h4>\n\n<p>It instructs the browser not to load GTM and everything that comes with it until the user interacts with the page. Interaction could be moving the cursor, a click, a key press, or something else. But if none of that happens, GTM doesn't load.<\/p>\n\n<h4>What is the benefit of defer loading?<\/h4>\n\n<p>Your Page Speed scores will likely improve and you will reap all the associated benefits.<\/p>\n\n<h4>Will defer loading affect my analytics stats?<\/h4>\n\n<p>Probably. It'll filter out bots and bounces which may lead to a drop in recorded pageviews and sessions. If you're still leaning on those metrics and want to talk through options, contact me and we'll talk it through.<\/p>\n\n<h4>Can I override defer settings on an ad hoc basis?<\/h4>\n\n<p>Yes, you can add cosi-tags=nodefer to the URL's querystring and that'll cause GTM to load when the rest of the page loads regardless of what the user does.<\/p>\n\n<h4>Can I load multiple GTM containers?<\/h4>\n\n<p>You can enter more than one ID, separate them by commas.<\/p>\n\n<h4>How do I track custom events like clicks and scrolling?<\/h4>\n\n<p>Manage those directly in Google Tag Manager.<\/p>\n\n<h4>Does Cos\u00ec Tags load Google Tag Manager in the admin panel?<\/h4>\n\n<p>No. Tag Manager is loaded on the front end of the website only.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Install the plugin, either by uploading it to <code>\/wp-content\/plugins\/<\/code> or through the WordPress plugin directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>Navigate to Admin -&gt; Settings -&gt; Cos\u00ec Tags and enter your Container ID. Important: without a Container ID, the plugin does nothing.<\/li>\n<li>Optionally choose to defer loading.<\/li>\n<li>Hit Save.<\/li>\n<\/ol>\n\n<h4>Multisite set up<\/h4>\n\n<ul>\n<li>As above, except you might choose to set up network default settings under Network Admin -&gt; Settings -&gt; Cos\u00ec Tags.<\/li>\n<li>By default, subsites can override network settings, but you can prevent that in the network settings if desired.<\/li>\n<\/ul>\n\n<h4>Validation<\/h4>\n\n<p>Load a WordPress page in your favorite web browser and view the source code. Search the code for \"Cos\u00ec Tags\". You should find two snippets, one within the <code>&lt;head&gt;<\/code> and the other within the <code>&lt;body&gt;<\/code>. Each snippet should include your container ID(s). Or, doublecheck using Google Tag Manager's own validation.<\/p>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"Insert Google Tag Manager into your WordPress site, with optional deferred loading to protect your Page Speed scores.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/eo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/349211","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/eo.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/eo.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=349211"}],"author":[{"embeddable":true,"href":"https:\/\/eo.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/johnpenn"}],"wp:attachment":[{"href":"https:\/\/eo.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=349211"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/eo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=349211"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/eo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=349211"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/eo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=349211"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/eo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=349211"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/eo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=349211"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}