Has anyone setup Google Analytics E-commerce tracking before?

Permalink
This is the specific e-commerce GA tracking code (not the standard code) with pulls orders and products/prices into GA and Adwords for ROI calculations.

I'm just not entirely sure how to setup the php to put this info into the GA code - I have templating experience with c5's core commerce but am not sure how to go about retrieving this data from an order.

Here's a complete example showing the info we'd like to pull from the transaction complete page:
<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-XXXXX-X']);
  _gaq.push(['_trackPageview']);
  _gaq.push(['_addTrans',
    '1234',           // transaction ID - required
    'Acme Clothing',  // affiliation or store name
    '11.99',          // total - required
    '1.29',           // tax
    '5',              // shipping
    'San Jose',       // city
    'California',     // state or province
    'USA'             // country
  ]);
   // add item might be called for every item in the shopping cart

Any pointers in the right direction would be much appreciated.

Cheers

Ben

View Replies: View Best Answer
StriderSEO replied on at Permalink Reply
StriderSEO
We have this set up via an in-house plugin, but I believe it required some custom hooks being added.

Let me check with our lead programmer and see if the ecommerce tracking and Google AdWords Conversion tracking could be segmented into a marketplace add-on.
cmscss replied on at Permalink Reply
Awesome mate - thanks heaps!
StriderSEO replied on at Permalink Best Answer Reply
StriderSEO
We'll have this in the PRB as soon as we can.
cmscss replied on at Permalink Reply
Nice one!
alphaplus replied on at Permalink Reply
alphaplus
Is it already available?

Regards,
Raymond
StriderSEO replied on at Permalink Reply
StriderSEO
I've been slacking on this - but thanks for the kick in the butt!
alphaplus replied on at Permalink Reply
alphaplus
whehe, no problem.

So it's not available yet :-(.
Can you tell me when? Caus i really can use it.

Thanks in advance.

Regards,
Raymond
StriderSEO replied on at Permalink Reply
StriderSEO
We're working on packaging it up now, as the code has to be extracted from some larger customizations.

Not too long, I suspect.
alphaplus replied on at Permalink Reply
alphaplus
Great!
rhoenig replied on at Permalink Reply
rhoenig
StriderSEO,

Did you happen to get this package published? I'm looking to do a similar install and looking for some direction on how to implement the code.

Thanks
StriderSEO replied on at Permalink Reply
StriderSEO
I have the package, but haven't been able to muster the time to go through PRB approval yet.

If you want to try it I'll make it available to the three of you gratis to try out. Email me at [email protected]
alphaplus replied on at Permalink Reply
alphaplus
Wow, that will be great!
I'll send you an email.

I hope it gets approved soon

Much appreciated,
Raymond
alphaplus replied on at Permalink Reply
alphaplus
Hi Ryan,

Thanks for sending the packages.
I'm gonna use it about 1, 2 months in my personal site.

Much appreciated,
Thanks agian.

Raymond
photom replied on at Permalink Reply
Hi, what's the status of the Google Analytics e-commerce tracking add-on? I'm interested but I don't see it in the Marketplace.

Regards, David
ideasponge replied on at Permalink Reply
ideasponge
If you don't release this thing soon I'm going to lol. This would be a valuable tool for many sites.
StriderSEO replied on at Permalink Reply
StriderSEO
We had it ready to go, but recent changes to the PRB system made it less appealing to release. Not saying we won't, just that we are decidedly less motivated.

That said: We've also had to revamp the plugin for the newer Universal Analytics code that GA upgraded to. The ecommerce tracking is a little more complicated - but it's working.
JohntheFish replied on at Permalink Reply
JohntheFish
Are you referring to the current PRB? Or the complete lack of anything happening in the PRB we suffered for a few months while awaiting the current PRB?

The current PRB system is faster and more developer friendly than the way it worked before (but then I suppose i would say that)

Franz has announced that the marketplace share will not be changing again, so there is no risk of putting the effort in for a return that subsequently diminishes. (I though it was on this thread, but cannot find it http://www.concrete5.org/community/forums/chat/limit-the-life-of-pu... )
StriderSEO replied on at Permalink Reply
StriderSEO
John,

I'm referring to the PRB going from semi-functional to near-rebellion over changes in commission, etc. (which lead to the months of inactivity). Coming from you, I'm really happy to hear it's working well!

I had been on the PRB for a while, but haven't ever submitted something (we mostly just build internal tools that aren't of appeal to the masses). Given the state of developer unrest the last time I paid attention it didn't seem like it was worth the hassle.

Maybe time to re-evaluate.
JohntheFish replied on at Permalink Reply
JohntheFish
Going way off topic, here is the current PRB membership setup:
http://www.concrete5.org/developers/submitting-code/marketplace-sub...
extranetdevelopment replied on at Permalink Reply
tres