Knowledge Base

How to use Google Analytics with OpenCart

This article discusses how to use Google Analytics with your OpenCart site to obtain statistics about visitor traffic.

Using Google Analytics with OpenCart

Google Analytics provides detailed statistics about visitor traffic to your site. To use Google Analytics with OpenCart (or with any other type of site), you must first sign up for a Google Analytics account at http://www.google.com/analytics and obtain a unique Tracking ID.

After you have set up a Google Analytics account and have the Tracking ID for your site, you can configure it for OpenCart. Unlike many other e-commerce and CMS applications, you do not have to install a separate plugin or module to use Google Analytics. OpenCart includes Google Analytics support by default. To enable this feature, follow the appropriate procedure for your version of OpenCart.

OpenCart 2.1

To enable Google Analytics for OpenCart 2.1, follow these steps:

  1. Log in to OpenCart as the administrator.
  2. In the left pane, click the OpenCart - Extensions icon icon, and then click Analytics.
  3. Locate Google Analytics, and then click the Install (OpenCart - Install icon) icon.
  4. Click the Edit (OpenCart - Edit icon) icon.
  5. In the Google Analytics Code text box, type your Google Analytics tracking ID.
  6. In the Status list box, select Enabled.
  7. Click the Save (OpenCart - Save icon) icon.
    It can take up to 24 hours for Google Analytics to change its status from Tracking Not Installed to Receiving Data.
OpenCart 2.0

To enable Google Analytics for OpenCart 2.0, follow these steps:

  1. Log in to OpenCart as the administrator.
  2. In the left pane, click the  OpenCart - Settings icon  icon, and then click Settings.
  3. Select your store, and then click the Edit (OpenCart - Edit icon) icon.
  4. Click the Google tab.
  5. Under Google Analytics, in the Google Analytics Code text box, type your Google Analytics tracking ID.
  6. In the Status list box, select Enabled.
  7. Click the Save (OpenCart - Save icon) icon.
    It can take up to 24 hours for Google Analytics to change its status from Tracking Not Installed to Receiving Data.
OpenCart 1.5

To enable Google Analytics for OpenCart 1.5, follow these steps:

  1. Log in to OpenCart as the administrator.
  2. On the top menu bar, click System, and then click Settings.
  3. Select your store, and then click Edit.
  4. Click the Server tab.
  5. Scroll to the bottom of the page, and then in the Google Analytics Code text box, type your Google Analytics tracking ID.
  6. Click Save.
    It can take up to 24 hours for Google Analytics to change its status from Tracking Not Installed to Receiving Data.

More Information

For more information about Google Analytics, please visit http://www.google.com/analytics.