Using Analytics to track Add To Cart
Posted 16 October 2011 - 09:54 PM
I figured I could set up a goal, but since the add to cart button is part of a form and not really a URL, I'm not sure what to put in the goal.
Is there anyway to add some type of tracker or maybe a transparent png or something so that when the button is clicked information is sent to Analytics or something?
Obviously I could put the cart as a goal and then force people to the cart after they add the product, but I don't really want to do that. I just want the add to cart to be an event that can be tracked.
Anyone have any ideas?
Posted 16 October 2011 - 11:07 PM
I don' think Conversion tracking is part of Analytics, but it's been a while since I used this stuff so I don't know for sure what might have changed with Google tracking in general.
Authorized Reseller - Cart licenses: $305 (lowest reseller price)
Custom B2B Development, Consulting and Special Projects (get a quote).
Commercial addons to meet your business and operations needs.
Posted 04 November 2011 - 01:29 AM
To track clicks on add to cart button, add this code to the button
onclick="_gaq.push(['_trackEvent', 'Product Page', 'Add to cart']);"
This sets a category in analytics Content -> Events called Product Page, with an action Add to cart, you can set a category for your Category page add to cart buttons so that in google analytics you can see how many conversions come from the product page vs category page. Funnel views and goals is different. Let me know if you have any questions
Just a note that gaq.push and trackEvents is for the most recent analytics tracking code so make sure to update if you have to otherwise this wont track events
Posted 07 May 2012 - 02:43 AM