In this tutorial we will show you how to install the Google Analytics module, then add a Google Analytics Tracking code to your osCommerce eshop.

Google analytics is a very powerful and commonly used tool for collecting and analyzing information regarding your website, which can help you target and generate more visitors to your website.

Install the Google Analytics Module:

  1. If you don't have one already, then setup a Google Analytics account.
  2. Login to the osCommerce Admin Panel.
  3. Select Modules from the left menu bar, then under Modules select Header Tags.
  4. Click the +Install Module button on the top right.
  5. You will see Google Analytics listed, select it, then click the +Install Module button again.


How to Add a Google Tracking Code:

  1. Login to the Admin Panel for osCommmerce.
  2. From the menu select Modules, then Header Tags.
  3. Click Google Analytics from the Modules list.
  4. Select the Edit button to the right, and it will drop-down and provide several options.
    Do you want to add Google Analytics to your shop? Select True to add google analytics, or False to disable google analytics. 
    Google Analytics ID Enter your Google tracking code in this field.
    E-commerce tracking True will turn e-commerce tracking on, false will disable this option. 
    Javascript Placement Choose if you want the Google analytics javascript in the Header or Footer. By default google advises to put it in the Header.
    Sort Order You can modify where this module is listed. Lower numbers display on top of the Modules list.
    After making your selections, click the Save button below.

    Congratulations, now you can use Google Analytics to track statistics regarding your website! 
Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Did you find this article helpful?

Post a Comment

Email Address:
Phone Number:

Please note: Your name and comment will be displayed, but we will not show your email address.

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!

Help Center Search

Current Customers

Email: Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.