GoogleAnalytics

GoogleAnalytics

  • Easily implement the basics
  • Control tags using PHTML code
  • Modular and east to extend

There are numerous Magento implementations for GoogleAnalytics, and this extension is not much different from others. The main difference is that this module makes use of Magento PHTML-templates and XML-layouts to build the various analytics-blocks - making it easier to modify things, but also to integrate Magento GoogleAnalytics into MageBridge/Joomla.

Cost Free
Current version 0.1.2 (Stable)
Requirements Magento CE 1.7 - 1.9
Magento EE 1.10 - 1.14
PHP 5.4.0 or higher
Support Support Forum
License OSL (Open Software License)

Getting started

  • Download this extension-archive and extract all files
  • Upload all files to your Magento root-folder using SSH or FTP
  • Refresh all Magento caching

Why this extension?

The Magento core already includes support for Google Analytics, so why would you need this extension? The reason is: To override PHTML-templates if you want to. The core adds the Google Analytics code on the fly to every page, but in this, it bypasses the regular XML-layout system of creating Magento blocks. This extension changes that: Every single piece of Google Analytics code is applied by using a XML-layout-file that again refers to various PHTML-templates. The block-name to refer to is called ga_script.

If you want to modify the way Google Analytics works, this is the extension you need. Also, because GA is based on Magento blocks, integrating things with our MageBridge integration with Joomla! becomes very easy, thanks to the MageBridge Custom Block module.

Usage

Follow the steps above to get started with this module. Once the module is installed, go to the original GA settings in the Magento backend: System > Configuration > Google API > Google Analytics. Set the option Enabled here to No, but do make sure to enter your GA code in the Account Number box.

Tip

Google Analytics is gradually being replaced with Google Tag Manager. We've got a Magento extension for that as well: Checkout out Google Tag Manager extension.

More extensions

GoogleTranslate

GoogleTranslate

Backend translations for Magento
GooglePlusOne

GooglePlusOne

Add Google+ quickly to your Magento pages
GoogleTagManager

GoogleTagManager

Google Tag Manager offers a central way to manage all your Google tags.