Another great tip is to add a goal page in analytics. That way you can track from which source the purchase was from (referal links, google, facebook etc.)
you don't actually need to add a separate goal page in analytics if you're using the google ecommerce tracking scripts as you can view all the same info e.g. source/medium from the ecommerce transaction report.
Basically your confirmation page should write a script tag out containing the javascript with line order lines and so forth. If you're using razor this is piece of cake to implement. You can copy paste googles example code right into your view/macro and then replace their values with information from your basket. And then you should be good to go.
Make sure to check whether the order already has been tracked. Otherwise you might get some faulty information due to double tracking.
Best regards Martin
EDIT: Forget my post. Appearently the forum chose not to show any posts before I did my post... And now I see the post is very old....
How to setup eCommerce for Analytics?
Guess the headlines says it all.... But I could use some hints on how to setup eCommerce for Google Analytics?
Just to be sure - do you want to track conversion rate, or just add the normal google analytics script to track visitors?
Conversion rate - the script is in place
Great question! Has got me thinking about analytics on a commerce site I am in the middle of building.
I presume you have already seen this?
https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingEcommerce
If not, its a good place to start.
What i have done, is adding a script on the OrderApproved page (the page the user gets redirected to after the payment).
Im pretty sure there must be a better way - but this is the solution im at right now (feel free to make improvement sugestions)
Another great tip is to add a goal page in analytics. That way you can track from which source the purchase was from (referal links, google, facebook etc.)
you don't actually need to add a separate goal page in analytics if you're using the google ecommerce tracking scripts as you can view all the same info e.g. source/medium from the ecommerce transaction report.
hi Thomas,
Google has some nice documentation how to implement their eCommerce tracking. for universal tracking: https://developers.google.com/analytics/devguides/collection/analyticsjs/ecommerce or classic tracking: https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingEcommerce
Basically your confirmation page should write a script tag out containing the javascript with line order lines and so forth. If you're using razor this is piece of cake to implement. You can copy paste googles example code right into your view/macro and then replace their values with information from your basket. And then you should be good to go.
Make sure to check whether the order already has been tracked. Otherwise you might get some faulty information due to double tracking.
Best regards
Martin
EDIT: Forget my post. Appearently the forum chose not to show any posts before I did my post... And now I see the post is very old....
is working on a reply...