{"id":1033,"date":"2019-12-30T02:59:59","date_gmt":"2019-12-30T02:59:59","guid":{"rendered":"https:\/\/www.magetop.com\/blog\/?p=1033"},"modified":"2026-08-18T09:22:19","modified_gmt":"2026-08-18T09:22:19","slug":"how-to-configure-google-analytics-in-magento-2","status":"publish","type":"post","link":"https:\/\/www.magetop.com\/blog\/how-to-configure-google-analytics-in-magento-2\/","title":{"rendered":"How to Add Google Analytics in Magento 2: Complete Tutorial"},"content":{"rendered":"\n<p>Google Analytics has the ability to statistic of customer activity on your website. It used to track website activity such as session duration, pages per session, bounce rate, etc. of individuals using the site, along with the information on the source of the traffic. With the above features, I think it is very useful for the Magento store owner. In this article, I will introduce you <strong>How to Add Google Analytics in Magento 2<\/strong>.<\/p>\n\n\n\n<p>With other CMS, to use Google Analytics, you need to install additional Extensions or Modules. As for Magento, Google Analytics is available by default without any additional installation.\n\n<\/p>\n\n\n\n\n\n<h2 class=\"wp-block-heading\">Does Magento 2 Support Google Analytics 4?<\/h2>\n\n\n\n<p>Yes, you can add Google Analytics 4 to Magento 2.<\/p>\n\n\n\n<p>You can easily create segment-based events and monitor important user interactions across all devices and platforms directly in the GA4 dashboard.&nbsp;<\/p>\n\n\n\n<p>Both the platforms work smoothly with each other.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Options to Add Google Analytics to Magento 2<\/h2>\n\n\n\n<p>You can set up Magento 2 Google Analytics 4 in two ways:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Use a ready-made extension:<\/strong> One of the easiest ways to add GA4 into your Magento 2 store with all ecommerce events; all you need to do is install the Magento 2 extension and configure it in your store in just a few steps.&nbsp;<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Manual integration through Magento&#8217;s built-in Google Analytics settings<\/strong>: You will need to manually add the GA4 tracking code and set ecommerce tracking events yourself, which might require technical support.&nbsp;<\/li>\n<\/ul>\n\n\n\n<p>I will cover both methods for you, and then you can decide which one to opt for.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Add Google Analytics in Magento 2<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Method 1: Set up Google Analytics 4 in Magento Using Extension (Easy Method)<\/h3>\n\n\n\n<p>Using the extension, you only need to follow four simple steps to get GA4 up and running in your store. You will first need to configure the extension, then generate JSON and upload them to GTM.&nbsp;<\/p>\n\n\n\n<p>The process is much simpler and straightforward without the need for any technical understanding.&nbsp;<\/p>\n\n\n\n<p>&nbsp;Before you start setting up, make sure you have these two things in place:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>GA4 Property for Your Store<\/li>\n\n\n\n<li>Google Tag Manager (GTM) account&nbsp;<\/li>\n<\/ul>\n\n\n\n<p>Now, with this, let&#8217;s jump into the steps.&nbsp;<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Step 1: Install Magento 2 GA4 Extension<\/h4>\n\n\n\n<p>First, you need to install a GA4 module into your store. We recommend using Magento 2 Google Analytics 4\u00a0by Meetanshi. It offers an easy way to set up Google Analytics tracking and has all the necessary e-commerce events in-built.<br><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"365\" data-attachment-id=\"9095\" data-permalink=\"https:\/\/www.magetop.com\/blog\/how-to-configure-google-analytics-in-magento-2\/image-3-5\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-3.png?fit=1600%2C729&amp;ssl=1\" data-orig-size=\"1600,729\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image-3\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-3.png?fit=300%2C137&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-3.png?fit=800%2C365&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-3.png?resize=800%2C365&#038;ssl=1\" alt=\"\" class=\"wp-image-9095\" srcset=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-3.png?resize=1024%2C467&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-3.png?resize=300%2C137&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-3.png?resize=768%2C350&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-3.png?resize=1536%2C700&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-3.png?w=1600&amp;ssl=1 1600w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>Once the extension is installed, head to <strong>Stores &gt; Configuration &gt; Meetanshi &gt; GA4<\/strong> to configure it.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Step 2: Enter GTM Codes into Magento 2<\/h4>\n\n\n\n<p>In the extension configuration, enable the module and enter the JS and Non-JS code from your GTM account. You can get these codes from your <strong>GTM account &gt; Account &gt; Container &gt; Admin &gt; Install Google Tag Manager<\/strong> section.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"295\" data-attachment-id=\"9096\" data-permalink=\"https:\/\/www.magetop.com\/blog\/how-to-configure-google-analytics-in-magento-2\/image-4-5\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-4.png?fit=1564%2C576&amp;ssl=1\" data-orig-size=\"1564,576\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image-4\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-4.png?fit=300%2C110&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-4.png?fit=800%2C295&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-4.png?resize=800%2C295&#038;ssl=1\" alt=\"\" class=\"wp-image-9096\" srcset=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-4.png?resize=1024%2C377&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-4.png?resize=300%2C110&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-4.png?resize=768%2C283&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-4.png?resize=1536%2C566&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-4.png?w=1564&amp;ssl=1 1564w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Step 3: Configure Tracking Preferences &amp; Generate JSON for Tags<\/h4>\n\n\n\n<p>In the configuration, set your data tracking preferences.<\/p>\n\n\n\n<p>Here, you can select the attribute for product identifier, enable or disable brand tracking, variants tracking, set custom success path, etc.<\/p>\n\n\n\n<p>You can also set your preferences for tracking revenue calculation and choose between child and parent products.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"714\" data-attachment-id=\"9097\" data-permalink=\"https:\/\/www.magetop.com\/blog\/how-to-configure-google-analytics-in-magento-2\/image-5-4\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-5.png?fit=1266%2C1130&amp;ssl=1\" data-orig-size=\"1266,1130\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image-5\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-5.png?fit=300%2C268&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-5.png?fit=800%2C714&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-5.png?resize=800%2C714&#038;ssl=1\" alt=\"\" class=\"wp-image-9097\" srcset=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-5.png?resize=1024%2C914&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-5.png?resize=300%2C268&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-5.png?resize=768%2C685&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-5.png?w=1266&amp;ssl=1 1266w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>Once your preferences are set, head to Google Tag Manager, and copy the <strong>Public ID<\/strong> and paste it into the Magento 2 GA4 extension configuration.<\/p>\n\n\n\n<p>Click the \u201c<strong>Save<\/strong>\u201d button at the top-right.<\/p>\n\n\n\n<p>Finally, generate and download the GTM JSON file from the extension interface.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"166\" data-attachment-id=\"9098\" data-permalink=\"https:\/\/www.magetop.com\/blog\/how-to-configure-google-analytics-in-magento-2\/image-6-4\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-6.png?fit=1600%2C331&amp;ssl=1\" data-orig-size=\"1600,331\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image-6\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-6.png?fit=300%2C62&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-6.png?fit=800%2C166&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-6.png?resize=800%2C166&#038;ssl=1\" alt=\"\" class=\"wp-image-9098\" srcset=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-6.png?resize=1024%2C212&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-6.png?resize=300%2C62&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-6.png?resize=768%2C159&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-6.png?resize=1536%2C318&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-6.png?w=1600&amp;ssl=1 1600w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Step 4: Upload JSON File to GTM<\/h4>\n\n\n\n<p>Now, it is time to add the downloaded JSON file into GTM. Head to Google Tag Manager and go to <strong>Admin &gt; Import Container.<\/strong><\/p>\n\n\n\n<p>Select the<strong> Import Container<\/strong> option from the right side and upload the JSON file.<\/p>\n\n\n\n<p>Finally, click \u201c<strong>Confirm<\/strong>\u201d to create a container and then publish it.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"606\" data-attachment-id=\"9099\" data-permalink=\"https:\/\/www.magetop.com\/blog\/how-to-configure-google-analytics-in-magento-2\/image-7-4\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-7.png?fit=1500%2C1136&amp;ssl=1\" data-orig-size=\"1500,1136\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image-7\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-7.png?fit=300%2C227&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-7.png?fit=800%2C606&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-7.png?resize=800%2C606&#038;ssl=1\" alt=\"\" class=\"wp-image-9099\" srcset=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-7.png?resize=1024%2C776&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-7.png?resize=300%2C227&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-7.png?resize=768%2C582&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-7.png?w=1500&amp;ssl=1 1500w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>That\u2019s it. You\u2019ve successfully added Google Analytics 4 to Magento 2 store. The GA4 report will start showing real-time data in the store.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"456\" data-attachment-id=\"9100\" data-permalink=\"https:\/\/www.magetop.com\/blog\/how-to-configure-google-analytics-in-magento-2\/image-8-4\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-8.png?fit=1596%2C910&amp;ssl=1\" data-orig-size=\"1596,910\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image-8\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-8.png?fit=300%2C171&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-8.png?fit=800%2C456&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-8.png?resize=800%2C456&#038;ssl=1\" alt=\"\" class=\"wp-image-9100\" srcset=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-8.png?resize=1024%2C584&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-8.png?resize=300%2C171&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-8.png?resize=768%2C438&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-8.png?resize=1536%2C876&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-8.png?w=1596&amp;ssl=1 1596w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Method 2: Manual Method to Add Google Analytics to Magento 2<\/h3>\n\n\n\n<p><strong>Step 1:<\/strong> Log in to Magento Admin Panel with Admin account.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1901\" height=\"874\" data-attachment-id=\"1034\" data-permalink=\"https:\/\/www.magetop.com\/blog\/how-to-configure-google-analytics-in-magento-2\/dashboard-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2019\/12\/Dashboard-2.png?fit=1901%2C874&amp;ssl=1\" data-orig-size=\"1901,874\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Dashboard-2\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2019\/12\/Dashboard-2.png?fit=300%2C138&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2019\/12\/Dashboard-2.png?fit=800%2C368&amp;ssl=1\" src=\"https:\/\/i2.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2019\/12\/Dashboard-2.png?fit=800%2C368&amp;ssl=1\" alt=\"Dashboard\" class=\"wp-image-1034\" srcset=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2019\/12\/Dashboard-2.png?w=1901&amp;ssl=1 1901w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2019\/12\/Dashboard-2.png?resize=300%2C138&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2019\/12\/Dashboard-2.png?resize=1024%2C471&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2019\/12\/Dashboard-2.png?resize=768%2C353&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2019\/12\/Dashboard-2.png?resize=1536%2C706&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2019\/12\/Dashboard-2.png?w=1600&amp;ssl=1 1600w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p><strong>Step 2:<\/strong> On the menu bar, select STORES, then select Configuration in Settings section.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"653\" height=\"838\" data-attachment-id=\"1035\" data-permalink=\"https:\/\/www.magetop.com\/blog\/how-to-configure-google-analytics-in-magento-2\/stores-configuration-in-settings-section\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2019\/12\/Stores-Configuration-in-Settings-section.png?fit=653%2C838&amp;ssl=1\" data-orig-size=\"653,838\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Stores-Configuration-in-Settings-section\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2019\/12\/Stores-Configuration-in-Settings-section.png?fit=234%2C300&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2019\/12\/Stores-Configuration-in-Settings-section.png?fit=653%2C838&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2019\/12\/Stores-Configuration-in-Settings-section.png?resize=653%2C838&#038;ssl=1\" alt=\"Stores Configuration in Settings section\" class=\"wp-image-1035\" srcset=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2019\/12\/Stores-Configuration-in-Settings-section.png?w=653&amp;ssl=1 653w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2019\/12\/Stores-Configuration-in-Settings-section.png?resize=234%2C300&amp;ssl=1 234w\" sizes=\"auto, (max-width: 653px) 100vw, 653px\" \/><\/figure>\n\n\n\n<p><strong>Step 3:<\/strong> In the Configuration panel, select SALES, click Google API.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"548\" height=\"934\" data-attachment-id=\"1036\" data-permalink=\"https:\/\/www.magetop.com\/blog\/how-to-configure-google-analytics-in-magento-2\/in-the-configuration-panel-select-sales-click-google-api\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2019\/12\/In-the-Configuration-panel-select-SALES-click-Google-API..png?fit=548%2C934&amp;ssl=1\" data-orig-size=\"548,934\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"In-the-Configuration-panel-select-SALES-click-Google-API.\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2019\/12\/In-the-Configuration-panel-select-SALES-click-Google-API..png?fit=176%2C300&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2019\/12\/In-the-Configuration-panel-select-SALES-click-Google-API..png?fit=548%2C934&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2019\/12\/In-the-Configuration-panel-select-SALES-click-Google-API..png?resize=548%2C934&#038;ssl=1\" alt=\"In the Configuration panel, select SALES, click Google API.\" class=\"wp-image-1036\" srcset=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2019\/12\/In-the-Configuration-panel-select-SALES-click-Google-API..png?w=548&amp;ssl=1 548w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2019\/12\/In-the-Configuration-panel-select-SALES-click-Google-API..png?resize=176%2C300&amp;ssl=1 176w\" sizes=\"auto, (max-width: 548px) 100vw, 548px\" \/><\/figure>\n\n\n\n<p><strong>Step 4:<\/strong> Under Enable, select Yes.<\/p>\n\n\n\n<p>Under Type, select Google Analytics.<\/p>\n\n\n\n<p>For Account Number, enter your Google Analytics tracking ID. (If you don&#8217;t have a Google Analytics account, you can sign up at <a href=\"http:\/\/www.google.com\/analytics\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"http:\/\/www.google.com\/analytics\/ (opens in a new tab)\">http:\/\/www.google.com\/analytics\/<\/a>)<\/p>\n\n\n\n<p>Item Enable IP anonymization:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Select Yes: anonymous IP visitors.<\/li>\n\n\n\n<li>Select No: monitor visitors&#8217; IP.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1230\" height=\"448\" data-attachment-id=\"1037\" data-permalink=\"https:\/\/www.magetop.com\/blog\/how-to-configure-google-analytics-in-magento-2\/enable-google-analytics\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2019\/12\/Enable-Google-Analytics.png?fit=1230%2C448&amp;ssl=1\" data-orig-size=\"1230,448\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Enable-Google-Analytics\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2019\/12\/Enable-Google-Analytics.png?fit=300%2C109&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2019\/12\/Enable-Google-Analytics.png?fit=800%2C291&amp;ssl=1\" src=\"https:\/\/i2.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2019\/12\/Enable-Google-Analytics.png?fit=800%2C291&amp;ssl=1\" alt=\"Enable Google Analytics\" class=\"wp-image-1037\" srcset=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2019\/12\/Enable-Google-Analytics.png?w=1230&amp;ssl=1 1230w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2019\/12\/Enable-Google-Analytics.png?resize=300%2C109&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2019\/12\/Enable-Google-Analytics.png?resize=1024%2C373&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2019\/12\/Enable-Google-Analytics.png?resize=768%2C280&amp;ssl=1 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>In Magento 2, you can also connect your GA4 account and start basic tracking. <\/p>\n\n\n\n<p>Enable the <strong>Google Analytics 4<\/strong> under <strong>Google GTag<\/strong> as shown below and enter your measurement ID. (You can get the measurement ID from Data Streams in your Google Analytics 4)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"540\" data-attachment-id=\"9101\" data-permalink=\"https:\/\/www.magetop.com\/blog\/how-to-configure-google-analytics-in-magento-2\/image-9-3\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-9.png?fit=1142%2C771&amp;ssl=1\" data-orig-size=\"1142,771\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image-9\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-9.png?fit=300%2C203&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-9.png?fit=800%2C540&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-9.png?resize=800%2C540&#038;ssl=1\" alt=\"\" class=\"wp-image-9101\" srcset=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-9.png?resize=1024%2C691&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-9.png?resize=300%2C203&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-9.png?resize=768%2C519&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2024\/06\/image-9.png?w=1142&amp;ssl=1 1142w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p><strong>Step 5:<\/strong> Click Save Config.<\/p>\n\n\n\n<p>That\u2019s it \u2013 you\u2019ve successfully connected Google Analytics 4 to Magento 2 store. Please note that this method offers basic analytics setup. You may not be able to track events like item product view, add to cart, purchases using it.<\/p>\n\n\n\n<p>Note: After installation is complete, it takes up to about 24 hours for Google Analytics to work on your Magento site.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Tips for Effective GA4 E-commerce Tracking<\/h2>\n\n\n\n<p>After you have successfully added GA4 and you get into the GA4 dashboard, it can feel a little overwhelming as there is so much to do with multiple options available.&nbsp;<\/p>\n\n\n\n<p>Here are a few tips that will help you get started the right way:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Start with a clear idea of what you want to track (clicks on products, product views, etc) and only focus on those metrics first.&nbsp;<\/li>\n\n\n\n<li>Look at your traffic sources, which will help you understand how your visitors are getting into your store, and you can optimize the platform accordingly.&nbsp;<\/li>\n\n\n\n<li>Find and create customized reports you need in GA4. You don&#8217;t need to stick to the default reporting, which you generally get; you can go ahead and make a report with your preferred metrics.<\/li>\n<\/ul>\n\n\n\n<p>Good luck!<\/p>\n\n\n\n<p>It comes to the end of tutorial: <strong>How to Add Google Analytics in Magento 2<\/strong>.<\/p>\n\n\n\n<p>Follow us for more helpful tutorials!<\/p>\n\n\n\n<p>We hope this is useful blog for you.<\/p>\n\n\n\n<p>Thank you for reading!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Google Analytics has the ability to statistic of customer activity on your website. It used to track website activity such as session duration, pages per session, bounce rate, etc. of individuals using the site, along with the information on the source of the traffic. With the above features, I think it is very useful for the Magento store owner. In this article, I will introduce you How to Configure Google Analytics in Magento 2.<br \/>\nWith other CMS, to use Google Analytics, you need to install additional Extensions or Modules. As for Magento, Google Analytics is available by default without any additional installation. <\/p>\n","protected":false},"author":1,"featured_media":9105,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[2],"tags":[186,184,185,183,107],"class_list":["post-1033","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-magento-2-tutorials","tag-configure-google-analytics-in-magento","tag-configure-google-analytics-in-magento-2","tag-how-to-configure-google-analytics-in-magento","tag-how-to-configure-google-analytics-in-magento-2","tag-magento-2-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Add Google Analytics in Magento 2: Complete Tutorial<\/title>\n<meta name=\"description\" content=\"With outstanding features, I think it is very useful for store owners. In this article, I will introduce you How to Add Google Analytics in Magento 2.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.magetop.com\/blog\/how-to-configure-google-analytics-in-magento-2\/\" \/>\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 in Magento 2: Complete Tutorial\" \/>\n<meta property=\"og:description\" content=\"With outstanding features, I think it is very useful for store owners. In this article, I will introduce you How to Add Google Analytics in Magento 2.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.magetop.com\/blog\/how-to-configure-google-analytics-in-magento-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Magetop Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/MagetopStore\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/MagetopStore\" \/>\n<meta property=\"article:published_time\" content=\"2019-12-30T02:59:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-08-18T09:22:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.magetop.com\/blog\/wp-content\/uploads\/2019\/12\/How-to-Add-Google-Analytics-in-Magento-2-Complete-Tutorial-e1718189520175.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"776\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Adam Roger\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/MagetopStore\" \/>\n<meta name=\"twitter:site\" content=\"@MagetopStore\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Adam Roger\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-configure-google-analytics-in-magento-2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-configure-google-analytics-in-magento-2\/\"},\"author\":{\"name\":\"Adam Roger\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/1bf4d5d0c4f280303345970448feb411\"},\"headline\":\"How to Add Google Analytics in Magento 2: Complete Tutorial\",\"datePublished\":\"2019-12-30T02:59:59+00:00\",\"dateModified\":\"2026-08-18T09:22:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-configure-google-analytics-in-magento-2\/\"},\"wordCount\":1015,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-configure-google-analytics-in-magento-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2019\/12\/How-to-Add-Google-Analytics-in-Magento-2-Complete-Tutorial-e1718189520175.png?fit=1280%2C776&ssl=1\",\"keywords\":[\"Configure Google Analytics in Magento\",\"Configure Google Analytics in Magento 2\",\"How to Configure Google Analytics in Magento\",\"How to Configure Google Analytics in Magento 2\",\"magento 2 tutorials\"],\"articleSection\":[\"Magento 2 Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.magetop.com\/blog\/how-to-configure-google-analytics-in-magento-2\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-configure-google-analytics-in-magento-2\/\",\"url\":\"https:\/\/www.magetop.com\/blog\/how-to-configure-google-analytics-in-magento-2\/\",\"name\":\"How to Add Google Analytics in Magento 2: Complete Tutorial\",\"isPartOf\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-configure-google-analytics-in-magento-2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-configure-google-analytics-in-magento-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2019\/12\/How-to-Add-Google-Analytics-in-Magento-2-Complete-Tutorial-e1718189520175.png?fit=1280%2C776&ssl=1\",\"datePublished\":\"2019-12-30T02:59:59+00:00\",\"dateModified\":\"2026-08-18T09:22:19+00:00\",\"description\":\"With outstanding features, I think it is very useful for store owners. In this article, I will introduce you How to Add Google Analytics in Magento 2.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-configure-google-analytics-in-magento-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.magetop.com\/blog\/how-to-configure-google-analytics-in-magento-2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-configure-google-analytics-in-magento-2\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2019\/12\/How-to-Add-Google-Analytics-in-Magento-2-Complete-Tutorial-e1718189520175.png?fit=1280%2C776&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2019\/12\/How-to-Add-Google-Analytics-in-Magento-2-Complete-Tutorial-e1718189520175.png?fit=1280%2C776&ssl=1\",\"width\":1280,\"height\":776,\"caption\":\"How to Add Google Analytics in Magento 2: Complete Tutorial\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-configure-google-analytics-in-magento-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.magetop.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Add Google Analytics in Magento 2: Complete Tutorial\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#website\",\"url\":\"https:\/\/www.magetop.com\/blog\/\",\"name\":\"Magetop Blog\",\"description\":\"Exploring Magento Tips, Tricks, and Trends\",\"publisher\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.magetop.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#organization\",\"name\":\"Magetop.com\",\"url\":\"https:\/\/www.magetop.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1\",\"width\":475,\"height\":475,\"caption\":\"Magetop.com\"},\"image\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/MagetopStore\",\"https:\/\/x.com\/MagetopStore\",\"https:\/\/www.linkedin.com\/company\/magetop\",\"https:\/\/www.pinterest.com\/magetop\",\"https:\/\/www.youtube.com\/channel\/UCXoiJsz88OfPmwa8QpUkwOA\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/1bf4d5d0c4f280303345970448feb411\",\"name\":\"Adam Roger\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/2ea543086258299e700cc48d893c02653c4a87b5466f23de66240a677d192811?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/2ea543086258299e700cc48d893c02653c4a87b5466f23de66240a677d192811?s=96&d=mm&r=g\",\"caption\":\"Adam Roger\"},\"description\":\"CEO and Founder of Magetop. A friend, a husband and a dad of two children. Adam loves to travel to experience new cultures and discover what is happening with ecommerce all around the world.\",\"sameAs\":[\"https:\/\/www.magetop.com\",\"https:\/\/www.facebook.com\/MagetopStore\",\"https:\/\/www.instagram.com\/magetopstore\",\"https:\/\/www.linkedin.com\/company\/magetop\",\"https:\/\/www.pinterest.com\/magetop\",\"https:\/\/x.com\/https:\/\/twitter.com\/MagetopStore\",\"https:\/\/www.youtube.com\/channel\/UCXoiJsz88OfPmwa8QpUkwOA\",\"https:\/\/magetop.tumblr.com\"],\"url\":\"https:\/\/www.magetop.com\/blog\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Add Google Analytics in Magento 2: Complete Tutorial","description":"With outstanding features, I think it is very useful for store owners. In this article, I will introduce you How to Add Google Analytics in Magento 2.","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:\/\/www.magetop.com\/blog\/how-to-configure-google-analytics-in-magento-2\/","og_locale":"en_US","og_type":"article","og_title":"How to Add Google Analytics in Magento 2: Complete Tutorial","og_description":"With outstanding features, I think it is very useful for store owners. In this article, I will introduce you How to Add Google Analytics in Magento 2.","og_url":"https:\/\/www.magetop.com\/blog\/how-to-configure-google-analytics-in-magento-2\/","og_site_name":"Magetop Blog","article_publisher":"https:\/\/www.facebook.com\/MagetopStore","article_author":"https:\/\/www.facebook.com\/MagetopStore","article_published_time":"2019-12-30T02:59:59+00:00","article_modified_time":"2026-08-18T09:22:19+00:00","og_image":[{"width":1280,"height":776,"url":"https:\/\/www.magetop.com\/blog\/wp-content\/uploads\/2019\/12\/How-to-Add-Google-Analytics-in-Magento-2-Complete-Tutorial-e1718189520175.png","type":"image\/png"}],"author":"Adam Roger","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/MagetopStore","twitter_site":"@MagetopStore","twitter_misc":{"Written by":"Adam Roger","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.magetop.com\/blog\/how-to-configure-google-analytics-in-magento-2\/#article","isPartOf":{"@id":"https:\/\/www.magetop.com\/blog\/how-to-configure-google-analytics-in-magento-2\/"},"author":{"name":"Adam Roger","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/1bf4d5d0c4f280303345970448feb411"},"headline":"How to Add Google Analytics in Magento 2: Complete Tutorial","datePublished":"2019-12-30T02:59:59+00:00","dateModified":"2026-08-18T09:22:19+00:00","mainEntityOfPage":{"@id":"https:\/\/www.magetop.com\/blog\/how-to-configure-google-analytics-in-magento-2\/"},"wordCount":1015,"commentCount":0,"publisher":{"@id":"https:\/\/www.magetop.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.magetop.com\/blog\/how-to-configure-google-analytics-in-magento-2\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2019\/12\/How-to-Add-Google-Analytics-in-Magento-2-Complete-Tutorial-e1718189520175.png?fit=1280%2C776&ssl=1","keywords":["Configure Google Analytics in Magento","Configure Google Analytics in Magento 2","How to Configure Google Analytics in Magento","How to Configure Google Analytics in Magento 2","magento 2 tutorials"],"articleSection":["Magento 2 Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.magetop.com\/blog\/how-to-configure-google-analytics-in-magento-2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.magetop.com\/blog\/how-to-configure-google-analytics-in-magento-2\/","url":"https:\/\/www.magetop.com\/blog\/how-to-configure-google-analytics-in-magento-2\/","name":"How to Add Google Analytics in Magento 2: Complete Tutorial","isPartOf":{"@id":"https:\/\/www.magetop.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.magetop.com\/blog\/how-to-configure-google-analytics-in-magento-2\/#primaryimage"},"image":{"@id":"https:\/\/www.magetop.com\/blog\/how-to-configure-google-analytics-in-magento-2\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2019\/12\/How-to-Add-Google-Analytics-in-Magento-2-Complete-Tutorial-e1718189520175.png?fit=1280%2C776&ssl=1","datePublished":"2019-12-30T02:59:59+00:00","dateModified":"2026-08-18T09:22:19+00:00","description":"With outstanding features, I think it is very useful for store owners. In this article, I will introduce you How to Add Google Analytics in Magento 2.","breadcrumb":{"@id":"https:\/\/www.magetop.com\/blog\/how-to-configure-google-analytics-in-magento-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.magetop.com\/blog\/how-to-configure-google-analytics-in-magento-2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.magetop.com\/blog\/how-to-configure-google-analytics-in-magento-2\/#primaryimage","url":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2019\/12\/How-to-Add-Google-Analytics-in-Magento-2-Complete-Tutorial-e1718189520175.png?fit=1280%2C776&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2019\/12\/How-to-Add-Google-Analytics-in-Magento-2-Complete-Tutorial-e1718189520175.png?fit=1280%2C776&ssl=1","width":1280,"height":776,"caption":"How to Add Google Analytics in Magento 2: Complete Tutorial"},{"@type":"BreadcrumbList","@id":"https:\/\/www.magetop.com\/blog\/how-to-configure-google-analytics-in-magento-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.magetop.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Add Google Analytics in Magento 2: Complete Tutorial"}]},{"@type":"WebSite","@id":"https:\/\/www.magetop.com\/blog\/#website","url":"https:\/\/www.magetop.com\/blog\/","name":"Magetop Blog","description":"Exploring Magento Tips, Tricks, and Trends","publisher":{"@id":"https:\/\/www.magetop.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.magetop.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.magetop.com\/blog\/#organization","name":"Magetop.com","url":"https:\/\/www.magetop.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1","width":475,"height":475,"caption":"Magetop.com"},"image":{"@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/MagetopStore","https:\/\/x.com\/MagetopStore","https:\/\/www.linkedin.com\/company\/magetop","https:\/\/www.pinterest.com\/magetop","https:\/\/www.youtube.com\/channel\/UCXoiJsz88OfPmwa8QpUkwOA"]},{"@type":"Person","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/1bf4d5d0c4f280303345970448feb411","name":"Adam Roger","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/2ea543086258299e700cc48d893c02653c4a87b5466f23de66240a677d192811?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2ea543086258299e700cc48d893c02653c4a87b5466f23de66240a677d192811?s=96&d=mm&r=g","caption":"Adam Roger"},"description":"CEO and Founder of Magetop. A friend, a husband and a dad of two children. Adam loves to travel to experience new cultures and discover what is happening with ecommerce all around the world.","sameAs":["https:\/\/www.magetop.com","https:\/\/www.facebook.com\/MagetopStore","https:\/\/www.instagram.com\/magetopstore","https:\/\/www.linkedin.com\/company\/magetop","https:\/\/www.pinterest.com\/magetop","https:\/\/x.com\/https:\/\/twitter.com\/MagetopStore","https:\/\/www.youtube.com\/channel\/UCXoiJsz88OfPmwa8QpUkwOA","https:\/\/magetop.tumblr.com"],"url":"https:\/\/www.magetop.com\/blog\/author\/admin\/"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2019\/12\/How-to-Add-Google-Analytics-in-Magento-2-Complete-Tutorial-e1718189520175.png?fit=1280%2C776&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/paOdw5-gF","jetpack-related-posts":[{"id":11122,"url":"https:\/\/www.magetop.com\/blog\/install-microsoft-clarity-magento-2\/","url_meta":{"origin":1033,"position":0},"title":"How to Install Microsoft Clarity in Magento 2","author":"Aaron LX","date":"January 26, 2026","format":false,"excerpt":"If you want to install Microsoft Clarity in Magento 2, this guide will walk you through the process step by step. Microsoft Clarity helps you understand how users interact with your Magento 2 store by providing heatmaps, session recordings, and behavioral insights. Unlike Google Analytics, which focuses mainly on numbers,\u2026","rel":"","context":"In &quot;Magento 2 Tutorials&quot;","block_context":{"text":"Magento 2 Tutorials","link":"https:\/\/www.magetop.com\/blog\/magento-2-tutorials\/"},"img":{"alt_text":"How to Install Microsoft Clarity in Magento 2","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2026\/01\/How-to-Install-Microsoft-Clarity-in-Magento-2.png?fit=1200%2C667&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2026\/01\/How-to-Install-Microsoft-Clarity-in-Magento-2.png?fit=1200%2C667&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2026\/01\/How-to-Install-Microsoft-Clarity-in-Magento-2.png?fit=1200%2C667&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2026\/01\/How-to-Install-Microsoft-Clarity-in-Magento-2.png?fit=1200%2C667&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2026\/01\/How-to-Install-Microsoft-Clarity-in-Magento-2.png?fit=1200%2C667&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":11107,"url":"https:\/\/www.magetop.com\/blog\/install-google-tag-manager-magento-2\/","url_meta":{"origin":1033,"position":1},"title":"How To Install Google Tag Manager In Magento 2","author":"Aaron LX","date":"January 21, 2026","format":false,"excerpt":"Tracking user behavior is essential for any eCommerce store. With Google Tag Manager, you can manage all tracking codes from one dashboard\u2014without editing code every time. In this guide, you\u2019ll learn how to install Google Tag Manager in Magento 2 using two methods: Using Magento Admin Panel (recommended) Adding code\u2026","rel":"","context":"In &quot;Magento 2 Tutorials&quot;","block_context":{"text":"Magento 2 Tutorials","link":"https:\/\/www.magetop.com\/blog\/magento-2-tutorials\/"},"img":{"alt_text":"How To Install Google Tag Manager In Magento 2","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2026\/01\/How-To-Install-Google-Tag-Manager-In-Magento-2.png?fit=1200%2C667&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2026\/01\/How-To-Install-Google-Tag-Manager-In-Magento-2.png?fit=1200%2C667&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2026\/01\/How-To-Install-Google-Tag-Manager-In-Magento-2.png?fit=1200%2C667&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2026\/01\/How-To-Install-Google-Tag-Manager-In-Magento-2.png?fit=1200%2C667&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2026\/01\/How-To-Install-Google-Tag-Manager-In-Magento-2.png?fit=1200%2C667&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":1857,"url":"https:\/\/www.magetop.com\/blog\/cai-google-analytics-trong-magento-2\/","url_meta":{"origin":1033,"position":2},"title":"H\u01b0\u1edbng d\u1eabn c\u00e0i Google Analytics trong Magento 2","author":"Callula Huy","date":"April 17, 2020","format":false,"excerpt":"Trong b\u00e0i vi\u1ebft n\u00e0y m\u00ecnh s\u1ebd h\u01b0\u1edbng d\u1eabn c\u00e1c b\u1ea1n c\u00e1ch c\u00e0i Google Analytics trong Magento 2. Google Analytics l\u00e0 m\u1ed9t tool gi\u00fap c\u00e1c b\u1ea1n c\u00f3 th\u1ec3 theo d\u00f5i c\u00e1c ch\u1ec9 s\u1ed1 ho\u1ea1t \u0111\u1ed9ng tr\u00ean website r\u1ea5t hi\u1ec7u qu\u1ea3 v\u00e0 ti\u1ec7n l\u1ee3i.","rel":"","context":"In &quot;Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t&quot;","block_context":{"text":"Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t","link":"https:\/\/www.magetop.com\/blog\/vn\/"},"img":{"alt_text":"huong dan cai google analytics magento 2","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/huongdancaigoogleanalyticsmagento.png?fit=598%2C445&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/huongdancaigoogleanalyticsmagento.png?fit=598%2C445&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/huongdancaigoogleanalyticsmagento.png?fit=598%2C445&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":2956,"url":"https:\/\/www.magetop.com\/blog\/top-magento-2-product-feed-extensions\/","url_meta":{"origin":1033,"position":3},"title":"Top 5 Magento 2 Product Feed Extensions","author":"Aaron LX","date":"October 26, 2020","format":false,"excerpt":"Magento 2 Product Feed Extensions help you to bring your store's products to famous shopping channels like Google Shopping, Facebook, etc. What is better than market expansion, exposure to many different types of customers and sales soaring. Here is an extension to help you do just that. In this blog,\u2026","rel":"","context":"In &quot;Magento News&quot;","block_context":{"text":"Magento News","link":"https:\/\/www.magetop.com\/blog\/magento-news\/"},"img":{"alt_text":"Top Magento 2 Product Feed Extensions","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/10\/Top-Magento-2-Product-Feed-Extensions.jpg?fit=750%2C445&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/10\/Top-Magento-2-Product-Feed-Extensions.jpg?fit=750%2C445&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/10\/Top-Magento-2-Product-Feed-Extensions.jpg?fit=750%2C445&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/10\/Top-Magento-2-Product-Feed-Extensions.jpg?fit=750%2C445&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":3867,"url":"https:\/\/www.magetop.com\/blog\/tich-hop-google-webmaster-magento-2\/","url_meta":{"origin":1033,"position":4},"title":"H\u01b0\u1edbng d\u1eabn t\u00edch h\u1ee3p Google Webmaster trong Magento 2","author":"Callula Huy","date":"December 29, 2020","format":false,"excerpt":"Trong b\u00e0i vi\u1ebft n\u00e0y m\u00ecnh s\u1ebd h\u01b0\u1edbng d\u1eabn b\u1ea1n c\u00e1ch t\u00edch h\u1ee3p Google Webmaster Tool hay c\u00f2n \u0111\u01b0\u1ee3c g\u1ecdi l\u00e0 Google Search Console trong Magento 2.","rel":"","context":"In &quot;Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t&quot;","block_context":{"text":"Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t","link":"https:\/\/www.magetop.com\/blog\/vn\/"},"img":{"alt_text":"H\u01b0\u1edbng d\u1eabn t\u00edch h\u1ee3p Google Webmaster trong Magento 2","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/12\/Huong-dan-tich-hop-Google-Webmaster-trong-Magento-2.jpg?fit=750%2C372&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/12\/Huong-dan-tich-hop-Google-Webmaster-trong-Magento-2.jpg?fit=750%2C372&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/12\/Huong-dan-tich-hop-Google-Webmaster-trong-Magento-2.jpg?fit=750%2C372&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/12\/Huong-dan-tich-hop-Google-Webmaster-trong-Magento-2.jpg?fit=750%2C372&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":8075,"url":"https:\/\/www.magetop.com\/blog\/how-to-make-your-magento-website-more-seo-friendly\/","url_meta":{"origin":1033,"position":5},"title":"How to Make Your Magento Website More SEO-Friendly?","author":"Adam Roger","date":"October 19, 2022","format":false,"excerpt":"Do you want to make your Magento website SEO-centric? No worries! In this guide, we uncover seven simple steps to optimize your site.","rel":"","context":"In &quot;Magetop Guest Post&quot;","block_context":{"text":"Magetop Guest Post","link":"https:\/\/www.magetop.com\/blog\/welcome-to-our-guest-post\/"},"img":{"alt_text":"How to Make Your Magento Website More SEO-Friendly?","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2022\/10\/How-to-Make-Your-Magento-Website-More-SEO-Friendly.png?fit=1200%2C707&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2022\/10\/How-to-Make-Your-Magento-Website-More-SEO-Friendly.png?fit=1200%2C707&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2022\/10\/How-to-Make-Your-Magento-Website-More-SEO-Friendly.png?fit=1200%2C707&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2022\/10\/How-to-Make-Your-Magento-Website-More-SEO-Friendly.png?fit=1200%2C707&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2022\/10\/How-to-Make-Your-Magento-Website-More-SEO-Friendly.png?fit=1200%2C707&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts\/1033","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/comments?post=1033"}],"version-history":[{"count":11,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts\/1033\/revisions"}],"predecessor-version":[{"id":11985,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts\/1033\/revisions\/11985"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/media\/9105"}],"wp:attachment":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/media?parent=1033"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/categories?post=1033"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/tags?post=1033"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}