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.
    modules-headertag
  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.
    OptionDescription
    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?

Login to comment.

Your Opinion Matters

... but we need to know what you're thinking!

I'm John-Paul Briones, your friendly Community Support technician, and I wrote the article you're looking at now. I like to think it's perfect, but I'm sure you have some suggestions. Please, let me know what they are!

Feedback
Your Email Address
Because we'd like to talk with you!

Support Center Search

Current Customers

Email: support@WebHostingHub.com 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.