Has anyone setup Google Analytics E-commerce tracking before?
PermalinkI'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
Regards,
Raymond
So it's not available yet :-(.
Can you tell me when? Caus i really can use it.
Thanks in advance.
Regards,
Raymond
Not too long, I suspect.
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
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]
I'll send you an email.
I hope it gets approved soon
Much appreciated,
Raymond
Thanks for sending the packages.
I'm gonna use it about 1, 2 months in my personal site.
Much appreciated,
Thanks agian.
Raymond
Regards, David
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.
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... )
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.
http://www.concrete5.org/developers/submitting-code/marketplace-sub...
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.