Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Google Analytics Update
 
existence
Jr. Member
 
Total Posts:  9
Joined:  2007-12-14
 

Hi,
New code is available for google analytics to give advanced features smile

<script type="text/javascript\">
var gaJsHost = (("https:" == document.location.protocol) ? “https://ssl.” : “http://www.");
[removed]("\<script src=’” + gaJsHost + “google-analytics.com/ga.js’ type=’text/javascript’>\<\/script>” );
</script>
<script type="text/javascript\">
var pageTracker = _gat._getTracker("UA-2662593-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>

Cheers

 
Magento Community Magento Community
Magento Community
Magento Community
 
kameko.rouge
Member
 
Total Posts:  58
Joined:  2007-10-11
 

sigh. thanks for the nonvalidating code, google. like we really need another conglomerate to completely ignore standards.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Michae1
Enthusiast
 
Total Posts:  826
Joined:  2007-08-31
 

Hi existence,

We updated Google Analytics code. It will be available in the next release.

Thank you.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Spek
Sr. Member
 
Total Posts:  77
Joined:  2007-11-28
 

Does magento automatically use the analytics transaction feature so we can track our sales? (page 10: http://www.google.com/analytics/InstallingGATrackingCode.pdf)
Or is it currently only tracking visitors?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1770
Joined:  2007-08-07
Los Angeles
 

@Ben Joostens: See app/code/core/Mage/GoogleAnalytics/Block/Ga.php - function getOrderHtml

 
Magento Community Magento Community
Magento Community
Magento Community
 
Spek
Sr. Member
 
Total Posts:  77
Joined:  2007-11-28
 

Ah, beautiful. Can’t wait to start playing around with it.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Loic_LC
Sr. Member
 
Avatar
Total Posts:  194
Joined:  2007-12-19
Paris, France
 

Stupid question : will the transactions be shown on both magento admin interface & google analytic interface ?
I’m already using GA with my current ecart solution, and it could be nice to keep history for comparison purposes.

Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
FOOMAN
Guru
 
Avatar
Total Posts:  669
Joined:  2007-12-13
Auckland, New Zealand
 

Hey Loïc, you’ve probably noticed this yourself transactions will show up in Magento and Google Analytics.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top