How to Add Google Analytics to PrestaShop – Step-by-Step Guide

google analytics and prestashop integration

Last Updated on Aug 29, 2025 by Nurul Afsar

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 your PrestaShop store.


Why Use Google Analytics for PrestaShop?

Before diving into the setup process, here are some key benefits of using Google Analytics with PrestaShop:

  • Track Website Traffic – Get detailed reports on visitor numbers, sources, and locations.
  • Analyze Customer Behavior – Understand how users navigate your store and which pages they interact with the most.
  • Monitor Conversions – Track sales, revenue, and abandoned carts to improve performance.
  • Optimize Marketing Campaigns – Measure the effectiveness of your ads and marketing efforts.
  • Enhance User Experience – Identify slow-loading pages and optimize your site accordingly.

an image of google analytics

Step 1: Create a Google Analytics Account

If you haven’t already set up a Google Analytics account, follow these steps:

  1. Go to Google Analytics – Visit Google Analytics.
  2. Sign in with Your Google Account – Use your existing Google credentials or create a new account.
  3. Set Up a New Property – Click on ‘Admin’ in the left menu and then ‘Create Property’.
  4. Choose ‘Web’ – Since PrestaShop is a web-based platform, select ‘Web’ as the property type.
  5. Enter Your Store Details – Provide your PrestaShop store name, URL, and industry category.
  6. Get the Tracking ID – Once the setup is complete, Google Analytics will generate a tracking ID (e.g., G-XXXXXXXXXX). Copy this ID as you’ll need it in the next steps.
google analytics and prestashop integration

Step 2: Install Google Analytics on PrestaShop

There are two primary ways to integrate Google Analytics with PrestaShop: using a module or manually adding the tracking code.

Method 1: Using the Google Analytics Module (Recommended)

PrestaShop has a dedicated Google Analytics module that simplifies the integration process.

  1. Log in to Your PrestaShop Admin Panel
  2. Go to ‘Modules’ > ‘Module Manager’
  3. Search for ‘Google Analytics’ – If it’s not installed, click ‘Add a new module’ and install the official Google Analytics module.
  4. Click ‘Configure’ – Open the module settings.
  5. Enter Your Google Analytics Tracking ID – Paste the ID you copied earlier.
  6. Enable Tracking – Make sure the module is activated and saving data.
  7. Save the Changes – Click ‘Save’ and refresh your website.

Your Google Analytics is now set up, and you can start tracking website activity.

Method 2: Manually Adding the Tracking Code

If you prefer to manually add the tracking code, follow these steps:

  1. Copy the Global Site Tag – In your Google Analytics account, navigate to ‘Admin’ > ‘Data Streams’ > Click your site > ‘Global Site Tag (gtag.js)’ and copy the script.
  2. Access Your PrestaShop Theme Files – Go to themes/your-theme/templates/_partials/head.tpl.
  3. Paste the Tracking Code – Insert the Google Analytics script just before the closing <head> tag.
  4. Save and Upload the File – Save your changes and upload the updated file back to your server.
  5. Clear Cache – Go to ‘Advanced Parameters’ > ‘Performance’ and clear your PrestaShop cache to ensure changes take effect.

Step 3: Verify Google Analytics Installation

To confirm that Google Analytics is correctly installed on your PrestaShop store:

  1. Open Your Website – Visit your PrestaShop store in a new browser tab.
  2. Use Google Tag Assistant – Install the Google Tag Assistant Chrome Extension to check if the tracking code is firing.
  3. Check Real-Time Reports – In Google Analytics, go to ‘Realtime’ and see if your visit is being recorded.
  4. Wait for Data to Populate – It may take a few hours for data to start appearing in Google Analytics reports.

Step 4: Enable Enhanced eCommerce Tracking (Optional)

For deeper insights into shopping behavior, enable Enhanced eCommerce tracking.

  1. Go to Google Analytics Admin Panel
  2. Navigate to ‘Ecommerce Settings’
  3. Enable Ecommerce & Enhanced Ecommerce Reports
  4. Save Changes

In PrestaShop:

  1. Open Google Analytics Module Settings
  2. Enable Enhanced Ecommerce
  3. Save Settings

This allows you to track user interactions, product performance, cart activity, and checkout behavior.

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.

If you need further assistance or a custom solution for your PrestaShop store, feel free to contact Numinix for professional web development and analytics integration services.

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Account Cart Search Cart Open Menu Arrow Link Arrow Chat Close Close Popup Facebook Twitter Google Plus linkedin2

Get 10% Off!

your next purchase when you subscribe to our newsletter.

* indicates required

Intuit Mailchimp

By subscribing, you agree to our Terms of Use and Privacy Policy.