Help is on the way!

Browse our Documentation, Search the Knowledge Base, Still need help? Send us a support ticket.

JoomlaXTC Google Analytics for Virtuemart
Installation guide for Joomla 1.5 systems





Apendix A: Creating a module position

This module is the easiest way of enabling Google Analytics ecommerce tracking on your Joomla!/Virtuemart shop.

Current features are:
  • Selectable Google Analytics web property ID.

  • Selectable tracking of Virtuemart pages.

  • Selectable Userid tracking.

  • Optional Virtuemart transaction detail tracking for ecommerce purposes.

  • Can use up to two possible checkout goal pages.

  • Affiliation tag for Virtuemart transactions.

  • Use legacy urchin.js or new ga.js Google Analytics code.

  • Easy debug of your checkout process.


It is assumed you already have a valid Google Analytics account with a website profile defined, and your Virtuemart shop is up and running under Joomla! 1.5 system.


This is a standard Joomla! module, please install it using the Joomla! administration process to add modules.


Once installed, you must configure the module. Please take a look at the different parameters and change according to your needs:


The module title. There is no need to change this.

Show title

Set this to "No" to hide module contents.


The module position where to place the module. Usually you can use "debug" position, if you want to add a new module position please read appendix "A" to do so.

Module Order

The module placement among other modules. Put the module at the bottom of the list.

Access Level

Set as "public" to track all kinds of users.


Set to 'Yes' to publish the module on your frontpage.

Menu Item Link

Must select "All" to track every area of your site.

Web property ID

Enter the web property ID assigned to your site in Google Analytics.

Virtuemart trace

Enables or disables Virtuemart page posting to Google Analytics. This allows you to track checkout and other activities.

User tracking

If enabled, user name will be tracked using __utmSetVar() function.

Product tracking

If enabled, product and order information from Virtuemart transactions will be posted to google for ecommerce tracking.

Checkout goal URL

The last page of the checkout process. Usually "checkout.thankyou".

Alternate goal URL

An alternate last page of the checkout process, usually "checkout.results", used with 3rd party payment methods.


Each ecommerce transaction can be identified with an affiliation code of your preference.

Use GA Legacy code

On December 2007, Google introduced a new tracking code named ga.js which is incompatible with the previous version known as urchin.js. This parameter enables/disables the use of old version. Click here for more information.


If enabled, the page name will be shown on the module position. This will help you define what are the steps to use for funnel setup.

When all parameters are set, click on the save icon at the top-right to save the parameter values and publish the module.


When in use, the module will report the page name where the user is located back to Google Analytics by default. When the user is in the Virtuemart component, a custom Virtuemart page name will be reported if its tracing is enabled.

In order to track the checkout process of Virtuemart in Google Analytics, you need to know what are the pages involved. As an example, this is the list of default Virtuemart pages as reported by the module:


The shop cart contents. User can keep buying or do a checkout from here.


First step of checkout, address confirmation.


Second step of checkout, shipment method selection.


Third step of checkout, Payment method confirmation.


Final step of checkout, order confirmation.


Checkout goal page, thank you notification.


Alternate goal page (when using PayPal or other services).

Depending on your Virtuemart checkout configuration, some steps might not be required. In that case, you can turn on the "Debug" option, then perform a checkout yourself to find out what the page names are - as reported by the module. Once you have identified all steps required, the debug option can be turned off.

Tips for Funnel setup

When setting up your checkout funnel at google analytics, try the following options:

Match Type:

Head Match

Goal url:


Case Sensitive:


Apendix A: Creating a module position

Most Joomla! templates have a "Debug" module position at the bottom of the frontpage where you can locate this module. If this is not the case, or you want to use a special position for the module, please follow these instructions to add a new position (they might not apply if you have a custom template installed). In this example, the new position is named "vmga":

  1. Go to your site's administration panel.

  2. Navigate to the 'Extensions/Template Manager' menu.

  3. Locate your current template and click on its name.

  4. Click on "Edit HTML" button on top.

  5. Locate the </body> tag at the bottom.

  6. Change the line so it now looks exactly like this:

    <jdoc:include type="modules" name="vmga" /></body>

  7. Save your index.php to apply the changes.

Now that you have setup the new "vmga" module position, you can go to the GoogleAnalytics module properties page and select "vmga" as its module position.

This Module and Guide is copyright 2006,2007,2008,2009,2010 Monev Software LLC

Didn't find an Answer?

If you didn't find the answer you were looking for from the links above.


Didn't find an Answer?

If you didn't find the answer you were looking for from the links above.