{"id":6812,"date":"2025-02-28T16:58:46","date_gmt":"2025-02-28T23:58:46","guid":{"rendered":"https:\/\/www.numinix.com\/blog\/?p=6812"},"modified":"2025-08-29T23:18:15","modified_gmt":"2025-08-30T06:18:15","slug":"how-to-add-google-analytics-to-prestashop","status":"publish","type":"post","link":"https:\/\/www.numinix.com\/blog\/how-to-add-google-analytics-to-prestashop\/","title":{"rendered":"How to Add Google Analytics to PrestaShop \u2013 Step-by-Step Guide"},"content":{"rendered":"\n<p>Google Analytics is an essential tool for tracking and analyzing website traffic, user behavior, and conversion rates. If you run an eCommerce store on <a href=\"https:\/\/www.numinix.com\/p\/prestashop-cms-platform\/\">PrestaShop<\/a>, integrating Google Analytics allows you to gain valuable insights into customer interactions and optimize your store accordingly. This guide walks you through the step-by-step process of adding Google Analytics to your PrestaShop store.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_80 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"#\" data-href=\"https:\/\/www.numinix.com\/blog\/how-to-add-google-analytics-to-prestashop\/#Why_Use_Google_Analytics_for_PrestaShop\" >Why Use Google Analytics for PrestaShop?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"#\" data-href=\"https:\/\/www.numinix.com\/blog\/how-to-add-google-analytics-to-prestashop\/#Step_1_Create_a_Google_Analytics_Account\" >Step 1: Create a Google Analytics Account<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"#\" data-href=\"https:\/\/www.numinix.com\/blog\/how-to-add-google-analytics-to-prestashop\/#Step_2_Install_Google_Analytics_on_PrestaShop\" >Step 2: Install Google Analytics on PrestaShop<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"#\" data-href=\"https:\/\/www.numinix.com\/blog\/how-to-add-google-analytics-to-prestashop\/#Method_1_Using_the_Google_Analytics_Module_Recommended\" >Method 1: Using the Google Analytics Module (Recommended)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"#\" data-href=\"https:\/\/www.numinix.com\/blog\/how-to-add-google-analytics-to-prestashop\/#Method_2_Manually_Adding_the_Tracking_Code\" >Method 2: Manually Adding the Tracking Code<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"#\" data-href=\"https:\/\/www.numinix.com\/blog\/how-to-add-google-analytics-to-prestashop\/#Step_3_Verify_Google_Analytics_Installation\" >Step 3: Verify Google Analytics Installation<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"#\" data-href=\"https:\/\/www.numinix.com\/blog\/how-to-add-google-analytics-to-prestashop\/#Step_4_Enable_Enhanced_eCommerce_Tracking_Optional\" >Step 4: Enable Enhanced eCommerce Tracking (Optional)<\/a><\/li><\/ul><\/nav><\/div>\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Why_Use_Google_Analytics_for_PrestaShop\"><\/span><strong>Why Use Google Analytics for PrestaShop?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Before diving into the setup process, here are some key benefits of using Google Analytics with PrestaShop:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Track Website Traffic<\/strong> \u2013 Get detailed reports on visitor numbers, sources, and locations.<\/li>\n\n\n\n<li><strong>Analyze Customer Behavior<\/strong> \u2013 Understand how users navigate your store and which pages they interact with the most.<\/li>\n\n\n\n<li><strong>Monitor Conversions<\/strong> \u2013 Track sales, revenue, and abandoned carts to improve performance.<\/li>\n\n\n\n<li><strong>Optimize Marketing Campaigns<\/strong> \u2013 Measure the effectiveness of your ads and marketing efforts.<\/li>\n\n\n\n<li><strong>Enhance User Experience<\/strong> \u2013 Identify slow-loading pages and optimize your site accordingly.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/www.numinix.com\/wordpress\/wp-content\/uploads\/2025\/02\/Google-Analytics-1024x576.jpg\" alt=\"an image of google analytics\" class=\"wp-image-6818\" srcset=\"https:\/\/www.numinix.com\/wordpress\/wp-content\/uploads\/2025\/02\/Google-Analytics-1024x576.jpg 1024w, https:\/\/www.numinix.com\/wordpress\/wp-content\/uploads\/2025\/02\/Google-Analytics-300x169.jpg 300w, https:\/\/www.numinix.com\/wordpress\/wp-content\/uploads\/2025\/02\/Google-Analytics-768x432.jpg 768w, https:\/\/www.numinix.com\/wordpress\/wp-content\/uploads\/2025\/02\/Google-Analytics-1536x864.jpg 1536w, https:\/\/www.numinix.com\/wordpress\/wp-content\/uploads\/2025\/02\/Google-Analytics-624x351.jpg 624w, https:\/\/www.numinix.com\/wordpress\/wp-content\/uploads\/2025\/02\/Google-Analytics.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_1_Create_a_Google_Analytics_Account\"><\/span><strong>Step 1: Create a Google Analytics Account<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>If you haven&#8217;t already set up a Google Analytics account, follow these steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Go to Google Analytics<\/strong> \u2013 Visit Google Analytics.<\/li>\n\n\n\n<li><strong>Sign in with Your Google Account<\/strong> \u2013 Use your existing Google credentials or create a new account.<\/li>\n\n\n\n<li><strong>Set Up a New Property<\/strong> \u2013 Click on \u2018Admin\u2019 in the left menu and then \u2018Create Property\u2019.<\/li>\n\n\n\n<li><strong>Choose \u2018Web\u2019<\/strong> \u2013 Since PrestaShop is a web-based platform, select \u2018Web\u2019 as the property type.<\/li>\n\n\n\n<li><strong>Enter Your Store Details<\/strong> \u2013 Provide your PrestaShop store name, URL, and industry category.<\/li>\n\n\n\n<li><strong>Get the Tracking ID<\/strong> \u2013 Once the setup is complete, Google Analytics will generate a tracking ID (e.g., G-XXXXXXXXXX). Copy this ID as you&#8217;ll need it in the next steps.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/www.numinix.com\/wordpress\/wp-content\/uploads\/2025\/02\/How-to-Add-Google-Analytics-to-PrestaShop-1024x576.jpg\" alt=\"google analytics and prestashop integration\" class=\"wp-image-6817\" srcset=\"https:\/\/www.numinix.com\/wordpress\/wp-content\/uploads\/2025\/02\/How-to-Add-Google-Analytics-to-PrestaShop-1024x576.jpg 1024w, https:\/\/www.numinix.com\/wordpress\/wp-content\/uploads\/2025\/02\/How-to-Add-Google-Analytics-to-PrestaShop-300x169.jpg 300w, https:\/\/www.numinix.com\/wordpress\/wp-content\/uploads\/2025\/02\/How-to-Add-Google-Analytics-to-PrestaShop-768x432.jpg 768w, https:\/\/www.numinix.com\/wordpress\/wp-content\/uploads\/2025\/02\/How-to-Add-Google-Analytics-to-PrestaShop-1536x864.jpg 1536w, https:\/\/www.numinix.com\/wordpress\/wp-content\/uploads\/2025\/02\/How-to-Add-Google-Analytics-to-PrestaShop-624x351.jpg 624w, https:\/\/www.numinix.com\/wordpress\/wp-content\/uploads\/2025\/02\/How-to-Add-Google-Analytics-to-PrestaShop.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_2_Install_Google_Analytics_on_PrestaShop\"><\/span><strong>Step 2: Install Google Analytics on PrestaShop<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>There are two primary ways to integrate Google Analytics with PrestaShop: using a module or manually adding the tracking code.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Method_1_Using_the_Google_Analytics_Module_Recommended\"><\/span><strong>Method 1: Using the Google Analytics Module (Recommended)<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>PrestaShop has a dedicated Google Analytics module that simplifies the integration process.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Log in to Your PrestaShop Admin Panel<\/strong><\/li>\n\n\n\n<li><strong>Go to \u2018Modules\u2019 &gt; \u2018Module Manager\u2019<\/strong><\/li>\n\n\n\n<li><strong>Search for \u2018Google Analytics\u2019<\/strong> \u2013 If it&#8217;s not installed, click \u2018Add a new module\u2019 and install the official Google Analytics module.<\/li>\n\n\n\n<li><strong>Click \u2018Configure\u2019<\/strong> \u2013 Open the module settings.<\/li>\n\n\n\n<li><strong>Enter Your Google Analytics Tracking ID<\/strong> \u2013 Paste the ID you copied earlier.<\/li>\n\n\n\n<li><strong>Enable Tracking<\/strong> \u2013 Make sure the module is activated and saving data.<\/li>\n\n\n\n<li><strong>Save the Changes<\/strong> \u2013 Click \u2018Save\u2019 and refresh your website.<\/li>\n<\/ol>\n\n\n\n<p>Your Google Analytics is now set up, and you can start tracking website activity.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Method_2_Manually_Adding_the_Tracking_Code\"><\/span><strong>Method 2: Manually Adding the Tracking Code<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>If you prefer to manually add the tracking code, follow these steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Copy the Global Site Tag<\/strong> \u2013 In your Google Analytics account, navigate to \u2018Admin\u2019 &gt; \u2018Data Streams\u2019 &gt; Click your site &gt; \u2018Global Site Tag (gtag.js)\u2019 and copy the script.<\/li>\n\n\n\n<li><strong>Access Your PrestaShop Theme Files<\/strong> \u2013 Go to themes\/your-theme\/templates\/_partials\/head.tpl.<\/li>\n\n\n\n<li><strong>Paste the Tracking Code<\/strong> \u2013 Insert the Google Analytics script just before the closing &lt;head&gt; tag.<\/li>\n\n\n\n<li><strong>Save and Upload the File<\/strong> \u2013 Save your changes and upload the updated file back to your server.<\/li>\n\n\n\n<li><strong>Clear Cache<\/strong> \u2013 Go to \u2018Advanced Parameters\u2019 &gt; \u2018Performance\u2019 and clear your PrestaShop cache to ensure changes take effect.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_3_Verify_Google_Analytics_Installation\"><\/span><strong>Step 3: Verify Google Analytics Installation<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>To confirm that Google Analytics is correctly installed on your PrestaShop store:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Open Your Website<\/strong> \u2013 Visit your PrestaShop store in a new browser tab.<\/li>\n\n\n\n<li><strong>Use Google Tag Assistant<\/strong> \u2013 Install the <a href=\"https:\/\/tagassistant.google.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Google Tag Assistant Chrome Extension<\/a> to check if the tracking code is firing.<\/li>\n\n\n\n<li><strong>Check Real-Time Reports<\/strong> \u2013 In Google Analytics, go to \u2018Realtime\u2019 and see if your visit is being recorded.<\/li>\n\n\n\n<li><strong>Wait for Data to Populate<\/strong> \u2013 It may take a few hours for data to start appearing in Google Analytics reports.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_4_Enable_Enhanced_eCommerce_Tracking_Optional\"><\/span><strong>Step 4: Enable Enhanced eCommerce Tracking (Optional)<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>For deeper insights into shopping behavior, enable Enhanced eCommerce tracking.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to Google Analytics Admin Panel<\/li>\n\n\n\n<li>Navigate to \u2018Ecommerce Settings\u2019<\/li>\n\n\n\n<li>Enable Ecommerce &amp; Enhanced Ecommerce Reports<\/li>\n\n\n\n<li>Save Changes<\/li>\n<\/ol>\n\n\n\n<p>In PrestaShop:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open Google Analytics Module Settings<\/li>\n\n\n\n<li>Enable Enhanced Ecommerce<\/li>\n\n\n\n<li>Save Settings<\/li>\n<\/ol>\n\n\n\n<p>This allows you to track user interactions, product performance, cart activity, and checkout behavior.<\/p>\n\n\n\n<p>Integrating Google Analytics with your PrestaShop store is crucial for tracking user behavior, optimizing sales funnels, and making data-driven decisions. By following the steps outlined above, you can set up and configure Google Analytics effectively to gain valuable insights into your eCommerce business.<\/p>\n\n\n\n<p>If you need further assistance or a custom solution for your PrestaShop store, feel free to <a href=\"https:\/\/www.numinix.com\/custom_quote.html\">contact Numinix <\/a>for professional web development and analytics integration services.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Google Analytics is an essential tool for tracking and analyzing website traffic, user behavior, and conversion rates. If you run an eCommerce store on PrestaShop, integrating Google Analytics allows you to gain valuable insights into customer interactions and optimize your store accordingly. This guide walks you through the step-by-step process of adding Google Analytics to&#8230;<\/p>\n","protected":false},"author":271,"featured_media":6817,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"no","_lmt_disable":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[586],"tags":[],"class_list":["post-6812","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-web-development"],"modified_by":"Nurul Afsar","jetpack_featured_media_url":"https:\/\/www.numinix.com\/wordpress\/wp-content\/uploads\/2025\/02\/How-to-Add-Google-Analytics-to-PrestaShop.jpg","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.numinix.com\/blog\/wp-json\/wp\/v2\/posts\/6812","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.numinix.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.numinix.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.numinix.com\/blog\/wp-json\/wp\/v2\/users\/271"}],"replies":[{"embeddable":true,"href":"https:\/\/www.numinix.com\/blog\/wp-json\/wp\/v2\/comments?post=6812"}],"version-history":[{"count":0,"href":"https:\/\/www.numinix.com\/blog\/wp-json\/wp\/v2\/posts\/6812\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.numinix.com\/blog\/wp-json\/wp\/v2\/media\/6817"}],"wp:attachment":[{"href":"https:\/\/www.numinix.com\/blog\/wp-json\/wp\/v2\/media?parent=6812"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.numinix.com\/blog\/wp-json\/wp\/v2\/categories?post=6812"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.numinix.com\/blog\/wp-json\/wp\/v2\/tags?post=6812"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}