Crukz Blog

We Help,You Do


Add / apply google analytics code on Prestashop 1.6.x and 1.7.x in 3 Steps

This article shows how to add google analytics or any other javascript code on prestashop

Prestashop is one of most popular e-commerce platform. And all webmaster wish to use google analytics on their page to get user information of website. Google analytics was free and included with old version of prestashop. But, now its not included on code platform. and not also available for free. But, you can do it yourself very easily. Here is the process


Step 1: Go to your cpanel / website hosting

First step is go to your cpanel and website root directory. and find the following file:

/ themes /YOUR THEME / templates / _partials  / head.tpl

Step 2 : Get code from google analytics console

Go to google analytics website and add your domain. Get javascript code from console

Step 3: Add code with {literal} {/literal} tag

Add your javascript code at bottom of head.tpl file with {literal} {/literal} tag shown as below:

{literal} YOUR GOOFLE ANALYTICS CODE {/literal}

Leave a Reply

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