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:
- Visit Google Analytics.
- Sign in using your Google account.
- Click Start Measuring.
- Enter your account name.
- Configure your account data-sharing settings.
- Create a property for your PrestaShop website.
- Enter your website name and select your reporting time zone and currency.
- Choose your business category and business size.
- 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:
- Open your Google Analytics account.
- Go to Admin.
- Under Data collection and modification, select Data Streams.
- Click Add Stream and choose Web.
- Enter your PrestaShop website URL.
- Enter a stream name.
- 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:
- Log in to your PrestaShop Back Office.
- Navigate to Modules → Module Manager.
- Click Upload a Module if you have downloaded the module ZIP file.
- Select the Google Analytics module package.
- Complete the installation.
- Click Configure.
- Enter your Google Analytics identifier (Measurement ID).
- 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:
- Visit Google Tag Manager.
- Create a new account or select an existing account.
- Create a container for your PrestaShop website.
- Select Web as the target platform.
- Copy the GTM installation snippets.
- Add the snippets to the appropriate locations in your PrestaShop theme or through a compatible module.
- Open your GTM workspace.
- Create a Google tag.
- Enter your GA4 Measurement ID.
- Set the trigger to Initialisation or All Pages, as appropriate for your setup.
- 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:
| Event | Purpose |
|---|---|
view_item | Tracks product views |
add_to_cart | Tracks products added to carts |
view_cart | Tracks shopping cart views |
begin_checkout | Tracks checkout starts |
add_payment_info | Tracks payment information submission |
purchase | Tracks completed purchases |
refund | Tracks 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:
- Open your Google Analytics account.
- Select your PrestaShop property.
- Navigate to Reports → Realtime.
- Open your online store in another browser tab.
- Browse different pages and product listings.
- 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:
| Problem | Possible Solution |
|---|---|
| No visitors displayed | Check the Measurement ID |
| Duplicate page views | Remove duplicate tracking codes |
| Purchase events missing | Check eCommerce event configuration |
| Incorrect revenue | Verify purchase value and currency |
| Tracking not working on checkout | Check module compatibility and checkout scripts |
| Data not appearing | Check 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
- Google Analytics – Set Up GA4
- PrestaShop Official Google Analytics Module
- Google Analytics – eCommerce Events
- 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.
