{"id":21902,"date":"2020-10-08T21:14:24","date_gmt":"2020-10-08T21:14:24","guid":{"rendered":"https:\/\/directiveconsulting.com\/ca\/?post_type=institute&#038;p=21902"},"modified":"2024-05-23T07:41:18","modified_gmt":"2024-05-23T11:41:18","slug":"google-tag-manager-wordpress","status":"publish","type":"post","link":"https:\/\/directiveconsulting.com\/ca\/blog\/google-tag-manager-wordpress\/","title":{"rendered":"How to Setup Google Tag Manager in WordPress (Step-by-Step)"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">Looking for instructions on how to set up Google Tag Manager (GTM) on your WordPress account?<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In this short guide, you\u2019ll discover two ways to set up Google Tag Manager and connect other Google services to your WordPress account.\u00a0<\/span><\/p>\n<p><span data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;[optin-inline id='obcxths3msxl2zirkkwi']&quot;}\" data-sheets-userformat=\"{&quot;2&quot;:12861,&quot;3&quot;:{&quot;1&quot;:0},&quot;5&quot;:{&quot;1&quot;:[{&quot;1&quot;:2,&quot;2&quot;:0,&quot;5&quot;:{&quot;1&quot;:2,&quot;2&quot;:0}},{&quot;1&quot;:0,&quot;2&quot;:0,&quot;3&quot;:3},{&quot;1&quot;:1,&quot;2&quot;:0,&quot;4&quot;:1}]},&quot;6&quot;:{&quot;1&quot;:[{&quot;1&quot;:2,&quot;2&quot;:0,&quot;5&quot;:{&quot;1&quot;:2,&quot;2&quot;:0}},{&quot;1&quot;:0,&quot;2&quot;:0,&quot;3&quot;:3},{&quot;1&quot;:1,&quot;2&quot;:0,&quot;4&quot;:1}]},&quot;7&quot;:{&quot;1&quot;:[{&quot;1&quot;:2,&quot;2&quot;:0,&quot;5&quot;:{&quot;1&quot;:2,&quot;2&quot;:0}},{&quot;1&quot;:0,&quot;2&quot;:0,&quot;3&quot;:3},{&quot;1&quot;:1,&quot;2&quot;:0,&quot;4&quot;:1}]},&quot;8&quot;:{&quot;1&quot;:[{&quot;1&quot;:2,&quot;2&quot;:0,&quot;5&quot;:{&quot;1&quot;:2,&quot;2&quot;:0}},{&quot;1&quot;:0,&quot;2&quot;:0,&quot;3&quot;:3},{&quot;1&quot;:1,&quot;2&quot;:0,&quot;4&quot;:1}]},&quot;12&quot;:0,&quot;15&quot;:&quot;Roboto&quot;,&quot;16&quot;:11}\">[optin-inline id=&#8217;obcxths3msxl2zirkkwi&#8217;]<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">What is Google Tag Manager?<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Google tag manager is a free service provided by Google that allows digital marketers to create, manage, and deploy marketing tags and tracking pixels on their websites without any prior knowledge of HTML or CSS coding languages.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">With tag manager, marketers can set up customized marketing tags on individual pages that may be triggered by specific user behaviors. Tags can be used to gather data about specific actions on your website &#8211; things like PDF downloads, shopping cart abandonment, exit link clicks, scroll depth monitoring, and more. The data you collect can be analyzed using Google Analytics to inform your user experience and <a href=\"https:\/\/directiveconsulting.com\/ca\/resources\/what-is-cro\/\">conversion rate optimization<\/a> decisions.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">How to Set Up Google Tag Manager in WordPress<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">To get started, you\u2019ll need to visit the<\/span><a href=\"https:\/\/tagmanager.google.com\/\"><span style=\"font-weight: 400;\"> Google Tag Manager<\/span><\/a><span style=\"font-weight: 400;\"> page and create an account. You\u2019ll be asked to choose an account name and set up a container based on your target platform.<\/span><\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone size-large wp-image-21904\" src=\"https:\/\/directiveconsulting.com\/ca\/wp-content\/uploads\/sites\/11\/2020\/10\/image1-10-1024x520.png\" alt=\"google tag manager platform\" width=\"1024\" height=\"520\" srcset=\"https:\/\/directiveconsulting.com\/wp-content\/uploads\/sites\/11\/2020\/10\/image1-10-1024x520.png 1024w, https:\/\/directiveconsulting.com\/wp-content\/uploads\/sites\/11\/2020\/10\/image1-10-300x152.png 300w, https:\/\/directiveconsulting.com\/wp-content\/uploads\/sites\/11\/2020\/10\/image1-10-768x390.png 768w, https:\/\/directiveconsulting.com\/wp-content\/uploads\/sites\/11\/2020\/10\/image1-10-1536x780.png 1536w, https:\/\/directiveconsulting.com\/wp-content\/uploads\/sites\/11\/2020\/10\/image1-10.png 1885w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">After setting up your tag manager account, you should immediately see a pop-up with instructions for installing Tag Manager on your website. You\u2019ll be given two tracking codes: one that goes in the head section of every page on your website, and another code that goes in the body section.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-21905\" src=\"https:\/\/directiveconsulting.com\/ca\/wp-content\/uploads\/sites\/11\/2020\/10\/image8-1.png\" alt=\"install google tag manager\" width=\"653\" height=\"447\" srcset=\"https:\/\/directiveconsulting.com\/wp-content\/uploads\/sites\/11\/2020\/10\/image8-1.png 653w, https:\/\/directiveconsulting.com\/wp-content\/uploads\/sites\/11\/2020\/10\/image8-1-300x205.png 300w\" sizes=\"(max-width: 653px) 100vw, 653px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">If you already closed this pop-up, you can access these codes again by clicking on the \u201cAdmin\u201d tab and selecting \u201cInstall Google Tag Manager\u201d next to the cog symbol.<\/span><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-21906\" src=\"https:\/\/directiveconsulting.com\/ca\/wp-content\/uploads\/sites\/11\/2020\/10\/image5-4.png\" alt=\"google tag manager admin\" width=\"939\" height=\"659\" srcset=\"https:\/\/directiveconsulting.com\/wp-content\/uploads\/sites\/11\/2020\/10\/image5-4.png 939w, https:\/\/directiveconsulting.com\/wp-content\/uploads\/sites\/11\/2020\/10\/image5-4-300x211.png 300w, https:\/\/directiveconsulting.com\/wp-content\/uploads\/sites\/11\/2020\/10\/image5-4-768x539.png 768w\" sizes=\"(max-width: 939px) 100vw, 939px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">To successfully install and enable Google tag manager on your website, you\u2019ll need to ensure that your GTM code snippets are correctly pasted onto every page of your website. Doing this manually would be extremely time-consuming, especially if your website has a lot of pages &#8211; instead, this guide will show you 2 ways to set up Google Tag Manager on your WordPress website without having to insert your code snippets into each individual page.<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">Method #1: Manual Set-Up<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">To install Google Tag Manager throughout your WordPress website, you will need to make use of the theme editor. You can access the theme editor from the dashboard of your WordPress website by hovering your mouse over \u201cAppearance\u201d in the sidebar and selecting \u201cTheme Editor\u201d from the menu.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21907\" src=\"https:\/\/directiveconsulting.com\/ca\/wp-content\/uploads\/sites\/11\/2020\/10\/image6-3.png\" alt=\"wordpress theme editor\" width=\"953\" height=\"443\" srcset=\"https:\/\/directiveconsulting.com\/wp-content\/uploads\/sites\/11\/2020\/10\/image6-3.png 953w, https:\/\/directiveconsulting.com\/wp-content\/uploads\/sites\/11\/2020\/10\/image6-3-300x139.png 300w, https:\/\/directiveconsulting.com\/wp-content\/uploads\/sites\/11\/2020\/10\/image6-3-768x357.png 768w\" sizes=\"(max-width: 953px) 100vw, 953px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Next, scan the list of theme files available on the right side of your screen and find one with a name like \u201cTheme Header (header.php)\u201d. This is the file that you\u2019ll need to edit to install your GTM code snippets.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21908\" src=\"https:\/\/directiveconsulting.com\/ca\/wp-content\/uploads\/sites\/11\/2020\/10\/image9.png\" alt=\"wordpress theme folder\" width=\"803\" height=\"627\" srcset=\"https:\/\/directiveconsulting.com\/wp-content\/uploads\/sites\/11\/2020\/10\/image9.png 803w, https:\/\/directiveconsulting.com\/wp-content\/uploads\/sites\/11\/2020\/10\/image9-300x234.png 300w, https:\/\/directiveconsulting.com\/wp-content\/uploads\/sites\/11\/2020\/10\/image9-768x600.png 768w\" sizes=\"(max-width: 803px) 100vw, 803px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Once you\u2019ve opened the Theme Header file, you should be able to locate the &lt;head&gt; tag and the &lt;body&gt; tag. We\u2019ve highlighted them in red in this example image.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21909\" src=\"https:\/\/directiveconsulting.com\/ca\/wp-content\/uploads\/sites\/11\/2020\/10\/image4-6.png\" alt=\"wordpress head section\" width=\"799\" height=\"820\" srcset=\"https:\/\/directiveconsulting.com\/wp-content\/uploads\/sites\/11\/2020\/10\/image4-6.png 799w, https:\/\/directiveconsulting.com\/wp-content\/uploads\/sites\/11\/2020\/10\/image4-6-292x300.png 292w, https:\/\/directiveconsulting.com\/wp-content\/uploads\/sites\/11\/2020\/10\/image4-6-768x788.png 768w\" sizes=\"(max-width: 799px) 100vw, 799px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">To complete the installation process, paste the first code snippet from tag manager under your header tag and paste the second code snippet under the body tag. Your final result should look something like this:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21910\" src=\"https:\/\/directiveconsulting.com\/ca\/wp-content\/uploads\/sites\/11\/2020\/10\/image7-1.png\" alt=\"gtm in wordpress\" width=\"795\" height=\"791\" srcset=\"https:\/\/directiveconsulting.com\/wp-content\/uploads\/sites\/11\/2020\/10\/image7-1.png 795w, https:\/\/directiveconsulting.com\/wp-content\/uploads\/sites\/11\/2020\/10\/image7-1-300x298.png 300w, https:\/\/directiveconsulting.com\/wp-content\/uploads\/sites\/11\/2020\/10\/image7-1-150x150.png 150w, https:\/\/directiveconsulting.com\/wp-content\/uploads\/sites\/11\/2020\/10\/image7-1-768x764.png 768w\" sizes=\"(max-width: 795px) 100vw, 795px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">At this point, you can complete the installation process by clicking the \u201cUpdate File\u201d button at the bottom of the page.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">This manual method of installing Google Tag Manager is quick and easy, but there is one drawback &#8211; anytime you reinstall or update your theme, your code snippets will be deleted and you\u2019ll need to re-install GTM on your website.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">A common workaround for this involves the creation of a child theme, a special sub-theme that inherits features and functionality from a parent theme while applying its own customizations.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">If you\u2019d rather avoid having to do this, keep reading to find out about the next method for setting up Google Tag Manager on your WordPress sites.<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">Method #2: Using the Google Tag Manager for WordPress Plugin<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Some digital marketing professionals prefer using a WordPress plugin to manage their Google Tag Manager installation.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Google has released a WordPress plugin known as Google Site Kit for exactly this purpose. Site Kit simplifies the process of <\/span><a href=\"https:\/\/directiveconsulting.com\/ca\/institute\/lessons\/setup-google-tools\/\"><span style=\"font-weight: 400;\">setting up Google tools and applications<\/span><\/a><span style=\"font-weight: 400;\"> on your WordPress website, making it easier for an administrator or manager on your WordPress account to add google tag manager code snippets and connect other Google Services like Optimize, Analytics, AdSense, and more.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Get started by hovering your mouse over \u201cPlugins\u201d in the sidebar and selecting \u201cAdd New\u201d. Enter Google Tag Manager into the search bar and you\u2019ll find a selection of plugins that can be used to complete the set-up process, including the Site Kit by Google plugin.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21911\" src=\"https:\/\/directiveconsulting.com\/ca\/wp-content\/uploads\/sites\/11\/2020\/10\/image3-9.png\" alt=\"google tag manager wordpress plugin\" width=\"801\" height=\"495\" srcset=\"https:\/\/directiveconsulting.com\/wp-content\/uploads\/sites\/11\/2020\/10\/image3-9.png 801w, https:\/\/directiveconsulting.com\/wp-content\/uploads\/sites\/11\/2020\/10\/image3-9-300x185.png 300w, https:\/\/directiveconsulting.com\/wp-content\/uploads\/sites\/11\/2020\/10\/image3-9-768x475.png 768w\" sizes=\"(max-width: 801px) 100vw, 801px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Click on \u201cInstall Now\u201d, wait for the installation to complete, then click on \u201cActivate\u201d to start using Google Site Kit.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Next, you\u2019ll need to complete the set-up process by verifying ownership of your website, giving permission for data sharing between your WordPress website and your Google account, and setting up Google Search Console. The verification steps here don\u2019t require any special instructions &#8211; you\u2019ll just need to sign in to your Google account.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">After completing the set-up process for Site Kit, you\u2019ll be able to visit the Site Kit Settings page where you can connect additional services, including Google Tag Manager. Hover your mouse over \u201cSite Kit\u201d in the sidebar, then select Settings and click on the tab that says \u201cConnect More Services\u201d.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21912\" src=\"https:\/\/directiveconsulting.com\/ca\/wp-content\/uploads\/sites\/11\/2020\/10\/image10.png\" alt=\"google site kit setup\" width=\"980\" height=\"495\" srcset=\"https:\/\/directiveconsulting.com\/wp-content\/uploads\/sites\/11\/2020\/10\/image10.png 980w, https:\/\/directiveconsulting.com\/wp-content\/uploads\/sites\/11\/2020\/10\/image10-300x152.png 300w, https:\/\/directiveconsulting.com\/wp-content\/uploads\/sites\/11\/2020\/10\/image10-768x388.png 768w\" sizes=\"(max-width: 980px) 100vw, 980px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Here, you\u2019ll be able to select Tag Manager and install it on your website using Google Site Kit &#8211; all without modifying any code or writing any custom HTML. Your Google account is already linked to your WordPress website, so it\u2019s simply a matter of choosing which tag manager account and container you\u2019d like to use.\u00a0<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-21913\" src=\"https:\/\/directiveconsulting.com\/ca\/wp-content\/uploads\/sites\/11\/2020\/10\/image11-1024x316.png\" alt=\"google tag manager site kit plugin\" width=\"1024\" height=\"316\" srcset=\"https:\/\/directiveconsulting.com\/wp-content\/uploads\/sites\/11\/2020\/10\/image11-1024x316.png 1024w, https:\/\/directiveconsulting.com\/wp-content\/uploads\/sites\/11\/2020\/10\/image11-300x93.png 300w, https:\/\/directiveconsulting.com\/wp-content\/uploads\/sites\/11\/2020\/10\/image11-768x237.png 768w, https:\/\/directiveconsulting.com\/wp-content\/uploads\/sites\/11\/2020\/10\/image11.png 1026w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Once you click on the \u201cConfirm and Continue\u201d button, you\u2019ll have finished the setup process for google tag manager on your WordPress account using the Site Kit plugin.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">How to Verify Your Google Tag Manager Installation in WordPress<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Now that you\u2019ve completed the set-up process for google tag manager, how can you be sure that your implementation worked?<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Visit the Chrome Extension store and download the extension called <\/span><a href=\"https:\/\/get.google.com\/tagassistant\/\"><span style=\"font-weight: 400;\">Google Tag Assistant<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">With this free tool, you can navigate to any page and you\u2019ll be able to see which tags are active on that page. Once you finish installing your tags, you may visit your own web page using the Google Chrome browser and check the Google Tag Assistant to make sure your tags are installed correctly.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21914\" src=\"https:\/\/directiveconsulting.com\/ca\/wp-content\/uploads\/sites\/11\/2020\/10\/image2-11.png\" alt=\"google tag assistant\" width=\"452\" height=\"598\" srcset=\"https:\/\/directiveconsulting.com\/wp-content\/uploads\/sites\/11\/2020\/10\/image2-11.png 452w, https:\/\/directiveconsulting.com\/wp-content\/uploads\/sites\/11\/2020\/10\/image2-11-227x300.png 227w\" sizes=\"(max-width: 452px) 100vw, 452px\" \/><\/p>\n<h2><span style=\"font-weight: 400;\">Summary<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">If you\u2019re a digital marketer, Google tag manager can be useful for measuring user behaviors and tracking events to gain insight into how you might improve user experience or conversions on your website.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In this guide, we covered how to set up Google Tag Manager by manually editing your WordPress theme or by using the Google Site Kit plugin. Whichever method you choose, we hope you\u2019ll start using Tag Manager to understand more about your target audience, drive more conversions, and achieve marketing success in 2020.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Looking for instructions on how to set up Google Tag Manager (GTM) on your WordPress account? In this short guide,<\/p>\n","protected":false},"author":6,"featured_media":21903,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[37],"tags":[73],"class_list":["post-21902","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-guides","tag-analytics"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Setup Google Tag Manager in Wordpress (Step-by-Step) - Directive CA<\/title>\n<meta name=\"description\" content=\"Setting up Google Tag Manager on your Wordpress site is easier than you think! Learn how you can get this set up in minutes.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/directiveconsulting.com\/ca\/blog\/google-tag-manager-wordpress\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Setup Google Tag Manager in Wordpress (Step-by-Step) - Directive CA\" \/>\n<meta property=\"og:description\" content=\"Setting up Google Tag Manager on your Wordpress site is easier than you think! Learn how you can get this set up in minutes.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/directiveconsulting.com\/ca\/blog\/google-tag-manager-wordpress\/\" \/>\n<meta property=\"og:site_name\" content=\"Directive CA\" \/>\n<meta property=\"article:published_time\" content=\"2020-10-08T21:14:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-23T11:41:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/directiveconsulting.com\/ca\/wp-content\/uploads\/sites\/11\/2020\/10\/How-to-Setup-Google-Tag-Manager-in-Wordpress-Step-by-Step.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1560\" \/>\n\t<meta property=\"og:image:height\" content=\"880\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Garrett Mehrguth\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Garrett Mehrguth\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/directiveconsulting.com\\\/ca\\\/blog\\\/google-tag-manager-wordpress\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/directiveconsulting.com\\\/ca\\\/blog\\\/google-tag-manager-wordpress\\\/\"},\"author\":{\"name\":\"Garrett Mehrguth\",\"@id\":\"https:\\\/\\\/directiveconsulting.com\\\/ca\\\/#\\\/schema\\\/person\\\/13e3727e15f8c44d144167c936925f0c\"},\"headline\":\"How to Setup Google Tag Manager in WordPress (Step-by-Step)\",\"datePublished\":\"2020-10-08T21:14:24+00:00\",\"dateModified\":\"2024-05-23T11:41:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/directiveconsulting.com\\\/ca\\\/blog\\\/google-tag-manager-wordpress\\\/\"},\"wordCount\":1184,\"image\":{\"@id\":\"https:\\\/\\\/directiveconsulting.com\\\/ca\\\/blog\\\/google-tag-manager-wordpress\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/directiveconsulting.com\\\/wp-content\\\/uploads\\\/sites\\\/11\\\/2020\\\/10\\\/How-to-Setup-Google-Tag-Manager-in-Wordpress-Step-by-Step.png\",\"keywords\":[\"Analytics\"],\"articleSection\":[\"Guides\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/directiveconsulting.com\\\/ca\\\/blog\\\/google-tag-manager-wordpress\\\/\",\"url\":\"https:\\\/\\\/directiveconsulting.com\\\/ca\\\/blog\\\/google-tag-manager-wordpress\\\/\",\"name\":\"How to Setup Google Tag Manager in Wordpress (Step-by-Step) - Directive CA\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/directiveconsulting.com\\\/ca\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/directiveconsulting.com\\\/ca\\\/blog\\\/google-tag-manager-wordpress\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/directiveconsulting.com\\\/ca\\\/blog\\\/google-tag-manager-wordpress\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/directiveconsulting.com\\\/wp-content\\\/uploads\\\/sites\\\/11\\\/2020\\\/10\\\/How-to-Setup-Google-Tag-Manager-in-Wordpress-Step-by-Step.png\",\"datePublished\":\"2020-10-08T21:14:24+00:00\",\"dateModified\":\"2024-05-23T11:41:18+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/directiveconsulting.com\\\/ca\\\/#\\\/schema\\\/person\\\/13e3727e15f8c44d144167c936925f0c\"},\"description\":\"Setting up Google Tag Manager on your Wordpress site is easier than you think! Learn how you can get this set up in minutes.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/directiveconsulting.com\\\/ca\\\/blog\\\/google-tag-manager-wordpress\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/directiveconsulting.com\\\/ca\\\/blog\\\/google-tag-manager-wordpress\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/directiveconsulting.com\\\/ca\\\/blog\\\/google-tag-manager-wordpress\\\/#primaryimage\",\"url\":\"https:\\\/\\\/directiveconsulting.com\\\/wp-content\\\/uploads\\\/sites\\\/11\\\/2020\\\/10\\\/How-to-Setup-Google-Tag-Manager-in-Wordpress-Step-by-Step.png\",\"contentUrl\":\"https:\\\/\\\/directiveconsulting.com\\\/wp-content\\\/uploads\\\/sites\\\/11\\\/2020\\\/10\\\/How-to-Setup-Google-Tag-Manager-in-Wordpress-Step-by-Step.png\",\"width\":1560,\"height\":880,\"caption\":\"google tag manager wordpress\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/directiveconsulting.com\\\/ca\\\/blog\\\/google-tag-manager-wordpress\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/directiveconsulting.com\\\/ca\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Setup Google Tag Manager in WordPress (Step-by-Step)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/directiveconsulting.com\\\/ca\\\/#website\",\"url\":\"https:\\\/\\\/directiveconsulting.com\\\/ca\\\/\",\"name\":\"Directive CA\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/directiveconsulting.com\\\/ca\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/directiveconsulting.com\\\/ca\\\/#\\\/schema\\\/person\\\/13e3727e15f8c44d144167c936925f0c\",\"name\":\"Garrett Mehrguth\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0a4dc3677b09a3c3f12efe7139389fbead933e5a378e20a277483b238ea716e1?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0a4dc3677b09a3c3f12efe7139389fbead933e5a378e20a277483b238ea716e1?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0a4dc3677b09a3c3f12efe7139389fbead933e5a378e20a277483b238ea716e1?s=96&d=mm&r=g\",\"caption\":\"Garrett Mehrguth\"},\"description\":\"Garrett Mehrguth is the founder and CEO of Directive. Since founding the agency in 2013, he has driven its international expansion into the UK, Canada and LATAM and grown the team to over 130 professionals serving clients like Dropbox, AWS and Gong. A recognized thought leader, he contributes to publications such as Salesforce, Moz and HubSpot and speaks at events including Digital Summit, SMX and MozCon.\",\"sameAs\":[\"CEO\"],\"url\":\"https:\\\/\\\/directiveconsulting.com\\\/ca\\\/blog\\\/author\\\/boss\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Setup Google Tag Manager in Wordpress (Step-by-Step) - Directive CA","description":"Setting up Google Tag Manager on your Wordpress site is easier than you think! Learn how you can get this set up in minutes.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/directiveconsulting.com\/ca\/blog\/google-tag-manager-wordpress\/","og_locale":"en_US","og_type":"article","og_title":"How to Setup Google Tag Manager in Wordpress (Step-by-Step) - Directive CA","og_description":"Setting up Google Tag Manager on your Wordpress site is easier than you think! Learn how you can get this set up in minutes.","og_url":"https:\/\/directiveconsulting.com\/ca\/blog\/google-tag-manager-wordpress\/","og_site_name":"Directive CA","article_published_time":"2020-10-08T21:14:24+00:00","article_modified_time":"2024-05-23T11:41:18+00:00","og_image":[{"width":1560,"height":880,"url":"https:\/\/directiveconsulting.com\/ca\/wp-content\/uploads\/sites\/11\/2020\/10\/How-to-Setup-Google-Tag-Manager-in-Wordpress-Step-by-Step.png","type":"image\/png"}],"author":"Garrett Mehrguth","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Garrett Mehrguth","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/directiveconsulting.com\/ca\/blog\/google-tag-manager-wordpress\/#article","isPartOf":{"@id":"https:\/\/directiveconsulting.com\/ca\/blog\/google-tag-manager-wordpress\/"},"author":{"name":"Garrett Mehrguth","@id":"https:\/\/directiveconsulting.com\/ca\/#\/schema\/person\/13e3727e15f8c44d144167c936925f0c"},"headline":"How to Setup Google Tag Manager in WordPress (Step-by-Step)","datePublished":"2020-10-08T21:14:24+00:00","dateModified":"2024-05-23T11:41:18+00:00","mainEntityOfPage":{"@id":"https:\/\/directiveconsulting.com\/ca\/blog\/google-tag-manager-wordpress\/"},"wordCount":1184,"image":{"@id":"https:\/\/directiveconsulting.com\/ca\/blog\/google-tag-manager-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/directiveconsulting.com\/wp-content\/uploads\/sites\/11\/2020\/10\/How-to-Setup-Google-Tag-Manager-in-Wordpress-Step-by-Step.png","keywords":["Analytics"],"articleSection":["Guides"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/directiveconsulting.com\/ca\/blog\/google-tag-manager-wordpress\/","url":"https:\/\/directiveconsulting.com\/ca\/blog\/google-tag-manager-wordpress\/","name":"How to Setup Google Tag Manager in Wordpress (Step-by-Step) - Directive CA","isPartOf":{"@id":"https:\/\/directiveconsulting.com\/ca\/#website"},"primaryImageOfPage":{"@id":"https:\/\/directiveconsulting.com\/ca\/blog\/google-tag-manager-wordpress\/#primaryimage"},"image":{"@id":"https:\/\/directiveconsulting.com\/ca\/blog\/google-tag-manager-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/directiveconsulting.com\/wp-content\/uploads\/sites\/11\/2020\/10\/How-to-Setup-Google-Tag-Manager-in-Wordpress-Step-by-Step.png","datePublished":"2020-10-08T21:14:24+00:00","dateModified":"2024-05-23T11:41:18+00:00","author":{"@id":"https:\/\/directiveconsulting.com\/ca\/#\/schema\/person\/13e3727e15f8c44d144167c936925f0c"},"description":"Setting up Google Tag Manager on your Wordpress site is easier than you think! Learn how you can get this set up in minutes.","breadcrumb":{"@id":"https:\/\/directiveconsulting.com\/ca\/blog\/google-tag-manager-wordpress\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/directiveconsulting.com\/ca\/blog\/google-tag-manager-wordpress\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/directiveconsulting.com\/ca\/blog\/google-tag-manager-wordpress\/#primaryimage","url":"https:\/\/directiveconsulting.com\/wp-content\/uploads\/sites\/11\/2020\/10\/How-to-Setup-Google-Tag-Manager-in-Wordpress-Step-by-Step.png","contentUrl":"https:\/\/directiveconsulting.com\/wp-content\/uploads\/sites\/11\/2020\/10\/How-to-Setup-Google-Tag-Manager-in-Wordpress-Step-by-Step.png","width":1560,"height":880,"caption":"google tag manager wordpress"},{"@type":"BreadcrumbList","@id":"https:\/\/directiveconsulting.com\/ca\/blog\/google-tag-manager-wordpress\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/directiveconsulting.com\/ca\/"},{"@type":"ListItem","position":2,"name":"How to Setup Google Tag Manager in WordPress (Step-by-Step)"}]},{"@type":"WebSite","@id":"https:\/\/directiveconsulting.com\/ca\/#website","url":"https:\/\/directiveconsulting.com\/ca\/","name":"Directive CA","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/directiveconsulting.com\/ca\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/directiveconsulting.com\/ca\/#\/schema\/person\/13e3727e15f8c44d144167c936925f0c","name":"Garrett Mehrguth","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0a4dc3677b09a3c3f12efe7139389fbead933e5a378e20a277483b238ea716e1?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0a4dc3677b09a3c3f12efe7139389fbead933e5a378e20a277483b238ea716e1?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0a4dc3677b09a3c3f12efe7139389fbead933e5a378e20a277483b238ea716e1?s=96&d=mm&r=g","caption":"Garrett Mehrguth"},"description":"Garrett Mehrguth is the founder and CEO of Directive. Since founding the agency in 2013, he has driven its international expansion into the UK, Canada and LATAM and grown the team to over 130 professionals serving clients like Dropbox, AWS and Gong. A recognized thought leader, he contributes to publications such as Salesforce, Moz and HubSpot and speaks at events including Digital Summit, SMX and MozCon.","sameAs":["CEO"],"url":"https:\/\/directiveconsulting.com\/ca\/blog\/author\/boss\/"}]}},"_links":{"self":[{"href":"https:\/\/directiveconsulting.com\/ca\/wp-json\/wp\/v2\/posts\/21902","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/directiveconsulting.com\/ca\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/directiveconsulting.com\/ca\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/directiveconsulting.com\/ca\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/directiveconsulting.com\/ca\/wp-json\/wp\/v2\/comments?post=21902"}],"version-history":[{"count":0,"href":"https:\/\/directiveconsulting.com\/ca\/wp-json\/wp\/v2\/posts\/21902\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/directiveconsulting.com\/ca\/wp-json\/wp\/v2\/media\/21903"}],"wp:attachment":[{"href":"https:\/\/directiveconsulting.com\/ca\/wp-json\/wp\/v2\/media?parent=21902"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/directiveconsulting.com\/ca\/wp-json\/wp\/v2\/categories?post=21902"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/directiveconsulting.com\/ca\/wp-json\/wp\/v2\/tags?post=21902"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}