Google Analytics 4 (GA4) tracking setup for PrestaShop - Step by step guide


Introduction In the modern era of technology, it is crucial to comprehend user behavior and make informed decisions based on data. This is precisely why google analytics has stood the test of time. However, with the introduction of google analytics 4, a whole new realm of advanced analytics is unfolding. By utilizing google analytics 4, you can acquire valuable insights into your website's performance and your visitors' behavior. This comprehensive guide will equip you with the knowledge to install, configure, customize, and fully utilize the features of google analytics 4, enabling you to optimize your e-commerce endeavors. Within this guide, you will discover the step-by-step process of setting up google analytics 4 for PrestaShop 1.7.x and PresaShop 8.x, along with a compelling explanation of why implementing google analytics 4 is of utmost importance.

What is Google Analytics 4 (GA4)?

Google Analytics 4 (commonly referred to as GA4) is the most recent iteration of Google Analytics. It offers a more advanced and intuitive way to collect and analyze data from your website. GA4 uses a new event-based data model and provides deeper insights into user behavior, allowing you to make better-informed decisions.

Why Use Google Analytics 4?

Before we start the installation process, let’s get into why Google Analytics 4 (GA4) for PrestaShop is important. Setting up Google Analytics 4 is important because Google Analytics 4 is one of the most advanced tracking systems out there. It gives you a 360-degree view of your PrestaShop site’s user interactions. it gives you the ability to track and analyze important data about your website’s performance like website traffic, your users’ behavior, your conversion rates, and much more. You can use this data to optimize your store for better performance and a better user experience.

Key Features and Benefits of GA4

GA4 provides a wide range of exciting features and benefits that can enhance your understanding of your website's performance. Some of the key advantages include:

  • Enhanced Cross-Device Tracking: GA4 supports tracking across multiple devices, enabling you to gain a deeper understanding of a user's journey.
  • Deeper Audience Insights: GA4 offers more options for segmenting your audience, allowing you to focus your efforts on the right groups and gain a better understanding of your target audience.
  • Streamlined Event Tracking: GA4's event-based model simplifies the tracking of specific actions and events on your website, making it easier to analyze user behavior.
  • Utilizing Machine Learning: GA4 leverages machine learning to provide predictive analytics, enabling you to anticipate user behavior and make informed decisions.

In summary, GA4 offers a robust and flexible analytics platform that empowers companies to extract valuable insights from their web analytics.

Step-by-Step Guide

1. Create a Google Analytics 4 Property

The first thing you need to do is log in to your google analytics account. Then, click on “Admin,” select “Create Property,” and choose “Web.” Once you’ve done that, you’ll need to follow the steps below to configure your property and create a tracking ID for PrestaShop.

2. Install Google Analytics on Your PrestaShop Store

Next, you'll need to install the Google Analytics tracking code on your PrestaShop store. Access the backend of your PrestaShop store and locate the theme files. Insert the GA4 tracking code snippet provided by Google Analytics just before the closing tag in the theme's header file. Make sure to save your changes.

3. Enable Enhanced Ecommerce Tracking

To access Google Analytics 4’s more advanced tracking capabilities, like Enhanced Ecommerce Tracking, you’ll need to enable it in your property’s settings. You’ll be able to track shopping behaviour, performance of your products, and more inside your PrestoShop store.

4. Set Up Goals and Conversions

Track key PrestaShop actions that show you’ve made progress, like completing a purchase or signing up for a newsletter. Set goals and track conversions using Google Analytics 4 so you can see how these actions affect your store’s performance.

5. Data Analysis and informed decision making

Once you’ve got your GA4 tracking up and running, dive into the data you’ve collected to get actionable insights into how your PrestaShop stores are performing. Learn more about user behavior, sources of traffic, and conversion metrics so you can make better decisions and improve your online presence.


By setting up Google Analytics 4 tracking in your PrestaShop store, you can gain valuable insights that will help you optimize your store, attract more customers, and drive sales. Take the leap towards data-driven decision-making and watch your online business thrive. Harness the power of Google Analytics 4 today!

By adhering to the instructions provided in this manual, you can effortlessly incorporate Google Analytics 4 tracking into your PrestaShop 1.7.x - 8.x.x website, enabling access to a wealth of valuable data that will propel your online business to new heights. Maintain a proactive approach by consistently monitoring and analyzing your GA4 reports, allowing you to make informed decisions based on data and outperform your competitors.


1. Can I use Google Analytics 4 (GA4) with older versions of PrestaShop?

Certainly, you can integrate GA4 with both PrestaShop 1.7.x and 8.x.x versions. GA4 is designed to be compatible with various platforms, including PrestaShop, allowing you to leverage its advanced analytics features regardless of the Prestashop version you are using.

2. Do I need to upgrade from the older version of Google Analytics to GA4?

While GA4 is not mandatory, it is highly recommended to upgrade from the older version. GA4 offers numerous advantages, such as enhanced tracking, more accurate data collection, and improved reporting capabilities. By upgrading to GA4, you can stay up-to-date with the latest analytics tools and maximize the potential of your PrestoShop store.

3. Can I use GA4 alongside the older version of Google Analytics?

Absolutely, you can continue using GA4 alongside the old Universal Analytics version for a certain period of time. This allows for a gradual migration to GA4 while retaining access to the old version's data and reports. However, it is advisable to fully transition to GA4 in order to fully capitalize on its advanced features and capabilities.

4. Are there any additional costs involved in implementing GA4 for my PrestaShop store?

No, there are no extra charges associated with using Google Analytics for PrestaShop. Google Analytics, including GA4, offers free core analytics services. While premium features or Google Analytics premium services may incur additional fees, the basic implementation and usage of GA4 remain free.

Leave a comment

Related Posts