Has anyone added Google Anaytics Ecommerce Tracking?
http://code.google.com/apis/analytics/docs/tracking/gaTrackingEcommerce.html
If so, please can you post the code.
Thanks,
Jules
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.
Moderators: martimiz, Nicolaas, Sean, Ed, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba
Has anyone added Google Anaytics Ecommerce Tracking?
http://code.google.com/apis/analytics/docs/tracking/gaTrackingEcommerce.html
If so, please can you post the code.
Thanks,
Jules
FYI: this is also an issue on the issue tracker - http://code.google.com/p/silverstripe-ecommerce/issues/detail?id=48
It'll be very useful, once implemented :) I can provide SVN access if someone wants to commit their code to an ecommerce sub-module.
If I've understood their documentation correctly, it should just be a matter of including some JavaScript on the final order page.
Perhaps the implementation could also optionally include event tracking ... ie 'added x to cart' , 'removed x from cart'.
> it should just be a matter of including some JavaScript on the final order page.
Yes, including descriptions & values of order items & modifiers (tax, delivery, etc) and totals. This should be quite easy as final values for modifiers have been saved to the database by this stage, so modifiers themselves don't need to be consulted, and their code doesn't need to be adapted.
Does the order page distinguish between when it's loaded as order confirmation, and when it's loaded from the account page? They are one and the same, right? We don't want Analytics to be told there's another new order every time someone views an old order.
There's a flag on the Order record for 'ReceiptSent' to avoid sending duplicate emails. Maybe something similar is required to prevent double counting in Analytics. Or maybe just one general purpose order status flag would be better.