PrestaShop Documentation, PrestaShop Tutorials

How to Connect Google Analytics with PrestaShop

SEO Title: How to Connect Google Analytics with PrestaShop – Step-by-Step Guide

Meta Description: Learn how to connect Google Analytics 4 (GA4) with PrestaShop to track website traffic, customer behaviour, sales, conversions, and eCommerce performance.

Suggested URL: connect-google-analytics-prestashop

Introduction

Understanding how visitors interact with your online store is essential for growing your eCommerce business. Google Analytics helps PrestaShop store owners monitor website traffic, identify popular products, analyse customer behaviour, and measure sales performance.

By connecting Google Analytics 4 (GA4) with PrestaShop, you can collect valuable information about your visitors and understand how customers move through your online store.

In this guide, we will explain how to create a Google Analytics account, connect it to PrestaShop, configure eCommerce tracking, and verify that data is being collected correctly.

1. Create a Google Analytics Account

Before connecting Google Analytics to PrestaShop, you need a Google Analytics account.

Follow these steps:

  1. Visit Google Analytics.
  2. Sign in using your Google account.
  3. Click Start Measuring.
  4. Enter your account name.
  5. Configure your account data-sharing settings.
  6. Create a property for your PrestaShop website.
  7. Enter your website name and select your reporting time zone and currency.
  8. Choose your business category and business size.
  9. Accept the applicable terms and complete the setup.

Once your property is created, you can configure data collection for your website.

2. Create a GA4 Web Data Stream

A web data stream allows Google Analytics to collect information from your PrestaShop website.

Follow these steps:

  1. Open your Google Analytics account.
  2. Go to Admin.
  3. Under Data collection and modification, select Data Streams.
  4. Click Add Stream and choose Web.
  5. Enter your PrestaShop website URL.
  6. Enter a stream name.
  7. Click Create Stream.

Google Analytics will generate a Measurement ID.

It usually starts withG-, followed by a combination of letters and numbers.

Important: Copy your Measurement ID because you will need it when connecting Google Analytics to PrestaShop.

3. Install the Google Analytics Module in PrestaShop

PrestaShop does not provide a universal built-in field for entering a GA4 Measurement ID. You can use a compatible Google Analytics module to integrate tracking.

PrestaShop maintains an official Google Analytics module called ps_googleanalytics.

Installation steps:

  1. Log in to your PrestaShop Back Office.
  2. Navigate to Modules → Module Manager.
  3. Click Upload a Module if you have downloaded the module ZIP file.
  4. Select the Google Analytics module package.
  5. Complete the installation.
  6. Click Configure.
  7. Enter your Google Analytics identifier (Measurement ID).
  8. Save the configuration.

Compatibility note: The official module repository currently lists PrestaShop 8.2.0 or later as its compatibility requirement. Check compatibility before installing it on an older store.

You can find the official module source here:

PrestaShop Official Google Analytics Module – GitHub

Important: Do not confuse the current GA4 integration with older Google Analytics Universal Analytics modules. Universal Analytics tracking IDs beginning with UA- are outdated.

4. Connect Google Analytics Using Google Tag Manager

Google Tag Manager (GTM) provides another way to connect Google Analytics with PrestaShop.

It allows you to manage tracking codes without repeatedly editing your store’s theme files.

Steps to connect Google Tag Manager:

  1. Visit Google Tag Manager.
  2. Create a new account or select an existing account.
  3. Create a container for your PrestaShop website.
  4. Select Web as the target platform.
  5. Copy the GTM installation snippets.
  6. Add the snippets to the appropriate locations in your PrestaShop theme or through a compatible module.
  7. Open your GTM workspace.
  8. Create a Google tag.
  9. Enter your GA4 Measurement ID.
  10. Set the trigger to Initialisation or All Pages, as appropriate for your setup.
  11. Save and publish your container.

Once installed correctly, Google Tag Manager can send website tracking information to Google Analytics.

5. Enable eCommerce Tracking

Basic Google Analytics tracking shows website traffic, but eCommerce tracking provides more detailed information about customer shopping activity.

Configure your PrestaShop integration to send relevant GA4 eCommerce events.

Important events include:

EventPurpose
view_itemTracks product views
add_to_cartTracks products added to carts
view_cartTracks shopping cart views
begin_checkoutTracks checkout starts
add_payment_infoTracks payment information submission
purchaseTracks completed purchases
refundTracks refunded orders

These events need to be implemented through your compatible module or Google Tag Manager setup. Installing the basic Google tag alone does not automatically enable all eCommerce events.

6. Verify Your Google Analytics Installation

After installing Google Analytics, verify that your PrestaShop website is sending data correctly.

Follow these steps:

  1. Open your Google Analytics account.
  2. Select your PrestaShop property.
  3. Navigate to Reports → Realtime.
  4. Open your online store in another browser tab.
  5. Browse different pages and product listings.
  6. Check whether your activity appears in the Realtime report.

You can also use Google’s Tag Assistant to troubleshoot tracking issues.

Google Tag Assistant

Google indicates that data collection may take up to 30 minutes to begin.

7. Monitor Website Traffic and Customer Behaviour

Once Google Analytics is connected, you can use its reports to understand how visitors interact with your PrestaShop store.

Important metrics to monitor include:

  • Users: Number of visitors to your website.
  • Sessions: Number of visits.
  • Traffic Sources: Where your visitors come from.
  • Engagement Rate: How visitors interact with your website.
  • Top Landing Pages: Pages where visitors first arrive.
  • Purchases: Number of completed transactions.
  • Revenue: Revenue attributed to tracked purchases.

Review these reports regularly to identify opportunities to improve your online store.

8. Fix Common Google Analytics Tracking Problems

Sometimes Google Analytics may not display the expected data after installation.

Here are some common issues and solutions:

ProblemPossible Solution
No visitors displayedCheck the Measurement ID
Duplicate page viewsRemove duplicate tracking codes
Purchase events missingCheck eCommerce event configuration
Incorrect revenueVerify purchase value and currency
Tracking not working on checkoutCheck module compatibility and checkout scripts
Data not appearingCheck consent settings and browser blockers

Additional tips:

  • Make sure the correct GA4 property is selected.
  • Check that the tracking code loads on every relevant page.
  • Avoid installing the same Google tag multiple times.
  • Test your website after changing themes or modules.
  • Check whether your cookie consent solution is blocking tracking.

9. Configure Cookie Consent and Privacy Settings

When collecting customer information through Google Analytics, make sure your store follows applicable privacy and data protection requirements.

Consider implementing:

  • A cookie consent banner.
  • Clear privacy policy information.
  • Appropriate consent management for analytics cookies.
  • Google Consent Mode where applicable.
  • A mechanism for customers to update their consent preferences.

For stores serving customers in India, the EU, and other regions, review the privacy requirements applicable to your business and visitors.

10. Analyse Sales Performance and Improve Conversions

Google Analytics can help you identify problems in your customers’ purchasing journey.

For example, if many visitors view products but very few add them to their carts, you may need to improve product descriptions, images, or pricing.

If customers add products to their carts but do not complete purchases, review your checkout process, shipping charges, and payment options.

Use this information to make data-driven improvements to your PrestaShop store.


Conclusion

Connecting Google Analytics with PrestaShop helps you understand website traffic, customer behaviour, product performance, and sales conversions.

By creating a GA4 property, installing a compatible tracking solution, configuring eCommerce events, and verifying your installation, you can collect valuable information about your online store.

Monitor your Analytics reports regularly and use the insights to improve your website performance, marketing campaigns, and customer shopping experience.

Frequently Asked Questions (FAQs)

1. Is Google Analytics free for PrestaShop?

Yes. Google Analytics offers a free version that PrestaShop store owners can use to monitor website traffic and customer behaviour.

2. How do I find my Google Analytics Measurement ID?

Go to Google Analytics → Admin → Data Streams → Select your website. You will find your Measurement ID starting with G-.

3. Can I track PrestaShop sales using Google Analytics?

Yes. You can track purchases, revenue, product views, cart activity, and other eCommerce events by configuring a compatible integration.

4. Does PrestaShop support Google Analytics 4?

Yes. PrestaShop has an official Google Analytics module for GA4, with the published compatibility requirement of PrestaShop 8.2.0 or later.

5. Why is Google Analytics not showing visitors?

Possible reasons include incorrect Measurement IDs, missing tracking codes, cookie consent restrictions, browser blockers, or incorrect module configuration.

6. Can I connect Google Analytics using Google Tag Manager?

Yes. Google Tag Manager allows you to install and manage Google Analytics tracking tags and additional eCommerce events.

Suggested Blog Tags

#PrestaShop #GoogleAnalytics #GA4 #GoogleTagManager #PrestaShopSEO #EcommerceAnalytics #WebsiteTraffic #ConversionTracking #EcommerceMarketing #OnlineStore

Official Resources

  1. Google Analytics – Set Up GA4
  2. PrestaShop Official Google Analytics Module
  3. Google Analytics – eCommerce Events
  4. Google Analytics Tracking Troubleshooting

Suggested featured image: A PrestaShop online store displayed alongside a Google Analytics 4 dashboard, showing website visitors, traffic sources, product performance, and eCommerce sales reports.

About zohaibk

We develop useful addons for #E-Commerce and #CRM software to provide extra features.#PrestaShop,#Magento,#SugarCRM,#Vtiger & #Android #apps
View all posts by zohaibk →