Tag Archives: Google Analytics

Installing Google Analytics On Your Magento Stores

Installing Google Analytics is simple, just extract your unique identifier from Google Analytics. The unique identifier for each site can be found next to the URL, like so:

http://www.example.com/   UA-1234567-1

Then go to your admin panel URL and navigate to System -> Configuration -> Google API -> Google Analytics

Or add: /system_config/edit/section/google/ to your admin panel URL.

Remember, you can add different unique tracking identifiers to different stores and store views by selecting the relevant store or view from the dropdown on the left hand side of the configuration panel.

Tracking One Page Checkout Abandonment with Google Analytics, Properly!

Abandonment rates are key in eCommerce but the Magento integration with Google Analytics isn’t ideal, in that there is no funnel that tracks the progress (and therefore the actual point of abandonment) in the onepage checkout process. To remedy this, edit the one page checkout javascript file, located here: /skin/frontend/default/_your_theme_name/js/

As indicated below the edit starts at line 88 (v1.2), replace the whole of the gotoSection function.

88
89
90
91
92
93
94
95
96
97
gotoSection: function(section)
    {
        try {
            pageTracker._trackPageview('/checkout/' + section + '/');
        } catch(err) {}
 
        section = $('opc-'+section);
        section.addClassName('allow');
        this.accordion.openSection(section);
    },

Happy Hunting!