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 Analytic not tracking eCommerce sales
 
amardeeprai
Jr. Member
 
Total Posts:  3
Joined:  2012-09-24
 

Hi Everyone,

I have enabled the eCommerce option in my Google Analytics account and added my tracking codes to the configuration section in the Magento admin menus, however the analytics are not coming through to my Analytics account.

I have checked everything I can think of, but nothing has seemed to resolve the problem yet.

I have checked the source code of all the pages from adding to cart to the success page once the transaction is completed, but there is no _addItem(), _addTrans(), or _trackTrans() parameters in the Google Analytic code. The only thing that is shown is:

<!-- BEGIN GOOGLE ANALYTICS CODEs -->
<script type=\\\"text/javascript\\\">
//<![CDATA[
var _gaq = _gaq || [];

_gaq.push([\\\’_setAccount\\\’, \\\’XX-XXXXXXXX-X\\\’]);
_gaq.push([\\\’_trackPageview\\\’]);

(function() {
var ga = document.createElement(\\\’script\\\’); ga.type = \\\’text/javascript\\\’; ga.async = true;
ga.src = (\\\’https:\\\’ == document.location.protocol ? \\\’https://ssl\\\’ : \\\’http://www\\\’) + \\\’.google-analytics.com/ga.js\\\’;
var s = document.getElementsByTagName(\\\’script\\\’)[0]; s.parentNode.insertBefore(ga, s);
})();

//]]>
</script>
<!-- END GOOGLE ANALYTICS CODE -->

I have checked my app/code/core/Mage/GoogleAnalytics/Block/Ga.php file and everything seems to be fine, but still no eCommerce tracking. I also installed Magento from the most recent release, so this isn\\\’t an update problem.

Has anyone else had this problem, or been able to solve this issue?

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