谷歌分析的Magento单页签出目标漏斗

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了谷歌分析的Magento单页签出目标漏斗相关的知识,希望对你有一定的参考价值。

Fooman GoogleAnalyticsPlus:
http://www.magentocommerce.com/magento-connect/fooman-googleanalyticsplus.html

The key to seeing the different steps in your checkout is ensuring a page view is triggered each time one of the sections of the checkout is loaded. To do this we need to edit opcheckout.js this file should be in skinfrontenddefaultYOURTHEMEjs if not then copy it there from skinfrontendasedefaultjs

Within this file search for “gotoSection: function(section)” to find the function we are interested in amending and add in the lines of code shown below.

If you are using the old analytics code then you will need to remove the slashes from the line “//pageTracker….” and comment out (add a double slash to the beginning of) the line beginning “_gaq.push…”.

Google Analytic Gaol Setup
Goal Type: URL Destination
Match Type: Head Match
Goal URL: /checkout/onepage/success/

Step 1
URL: /checkout/onepage/
Name: Login or Register
Step 2
URL: /checkout/onepage/billing/
Name: Billing Address
Step 3
URL: /checkout/onepage/shipping/
Name: Shipping Address
Step 4
URL: /checkout/onepage/shipping_method/
Name: Shipping Method
Step 5
URL: /checkout/onepage/payment/
Name: Payment Details
Step 6
URL: /checkout/onepage/review/
Name: Confirmation
  1. gotoSection: function(section)
  2. {
  3. try {
  4. // Old Analytics code
  5. //pageTracker._trackPageview('checkout/onepage/'+section);
  6. // Newer Asynchronous Analytics code
  7. _gaq.push(['_trackPageview', 'checkout/onepage/'+section]);
  8. } catch(err) { }
  9.  
  10. section = $('opc-'+section);
  11. section.addClassName('allow');
  12. this.accordion.openSection(section);
  13.  
  14. },

以上是关于谷歌分析的Magento单页签出目标漏斗的主要内容,如果未能解决你的问题,请参考以下文章

我可以使用谷歌分析漏斗来跟踪注册过程

Magento签出页-添加自定义字段

Magento Onepage签出-删除登录步骤

Magento谷歌分析设置

漏斗思维

从Magento中的签出会话获取最后一个订单详细信息