{"id":84465,"date":"2018-03-28T10:07:41","date_gmt":"2018-03-28T14:07:41","guid":{"rendered":"https:\/\/www.templatemonster.com\/help\/?p=84465"},"modified":"2018-03-28T10:09:50","modified_gmt":"2018-03-28T14:09:50","slug":"how-to-install-and-setup-google-tag-manager-in-wordpress","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/how-to-install-and-setup-google-tag-manager-in-wordpress.html","title":{"rendered":"How to install and setup Google Tag Manager in WordPress"},"content":{"rendered":"<p>\r\n    In case you need to add multiple code snippets to collect analytics data,\r\n    Google Tag manager will be a good solution for this matter. It includes\r\n    templates for Google Analytics, AdWords, DoubleClick and other features, so\r\n    Google Tag Manager (or GTM) allows:\r\n<\/p>\r\n<ul class=\"list\">\r\n    <li>\r\n        <p>\r\n            to deploy Google analytics using universal analytics tag;\r\n        <\/p>\r\n    <\/li>\r\n    <li>\r\n        <p>\r\n            to add the third party conversion pixels;\r\n        <\/p>\r\n    <\/li>\r\n    <li>\r\n        <p>\r\n            to improve your site speed by firing tags asynchronously;\r\n        <\/p>\r\n    <\/li>\r\n    <li>\r\n        <p>\r\n            to install marketing tools to their website etc.\r\n        <\/p>\r\n    <\/li>\r\n<\/ul>\r\n<p>\r\n    Here are the basic steps you need to perform to get Google Tag Manager to\r\n    work:\r\n<\/p>\r\n\r\n<p>\r\n     <strong>Step 1. Set up a Google Tag Manager account <\/strong>\r\n<\/p>\r\n<ol>\r\n    <li>\r\n        <p>\r\nNavigate to            <strong><a href=\"https:\/\/www.google.com\/analytics\/tag-manager\/\">Google Tag Manager<\/a><\/strong>\r\n            website and sign up via Google account you used with Google\r\n            Analytics:\r\n        <\/p>\r\n    <\/li>\r\n<\/ol>\r\n<p>\r\n\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_1.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_1.jpg\" alt=\"\" width=\"1024\" height=\"575\" class=\"alignnone size-full wp-image-84466\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_1.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_1-150x84.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_1-300x168.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_1-768x431.jpg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a>\r\n\r\n<\/p>\r\n<ol start=\"2\">\r\n    <li>\r\n        <p>\r\n            Once you complete Tag manager installation steps, you will see a\r\n            pop-up window with the container code snippets:\r\n        <\/p>\r\n    <\/li>\r\n<\/ol>\r\n<p>\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_2.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_2.jpg\" alt=\"\" width=\"1024\" height=\"576\" class=\"alignnone size-full wp-image-84467\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_2.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_2-150x84.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_2-300x169.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_2-768x432.jpg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a>\r\n\r\n<\/p>\r\n<p>\r\n     <strong>Step 2. Add Google Tag Manager Code in WordPress <\/strong>\r\n<\/p>\r\n<ol>\r\n    <li>\r\n        <p>\r\n            In order to add tag tracking code to your website, you need to\r\n            install a plugin called <a href=\"https:\/\/wordpress.org\/plugins\/insert-headers-and-footers\/\">\r\n                Insert Headers and Footers\r\n            <\/a>\r\n            (from your dashboard open <strong> Plugins&gt; Add New &gt; <\/strong>Search for\r\n            the plugin in search filter&gt; install and activate plugin):\r\n        <\/p>\r\n    <\/li>\r\n<\/ol>\r\n<p>\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_3.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_3.jpg\" alt=\"\" width=\"1024\" height=\"576\" class=\"alignnone size-full wp-image-84467\" \/><\/a>\r\n\r\n<\/p>\r\n<ol start=\"2\">\r\n    <li>\r\n        <p>\r\n            When the plugin is activated you need to navigate to Settings &gt;\r\n            Insert Headers and Footers and add the code from the pop-up window\r\n            you got on the account installation of Tag Manager account:\r\n        <\/p>\r\n    <\/li>\r\n<\/ol>\r\n\r\n<p>\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_4.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_4.jpg\" alt=\"\" width=\"1024\" height=\"698\" class=\"alignnone size-full wp-image-84469\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_4.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_4-150x102.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_4-300x204.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_4-768x524.jpg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a>\r\n<\/p>\r\n<p>\r\n     <strong>Step 3. Create a Google Analytics Tag <\/strong>\r\n<\/p>\r\n<ol>\r\n    <li>\r\n        <p>\r\n            From your Tag manager account click on create a <strong> new tag<\/strong>:\r\n        <\/p>\r\n    <\/li>\r\n<\/ol>\r\n<p>\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_5.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_5.jpg\" alt=\"\" width=\"1024\" height=\"680\" class=\"alignnone size-full wp-image-84470\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_5.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_5-150x100.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_5-300x199.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_5-768x510.jpg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a>\r\n<\/p>\r\n<ol start=\"2\">\r\n    <li>\r\n        <p>\r\n            Set an appropriate name for your tag and select Universal Analytics\r\n            from the list:\r\n        <\/p>\r\n    <\/li>\r\n<\/ol>\r\n<p>\r\n\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_6.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_6.jpg\" alt=\"\" width=\"1024\" height=\"575\" class=\"alignnone size-full wp-image-84471\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_6.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_6-150x84.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_6-300x168.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_6-768x431.jpg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a>\r\n\r\n<\/p>\r\n<ol start=\"3\">\r\n    <li>\r\n        <p>\r\n            From Google Analytics <strong>Settings <\/strong>drop-down you need to input <strong>tracking\r\n            ID<\/strong>, which you can locate on your\r\n            <a href=\"https:\/\/support.google.com\/analytics\/answer\/1032385\">\r\n                Analytics account settings page.\r\n            <\/a>\r\n        <\/p>\r\n    <\/li>\r\n<\/ol>\r\n<p>\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_7.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_7.jpg\" alt=\"\" width=\"1024\" height=\"580\" class=\"alignnone size-full wp-image-84472\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_7.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_7-150x85.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_7-300x170.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_7-768x435.jpg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a>\r\n<\/p>\r\n<ol start=\"4\">\r\n    <li>\r\n        <p>\r\n            Once you save new tag, it appears under the list of your tags on\r\n            Tag manager account page:\r\n        <\/p>\r\n    <\/li>\r\n<\/ol>\r\n<p>\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_8.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_8.jpg\" alt=\"\" width=\"1024\" height=\"574\" class=\"alignnone size-full wp-image-84473\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_8.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_8-150x84.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_8-300x168.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_8-768x431.jpg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a>\r\n<\/p>\r\n<ol start=\"5\">\r\n    <li>\r\n        <p>\r\n            When you&#8217;ve finished creating and saving your tag, do not forget to\r\n            publish the tags, otherwise, it won&#8217;t work:\r\n        <\/p>\r\n    <\/li>\r\n<\/ol>\r\n<p>\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_9.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_9.jpg\" alt=\"\" width=\"1024\" height=\"578\" class=\"alignnone size-full wp-image-84474\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_9.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_9-150x85.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_9-300x169.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/Wordpress.How_to_install_and_setup_Google_Tag_Manager_in_WordPress_9-768x434.jpg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a>\r\n<\/p>\r\n<p>\r\n    Your Google Tag Manager is now set up and will now start collecting your website&#8217;s traffic data.\r\n<\/p>\r\n\r\n<p>\r\n    Nice job! Now you&#8217;ve got the hang of how to setup Google Tag Manager in WordPress. We wish you a good luck in reaching a ton of customers!\r\n<\/p>\r\n<p>We hope this step-by-step guidance was useful for you. Feel free to check our <a href=\"\/blog\/tag\/wordpress\/\" target=\"_blank\">blog<\/a> to learn more tweaks on how to manage your WordPress website as a guru of the web design!<\/p>\r\n<p>In case you&#8217;re seeking for premium themes to put up your very own website, take a look at the stunning <a href=\"https:\/\/www.templatemonster.com\/wordpress-themes.php\">WordPress themes<\/a> and choose the one for you.<\/p>","protected":false},"excerpt":{"rendered":"<p>In case you need to add multiple code snippets to collect analytics data, Google Tag manager will be a good solution for this matter.<\/p>\n","protected":false},"author":124,"featured_media":84481,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2017,728],"tags":[2637,888],"class_list":["post-84465","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-monstroid-tutorials","category-wordpress-tutorials","tag-google-tag-manager","tag-tag"],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/84465","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/124"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=84465"}],"version-history":[{"count":6,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/84465\/revisions"}],"predecessor-version":[{"id":84520,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/84465\/revisions\/84520"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/84481"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=84465"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=84465"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=84465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}