{"id":38802,"date":"2023-04-07T13:00:00","date_gmt":"2023-04-07T13:00:00","guid":{"rendered":"https:\/\/crocoblock.com\/knowledge-base\/?post_type=article&#038;p=38802"},"modified":"2023-07-19T09:48:07","modified_gmt":"2023-07-19T09:48:07","slug":"how-to-add-google-tag-manager-to-jetthemecore","status":"publish","type":"article","link":"https:\/\/crocoblock.com\/knowledge-base\/jetthemecore\/how-to-add-google-tag-manager-to-jetthemecore\/","title":{"rendered":"How to Add Google Tag Manager to JetThemeCore"},"content":{"rendered":"\n<p>After signing up for <a href=\"https:\/\/marketingplatform.google.com\/about\/tag-manager\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Google Tag Manager<\/a>, one receives tracking code snippets that should be placed in the &lt;head&gt; and &lt;body&gt; tags of the site layout.&nbsp;<\/p>\n\n\n\n<p>Continue reading to find out more about the process of adding those snippets through the functions.php file of the child theme and the Code Snippets plugin that will help you properly integrate Google Tag Manager with the <em>JetThemeCore <\/em>templates. We will use hooks to place the tag manager code in the &lt;head&gt; tag and the &lt;body&gt; tag of the site.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how-to-add-snippets-into-functionsphp-file-of-active-child-theme\">How to Add Snippets into functions.php File of Active Child Theme<\/h2>\n\n\n\n<p>The first possible option for adding Google Tag Manager code snippets is to use the functions.php file.<\/p>\n\n\n\n<p>Activate the child theme in <strong><em>WordPress Dashboard &gt; Appearance &gt; Themes<\/em><\/strong> and proceed to <strong><em>WordPress Dashboard &gt; Appearance &gt; Theme File Editor<\/em><\/strong>. Next, open the <strong>functions.php<\/strong> file in the right sidebar.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/04\/entering_functions_php_file_2x.png.png\" alt=\"entering the functions.php file\">\n\n\n\n<p>At the bottom of the file, place the below code:<\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/Crocoblock\/acfe55297157dd818f76dacb2a09912d.js\"><\/script>\n\n\n\n<p>Hit the \u201c<strong>Update File<\/strong>\u201d button to save the implemented changes.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/04\/adding_code_for_google_tag_manager_in_functions_php_2x.png\" alt=\"adding code for google tag manager in functions.php\">\n\n\n\n<p>That\u2019s it. Now, Google Tag Manager is integrated successfully into the <em>JetThemeCore <\/em>templates.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how-to-add-snippets-using-code-snippets-plugin\">How to Add Snippets Using Code Snippets Plugin<\/h2>\n\n\n\n<p>An alternative to adding the code snippets to the functions.php file is a free and simple-to-use<strong><em> Code Snippets<\/em><\/strong> plugin.<\/p>\n\n\n\n<p>Firstly, install the <strong><em>Code Snippets<\/em><\/strong> plugin. Navigate to <strong><em>WordPress Dashboard &gt; Plugins &gt; Add New <\/em><\/strong>and search for \u201cCode Snippets\u201d. Click the \u201c<strong>Install Now<\/strong>\u201d button next to the plugin.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/04\/installing_code_snippets_plugin_2x.png\" alt=\"installing the code snippets plugin\">\n\n\n\n<p>Activate the plugin after its installation.&nbsp;<\/p>\n\n\n\n<p>After that, follow to <strong><em>WordPress Dashboard&nbsp; &gt; Snippets &gt; Add New <\/em><\/strong>to add a new custom snippet.&nbsp;<\/p>\n\n\n\n<p>Give a title to the snippet and paste the code below into the <strong>Functions <\/strong>tab&#8217;s body.<\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/Crocoblock\/acfe55297157dd818f76dacb2a09912d.js\"><\/script>\n\n\n\n<p>Make sure to paste the needed code snippets provided by Google Tag Manager under the lines that say \u201cAdd your GTM code snippet below this line\u201d.<\/p>\n\n\n\n<p>Once done, hit the blue \u201c<strong>Save Changes and Activate<\/strong>\u201d button to save the code.<\/p>\n\n\n\n<p>That\u2019s it. Now you know how properly integrate Google Tag Manager with <em>JetThemeCore <\/em>templates on your WordPress website.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to add Google Tag Manager to your WordPress site while using the JetThemeCode plugin of Crocoblock to build the templates.<\/p>\n","protected":false},"author":9,"featured_media":0,"template":"","format":"standard","builder-category":[],"article-category":[410],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Add Google Tag Manager When Using JetThemeCore \u2014 JetThemeCore | Crocoblock<\/title>\n<meta name=\"description\" content=\"Learn how to add Google Tag Manager to your WordPress site while using the JetThemeCode plugin of Crocoblock to build the templates.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/crocoblock.com\/knowledge-base\/jetthemecore\/how-to-add-google-tag-manager-to-jetthemecore\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Add Google Tag Manager When Using JetThemeCore \u2014 JetThemeCore | Crocoblock\" \/>\n<meta property=\"og:description\" content=\"Learn how to add Google Tag Manager to your WordPress site while using the JetThemeCode plugin of Crocoblock to build the templates.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/crocoblock.com\/knowledge-base\/jetthemecore\/how-to-add-google-tag-manager-to-jetthemecore\/\" \/>\n<meta property=\"og:site_name\" content=\"Help Center\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-19T09:48:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/04\/entering_functions_php_file_2x.png.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetthemecore\/how-to-add-google-tag-manager-to-jetthemecore\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/jetthemecore\/how-to-add-google-tag-manager-to-jetthemecore\/\",\"name\":\"How to Add Google Tag Manager When Using JetThemeCore \u2014 JetThemeCore | Crocoblock\",\"isPartOf\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\"},\"datePublished\":\"2023-04-07T13:00:00+00:00\",\"dateModified\":\"2023-07-19T09:48:07+00:00\",\"description\":\"Learn how to add Google Tag Manager to your WordPress site while using the JetThemeCode plugin of Crocoblock to build the templates.\",\"breadcrumb\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetthemecore\/how-to-add-google-tag-manager-to-jetthemecore\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/crocoblock.com\/knowledge-base\/jetthemecore\/how-to-add-google-tag-manager-to-jetthemecore\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetthemecore\/how-to-add-google-tag-manager-to-jetthemecore\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/crocoblock.com\/knowledge-base\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Articles\",\"item\":\"https:\/\/crocoblock.com\/knowledge-base\/articles\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Add Google Tag Manager to JetThemeCore\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/\",\"name\":\"Help Center\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/crocoblock.com\/knowledge-base\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#organization\",\"name\":\"Help Center\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg\",\"contentUrl\":\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg\",\"caption\":\"Help Center\"},\"image\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Add Google Tag Manager When Using JetThemeCore \u2014 JetThemeCore | Crocoblock","description":"Learn how to add Google Tag Manager to your WordPress site while using the JetThemeCode plugin of Crocoblock to build the templates.","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:\/\/crocoblock.com\/knowledge-base\/jetthemecore\/how-to-add-google-tag-manager-to-jetthemecore\/","og_locale":"en_US","og_type":"article","og_title":"How to Add Google Tag Manager When Using JetThemeCore \u2014 JetThemeCore | Crocoblock","og_description":"Learn how to add Google Tag Manager to your WordPress site while using the JetThemeCode plugin of Crocoblock to build the templates.","og_url":"https:\/\/crocoblock.com\/knowledge-base\/jetthemecore\/how-to-add-google-tag-manager-to-jetthemecore\/","og_site_name":"Help Center","article_modified_time":"2023-07-19T09:48:07+00:00","og_image":[{"url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/04\/entering_functions_php_file_2x.png.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetthemecore\/how-to-add-google-tag-manager-to-jetthemecore\/","url":"https:\/\/crocoblock.com\/knowledge-base\/jetthemecore\/how-to-add-google-tag-manager-to-jetthemecore\/","name":"How to Add Google Tag Manager When Using JetThemeCore \u2014 JetThemeCore | Crocoblock","isPartOf":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#website"},"datePublished":"2023-04-07T13:00:00+00:00","dateModified":"2023-07-19T09:48:07+00:00","description":"Learn how to add Google Tag Manager to your WordPress site while using the JetThemeCode plugin of Crocoblock to build the templates.","breadcrumb":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/jetthemecore\/how-to-add-google-tag-manager-to-jetthemecore\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/crocoblock.com\/knowledge-base\/jetthemecore\/how-to-add-google-tag-manager-to-jetthemecore\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetthemecore\/how-to-add-google-tag-manager-to-jetthemecore\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/crocoblock.com\/knowledge-base\/"},{"@type":"ListItem","position":2,"name":"Articles","item":"https:\/\/crocoblock.com\/knowledge-base\/articles\/"},{"@type":"ListItem","position":3,"name":"How to Add Google Tag Manager to JetThemeCore"}]},{"@type":"WebSite","@id":"https:\/\/crocoblock.com\/knowledge-base\/#website","url":"https:\/\/crocoblock.com\/knowledge-base\/","name":"Help Center","description":"","publisher":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/crocoblock.com\/knowledge-base\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/crocoblock.com\/knowledge-base\/#organization","name":"Help Center","url":"https:\/\/crocoblock.com\/knowledge-base\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/","url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg","contentUrl":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg","caption":"Help Center"},"image":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article\/38802"}],"collection":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/types\/article"}],"author":[{"embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/users\/9"}],"wp:attachment":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=38802"}],"wp:term":[{"taxonomy":"builder-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/builder-category?post=38802"},{"taxonomy":"article-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article-category?post=38802"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}