Jump to:

2076 Posts in 857 Topics by 449 members

E-Commerce Modules

SilverStripe Forums » E-Commerce Modules » Google Anaytics Ecommerce Tracking?

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, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba, simon_w

Page: 1
Go to End
Author Topic: 520 Views
  • inCharge
    Avatar
    Community Member
    102 Posts

    Google Anaytics Ecommerce Tracking? Link to this post

    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

  • Jedateach
    Avatar
    Forum Moderator
    227 Posts

    Re: Google Anaytics Ecommerce Tracking? Link to this post

    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'.

  • inCharge
    Avatar
    Community Member
    102 Posts

    Re: Google Anaytics Ecommerce Tracking? Link to this post

    > 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.

    520 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.