Hello friends, today I will show you how to add google analytics to opencart 2 version. In my previous blog post I show you the procedure to Add google analytics to opencart 1.5 version. If you already work with OpenCart then you know that OpenCart is a very good eCommerce solution for us. It has many built in features. Click here to get the idea about Opencart features. After build your eCommerce website in OpenCart you want to track your website visitor, what page they view, what product they see etc.
So you want to add google analytics code into your website. Here OpenCart give you an extra feature to add google analytics into your website. You do not need any knowledge about html, css or php not even cpanel. You need to the exact place where you put your google analytics code. In this post I will show you the step by step procedure to add google analytics to opencart 2 version.
Add google analytics to opencart 2 version
Step1: Login into OpenCart dashboard and click Settings menu
At first go to your website admin panel by putting your site name/admin(like www.myonlineshop.com/admin). Now give your admin username and password and click “Login” button. Now you are in website admin panel. Now you see a left panel in your OpenCart admin panel. Mouse over on third(3rd) icon from bottom and click on “settings” menu. Please see the below image.
Step2: Edit your Store
After clicking “settings” menu it will open a page where you can see your store name, your store URL. Beside your store URL click on “Edit” icon under “Action”. This will open another page.
Step3: Select Server tab and put google analytics code
Now you are in site settings page where you see various tabs like “General”, “Store” etc. Click on “Server” tab and scroll down below and you will find “Google Analytics Code” with a text area, put your code and then click “Save” button on top right corner and you are done. Please see the below two image for better understand