Google Analytics Funnel Visualization for Magento Default Checkout

Find the file opcheckout.js, it should be in your ’skin/{interface}/{theme}/js/’ directory. Open it and look for: [crayon lang=»php»]gotoSection: function(section) { section = $(‹opc-‹+section); section.addClassName(‹allow›); this.accordion.openSection(section); }, [/crayon] Replace with: [crayon lang=»php»]gotoSection: function(section) { section = $(‹opc-‹+section); try { pageTracker._trackPageview(‹/checkout/› + section + ‹/›); } catch(err) {} section.addClassName(‹allow›); this.accordion.openSection(section); },[/crayon] Open your Google Analytics and add […]

Read More