{"id":383,"date":"2023-08-01T11:00:19","date_gmt":"2023-08-01T08:00:19","guid":{"rendered":"https:\/\/elementor.com\/help\/?p=383"},"modified":"2026-10-01T11:38:59","modified_gmt":"2026-10-01T08:38:59","slug":"add-google-analytics-and-gtm","status":"publish","type":"post","link":"https:\/\/elementor.com\/help\/add-google-analytics-and-gtm\/","title":{"rendered":"Add Google Analytics and Google Tag Manager to Elementor"},"content":{"rendered":"<!-- Original article: https:\/\/elementor.com\/help\/add-google-analytics-and-gtm\/ -->\n\n<p class=\"wp-block-paragraph\">You may use the Elementor Custom code feature to easily add your Google Tracking codes. You may also use the display conditions to target certain pages for events.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/npi-backend.dev.cx.elementor.red\/npi-api\/api\/media\/wordpress-media\/632de1fd74b58094a3c88859c2e524dc.png\" alt=\"pasted-image-1790440452278\" data-alt=\"pasted-image-1790440452278\"><\/figure>\n\n\n\n<ol class=\"wp-block-list\"><li><p>Navigate To <strong>Elementor &gt; Editor<\/strong> from the WordPress Dashboard.<\/p><\/li><li><p>Navigate to the <strong>Code<\/strong> option under the <em>Custom Elements<\/em> section from the Sidebar.<\/p><\/li><li><p>Create A New Custom Code by clicking on &#8220;<strong>New Code<\/strong>&#8220;, and name it Google Analytics (or as desired)<\/p><figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/npi-backend.dev.cx.elementor.red\/npi-api\/api\/media\/wordpress-media\/17473bdfc0272f2089eb74063266f8ab.png\" alt=\"pasted-image-1790440513651\" data-alt=\"pasted-image-1790440513651\"><\/figure><\/li><li><p>Paste the code that you obtain from Google into the main content region of the Custom Code editor<\/p><\/li><li><p>Select the location of the code to load at the header <em>&lt;head&gt;<\/em><\/p><\/li><li><p>Set the display conditions to Entire Site, or a selected landing page if needed.<\/p><\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">For more info <a rel=\"noopener noreferrer nofollow\" class=\"text-primary underline underline-offset-2 hover:opacity-90\" href=\"https:\/\/elementor.com\/help\/custom-code-pro\/\">click here<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To add&nbsp;<strong>Google Adsense<\/strong>&nbsp;to Elementor, use the&nbsp;<a rel=\"noopener noreferrer nofollow\" class=\"text-primary underline underline-offset-2 hover:opacity-90\" href=\"https:\/\/elementor.com\/help\/html-widget\/\">HTML widget<\/a>&nbsp;to enter the code provided to you by Google.&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to add Google Analytics to your Elementor website<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_elementor_kustomer_id":["62c6c67f0fcf712d395bebd2"],"footnotes":""},"categories":[1456],"tags":[],"class_list":["post-383","post","type-post","status-publish","format-standard","hentry","category-universal-settings"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Add Google Analytics and Google Tag Manager to Elementor<\/title>\n<meta name=\"description\" content=\"Learn how to add GA and GTM to Elementor in this article from Elementor&#039;s Knowledge Base. Get Elementor tips &amp; more.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/elementor.com\/help\/add-google-analytics-and-gtm\/\" \/>\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 Analytics and Google Tag Manager to Elementor\" \/>\n<meta property=\"og:description\" content=\"Learn how to add GA and GTM to Elementor in this article from Elementor&#039;s Knowledge Base. Get Elementor tips &amp; more.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/elementor.com\/help\/add-google-analytics-and-gtm\/\" \/>\n<meta property=\"og:site_name\" content=\"Help\" \/>\n<meta property=\"article:published_time\" content=\"2023-08-01T08:00:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-10-01T08:38:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/npi-backend.dev.cx.elementor.red\/npi-api\/api\/media\/wordpress-media\/632de1fd74b58094a3c88859c2e524dc.png\" \/>\n<meta name=\"author\" content=\"asafr\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"asafr\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/elementor.com\\\/help\\\/add-google-analytics-and-gtm\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/elementor.com\\\/help\\\/add-google-analytics-and-gtm\\\/\"},\"author\":{\"name\":\"asafr\",\"@id\":\"https:\\\/\\\/elementor.com\\\/help\\\/#\\\/schema\\\/person\\\/5b0293d4a088f63c38be5dedda50c8da\"},\"headline\":\"Add Google Analytics and Google Tag Manager to Elementor\",\"datePublished\":\"2023-08-01T08:00:19+00:00\",\"dateModified\":\"2026-10-01T08:38:59+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/elementor.com\\\/help\\\/add-google-analytics-and-gtm\\\/\"},\"wordCount\":152,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/elementor.com\\\/help\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/elementor.com\\\/help\\\/add-google-analytics-and-gtm\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/npi-backend.dev.cx.elementor.red\\\/npi-api\\\/api\\\/media\\\/wordpress-media\\\/632de1fd74b58094a3c88859c2e524dc.png\",\"articleSection\":[\"Universal settings\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/elementor.com\\\/help\\\/add-google-analytics-and-gtm\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/elementor.com\\\/help\\\/add-google-analytics-and-gtm\\\/\",\"url\":\"https:\\\/\\\/elementor.com\\\/help\\\/add-google-analytics-and-gtm\\\/\",\"name\":\"How to Add Google Analytics and Google Tag Manager to Elementor\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/elementor.com\\\/help\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/elementor.com\\\/help\\\/add-google-analytics-and-gtm\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/elementor.com\\\/help\\\/add-google-analytics-and-gtm\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/npi-backend.dev.cx.elementor.red\\\/npi-api\\\/api\\\/media\\\/wordpress-media\\\/632de1fd74b58094a3c88859c2e524dc.png\",\"datePublished\":\"2023-08-01T08:00:19+00:00\",\"dateModified\":\"2026-10-01T08:38:59+00:00\",\"description\":\"Learn how to add GA and GTM to Elementor in this article from Elementor's Knowledge Base. Get Elementor tips & more.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/elementor.com\\\/help\\\/add-google-analytics-and-gtm\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/elementor.com\\\/help\\\/add-google-analytics-and-gtm\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/elementor.com\\\/help\\\/add-google-analytics-and-gtm\\\/#primaryimage\",\"url\":\"https:\\\/\\\/npi-backend.dev.cx.elementor.red\\\/npi-api\\\/api\\\/media\\\/wordpress-media\\\/632de1fd74b58094a3c88859c2e524dc.png\",\"contentUrl\":\"https:\\\/\\\/npi-backend.dev.cx.elementor.red\\\/npi-api\\\/api\\\/media\\\/wordpress-media\\\/632de1fd74b58094a3c88859c2e524dc.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/elementor.com\\\/help\\\/add-google-analytics-and-gtm\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Help Center\",\"item\":\"https:\\\/\\\/elementor.com\\\/help\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Build with the Editor\",\"item\":\"https:\\\/\\\/elementor.com\\\/help\\\/build-with-the-editor\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Universal settings\",\"item\":\"https:\\\/\\\/elementor.com\\\/help\\\/build-with-the-editor\\\/universal-settings\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Add Google Analytics and Google Tag Manager to Elementor\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/elementor.com\\\/help\\\/#website\",\"url\":\"https:\\\/\\\/elementor.com\\\/help\\\/\",\"name\":\"Elementor\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/elementor.com\\\/help\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/elementor.com\\\/help\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/elementor.com\\\/help\\\/#organization\",\"name\":\"Elementor\",\"url\":\"https:\\\/\\\/elementor.com\\\/help\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/elementor.com\\\/help\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/elementor.com\\\/help\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/images.png\",\"contentUrl\":\"https:\\\/\\\/elementor.com\\\/help\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/images.png\",\"width\":225,\"height\":225,\"caption\":\"Elementor\"},\"image\":{\"@id\":\"https:\\\/\\\/elementor.com\\\/help\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/elementor.com\\\/help\\\/#\\\/schema\\\/person\\\/5b0293d4a088f63c38be5dedda50c8da\",\"name\":\"asafr\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b100acf76c133e3557847510ec2e00c3dd2957cdea2fac992f98838660513c6b?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b100acf76c133e3557847510ec2e00c3dd2957cdea2fac992f98838660513c6b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b100acf76c133e3557847510ec2e00c3dd2957cdea2fac992f98838660513c6b?s=96&d=mm&r=g\",\"caption\":\"asafr\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Add Google Analytics and Google Tag Manager to Elementor","description":"Learn how to add GA and GTM to Elementor in this article from Elementor's Knowledge Base. Get Elementor tips & more.","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:\/\/elementor.com\/help\/add-google-analytics-and-gtm\/","og_locale":"en_US","og_type":"article","og_title":"How to Add Google Analytics and Google Tag Manager to Elementor","og_description":"Learn how to add GA and GTM to Elementor in this article from Elementor's Knowledge Base. Get Elementor tips & more.","og_url":"https:\/\/elementor.com\/help\/add-google-analytics-and-gtm\/","og_site_name":"Help","article_published_time":"2023-08-01T08:00:19+00:00","article_modified_time":"2026-10-01T08:38:59+00:00","og_image":[{"url":"https:\/\/npi-backend.dev.cx.elementor.red\/npi-api\/api\/media\/wordpress-media\/632de1fd74b58094a3c88859c2e524dc.png","type":"","width":"","height":""}],"author":"asafr","twitter_card":"summary_large_image","twitter_misc":{"Written by":"asafr","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/elementor.com\/help\/add-google-analytics-and-gtm\/#article","isPartOf":{"@id":"https:\/\/elementor.com\/help\/add-google-analytics-and-gtm\/"},"author":{"name":"asafr","@id":"https:\/\/elementor.com\/help\/#\/schema\/person\/5b0293d4a088f63c38be5dedda50c8da"},"headline":"Add Google Analytics and Google Tag Manager to Elementor","datePublished":"2023-08-01T08:00:19+00:00","dateModified":"2026-10-01T08:38:59+00:00","mainEntityOfPage":{"@id":"https:\/\/elementor.com\/help\/add-google-analytics-and-gtm\/"},"wordCount":152,"commentCount":0,"publisher":{"@id":"https:\/\/elementor.com\/help\/#organization"},"image":{"@id":"https:\/\/elementor.com\/help\/add-google-analytics-and-gtm\/#primaryimage"},"thumbnailUrl":"https:\/\/npi-backend.dev.cx.elementor.red\/npi-api\/api\/media\/wordpress-media\/632de1fd74b58094a3c88859c2e524dc.png","articleSection":["Universal settings"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/elementor.com\/help\/add-google-analytics-and-gtm\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/elementor.com\/help\/add-google-analytics-and-gtm\/","url":"https:\/\/elementor.com\/help\/add-google-analytics-and-gtm\/","name":"How to Add Google Analytics and Google Tag Manager to Elementor","isPartOf":{"@id":"https:\/\/elementor.com\/help\/#website"},"primaryImageOfPage":{"@id":"https:\/\/elementor.com\/help\/add-google-analytics-and-gtm\/#primaryimage"},"image":{"@id":"https:\/\/elementor.com\/help\/add-google-analytics-and-gtm\/#primaryimage"},"thumbnailUrl":"https:\/\/npi-backend.dev.cx.elementor.red\/npi-api\/api\/media\/wordpress-media\/632de1fd74b58094a3c88859c2e524dc.png","datePublished":"2023-08-01T08:00:19+00:00","dateModified":"2026-10-01T08:38:59+00:00","description":"Learn how to add GA and GTM to Elementor in this article from Elementor's Knowledge Base. Get Elementor tips & more.","breadcrumb":{"@id":"https:\/\/elementor.com\/help\/add-google-analytics-and-gtm\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/elementor.com\/help\/add-google-analytics-and-gtm\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/elementor.com\/help\/add-google-analytics-and-gtm\/#primaryimage","url":"https:\/\/npi-backend.dev.cx.elementor.red\/npi-api\/api\/media\/wordpress-media\/632de1fd74b58094a3c88859c2e524dc.png","contentUrl":"https:\/\/npi-backend.dev.cx.elementor.red\/npi-api\/api\/media\/wordpress-media\/632de1fd74b58094a3c88859c2e524dc.png"},{"@type":"BreadcrumbList","@id":"https:\/\/elementor.com\/help\/add-google-analytics-and-gtm\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Help Center","item":"https:\/\/elementor.com\/help\/"},{"@type":"ListItem","position":2,"name":"Build with the Editor","item":"https:\/\/elementor.com\/help\/build-with-the-editor\/"},{"@type":"ListItem","position":3,"name":"Universal settings","item":"https:\/\/elementor.com\/help\/build-with-the-editor\/universal-settings\/"},{"@type":"ListItem","position":4,"name":"Add Google Analytics and Google Tag Manager to Elementor"}]},{"@type":"WebSite","@id":"https:\/\/elementor.com\/help\/#website","url":"https:\/\/elementor.com\/help\/","name":"Elementor","description":"","publisher":{"@id":"https:\/\/elementor.com\/help\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/elementor.com\/help\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/elementor.com\/help\/#organization","name":"Elementor","url":"https:\/\/elementor.com\/help\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/elementor.com\/help\/#\/schema\/logo\/image\/","url":"https:\/\/elementor.com\/help\/wp-content\/uploads\/2025\/06\/images.png","contentUrl":"https:\/\/elementor.com\/help\/wp-content\/uploads\/2025\/06\/images.png","width":225,"height":225,"caption":"Elementor"},"image":{"@id":"https:\/\/elementor.com\/help\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/elementor.com\/help\/#\/schema\/person\/5b0293d4a088f63c38be5dedda50c8da","name":"asafr","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/b100acf76c133e3557847510ec2e00c3dd2957cdea2fac992f98838660513c6b?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/b100acf76c133e3557847510ec2e00c3dd2957cdea2fac992f98838660513c6b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b100acf76c133e3557847510ec2e00c3dd2957cdea2fac992f98838660513c6b?s=96&d=mm&r=g","caption":"asafr"}}]}},"_links":{"self":[{"href":"https:\/\/elementor.com\/help\/wp-json\/wp\/v2\/posts\/383","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/elementor.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elementor.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elementor.com\/help\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/elementor.com\/help\/wp-json\/wp\/v2\/comments?post=383"}],"version-history":[{"count":2,"href":"https:\/\/elementor.com\/help\/wp-json\/wp\/v2\/posts\/383\/revisions"}],"predecessor-version":[{"id":171228,"href":"https:\/\/elementor.com\/help\/wp-json\/wp\/v2\/posts\/383\/revisions\/171228"}],"wp:attachment":[{"href":"https:\/\/elementor.com\/help\/wp-json\/wp\/v2\/media?parent=383"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elementor.com\/help\/wp-json\/wp\/v2\/categories?post=383"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elementor.com\/help\/wp-json\/wp\/v2\/tags?post=383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}