fbpx

⚡⚡ Classy FAQ Module for PrestaShop at $14.50 Only!

Get 50% off Now!
Google Analytics on Prestashop

How to set up Google Analytics on PrestaShop

How to set up Google Analytics on Prestashop, if this question is arises in your mind, then this article is for you. Google Analytics is a free powerful analytic tool that provides detailed statistics about the traffic of your store. It launched in 2005 to provide the user’s activities such as the number of visitors, source of traffic, their duration/engagement with the site, bounce rate, most page visited, and so on. In google analytic tools it has a nice interface to manage the whole thing. It has a dashboard to overview the traffic behavior stats. It is a very user-friendly tool so that users can use this without any complexity. Google Analytics is also integrated with other popular services like Google Ads to observe the performance of advertising campaigns. Google analytics tool is available for Android and IOS mobile application stores.  

Watch Now: How to Set Up Google Analytics on PrestaShop 2022
https://www.youtube.com/watch?v=Wbw8DkRgcRU

Google Analytics on Prestashop

Why do you need Google Analytics on Prestashop? 

  1. To track the daily, monthly, yearly traffics.
  2. To track the customer and to know where are they from.
  3. What content brings more traffic? 
  4. What content/product needs more improvement?
  5. How mobile-friendly of your store? 

And so on. 

To track the daily, monthly, yearly traffics

By Google analytics, you easily can track the daily, monthly, yearly traffic. It allows you to track live traffic. It has so much customization, so you can easily track or find out the visitor’s information from time to time by customization like 4 pm to 5 pm, or 4 am to 5 pm, etc. You can see the traffic stats from when you started your store like the previous year or two years before. 

To track the customer and to know where are they from

It will provide the full demographic information such as traffics, location, network, gender, ages, interests, devices they use to access your store, and so on. 

What content brings more traffic? 

You will get information about the number of visitors for the pages, new visitors, returning visitors, and their time per page. 

What content/product needs more improvement?

Google Analytics will allow you to see which content is the lowest traffic with more bounce rate, which checkout step exactly the customer abandons their shipping carts. So you can easily analyze and improve the content or product.

How mobile-friendly of your store?

Most of the website, mobile user is large compare to the other (laptop/desktop, tab, etc.). You can track the user ratio device-wise by Google Analytics. You can easily track what pages they view, their bounce rate for mobile devices, and the loading speed. A mobile-friendly website is very important for Search engine Optimization. So you can check the loading speed time and optimize the issue. 

How to install Google Analytics on Prestashop?

To install google analytics in the Prestashop store, we will follow two steps: 

  1. Create a google analytics account and pick the gtag.js code. 
  2. Log in to the hosting and past the gtag.js code. 

Create a Google Analytics account and pick a tracking ID

You can create Google Analytics on Prestashop by following this: 

  • Go to https://analytics.google.com/ and start signing up. 
  • Choose the following option: Click sign in if you have already an account. If you don’t have an account, then click Start for free.
  • If you don’t have an account, then click Start measuring. 
Google Analytics on Prestashop

Now you need some information to create the account. So put in the required information and submit it.
When the account is successfully created you will get the analytics dashboard. Now you can create 100 accounts from the google analytics dashboard. To create an account, follow those steps:

Google Analytics on Prestashop
  • Choose settings gear icon > click Admin from an analytics dashboard. 
  • Select “+ Create Account” from the “Account” column. 

Now enter the following information:

  • Account Name (Required)
  • Property name (Required)
  • Reporting time zone (your country time)
  • Currency (your country currency)
  • Industry category
  • Business size
  • Click create and accept the terms by clicking check. 
  • Choose a platform(click web)
  • Website URL and Stream name

Now go to Datastream:

Google Analytics on Prestashop
  • Click Global site tag (gtag.js)
  • Copy the code.

Paste the gtag.js code in hosting 

  • Now log in to the hosting panel where you have installed the Prestashop. 
  • Go to /themes/classic/templates/_partials/header.tpl
  • Edit the header.tpl
Google Analytics on Prestashop
  • Now paste the code.
 {literal} <!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXX"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-XXXXXXXXX');
</script> {/literal}

Note: Don’t remove {literal} {/literal} starting and ending part, If you remove then your site will show the blank white screen or error.  In our test, directly configuring Google analytics was not working, so we suggest you follow from the hosting. 

This is all about Google Analytics on Prestashop, if you have a query or suggestions, let us know by your comment. 

Read More:

How to fix the post image size on Facebook from Prestashop store

Share :

Share on facebook
Share on twitter
Share on linkedin
Share on pinterest

Share Your Valuable Opinions

Boost engagement and Increase Sale

50% OFF

Classy WhatsApp Button PRO

FIRST 30 CUSTOMERS WILL SAVE 50% 😮
WHY NOT YOU? HURRY UP!

LIFE TIME OFFER

Discount is automatically applied to your purchase!