Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

prepare the one page checkout for google analytics
 
andyk123
Member
 
Total Posts:  36
Joined:  2008-02-04
 

Hi everybody,

how can I set up a checkout funnel in google analytics? which urls must I pass to google for the different steps?

greets!

 
Magento Community Magento Community
Magento Community
Magento Community
 
mytechfactory
Sr. Member
 
Avatar
Total Posts:  78
Joined:  2007-12-27
New York, NY
 

http://www.example.com/checkout/cart/
http://www.example.com/checkout/onepage/
http://www.example.com/checkout/onepage/success/

These three funnels, which are very important to track shopping cart abandonment, use ajax technology.
http://www.example.com/checkout/onepage/#billing
http://www.example.com/checkout/onepage/#shipping_method
http://www.example.com/checkout/onepage/#payment

I am not sure if this is integrated yet, but google has a solution to tracking ajax request (http://www.google.com/support/analytics/bin/answer.py?hl=en-au&answer;=55519)

With a typical HTML page, you can use the URL to differentiate between multiple pageviews. But in an AJAX application, a request to the server is made without changing the URL of the page, making it difficult to track.

By calling the _trackPageviewfunction, however, you can assign a page filename to any AJAX event. Typically, this is done as part of the onreadystatechange function, after the data has been returned and all updates to the page have been made. The example below shows one way of doing this:

...

        
http_request.onreadystatechange sendAlert;         http_request.open('GET'urltrue);         http_request.send(null);

}

    
function sendAlert() {

        
if (http_request.readyState == 4) {             if (http_request.status == 200{             alert(http_request.responseText);             pageTracker._trackPageview("/pagefilename1" )}            else {                 alert('Error.');
}
}
}
...

This is definitely an important feature that I hope magento will integrate if not already. Voice your support for this feature request in this forum http://www.magentocommerce.com/boards/viewthread/4834/

 
Magento Community Magento Community
Magento Community
Magento Community
 
andyk123
Member
 
Total Posts:  36
Joined:  2008-02-04
 

ok, but where do I have to implement this?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top