Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6998237
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:23:08+00:00 2026-05-27T20:23:08+00:00

After upgrading from 1.4.2 to 1.5.1 my google analytics ecommerce tracking isnt working. Google

  • 0

After upgrading from 1.4.2 to 1.5.1 my google analytics ecommerce tracking isnt working. Google tracks traffic, visitors, even goals… but the whole ecommerce section in google analytics isnt working…

I changed in googleanalytics.xml in my template, as Ive read on some threads here, it didnt change anything.

Then I created ga.php override according to this post: http://magentist.com/magento_help/magento-google-analytics-issues/

and yet, google analytics works, but the ecommerce tracking in analytics doesnt work.

When I make a purchase, source code of my success page gives this kind of code right before the body tag closing:

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

_gaq.push(['_setAccount', 'UA-XXXXXXX-X']);
_gaq.push(['_trackPageview']);

_gaq.push(["_setDomainName", "www.mydomain.comindex.php"]);
_gaq.push(["_setAllowHash", false]);


(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 -->    </div> 

If you notice it, the forward slash is missing before the index.php

_gaq.push(["_setDomainName", "www.mydomain.comindex.php"]); 

I dont know maybe thats the problem, can anyone tell me please how to fix it?

I tried all the solutions I found in google without any success : ((

Here is how function looks like in my ga.php override:

<!-- BEGIN GOOGLE ANALYTICS CODE -->
<script type="text/javascript">
//<![CDATA[
var _gaq = _gaq || [];
' . $this->_getPageTrackingCode($accountId) . '
_gaq.push(["_setDomainName", "' . $this->getDomainName() . '"]);
_gaq.push(["_setAllowHash", false]);
' . $this->_getOrdersTrackingCode() . '

(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 hope there is a solution for this.

Thank you in advance : ))

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T20:23:09+00:00Added an answer on May 27, 2026 at 8:23 pm

    Ok, just in case anyone else will have a problem like mine…

    I tried all the solutions I found online without any luck… Today I just had to install another checkout extension ( I used “One Step Checkout” before and it had problems ) and now google tracks ecommerce transactions too…

    so, if you’ll have a problem like me, make sure the extension doesnt have any problems…

    good luck! : ))

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After upgrading working folder from svn 1.6 to 1.7, all projects are linked to
After upgrading a working project from EF 4.0 to 4.1, I am now receiving
After upgrading from Spring 3.0.0.M4 to 3.0.0.RC1 and Spring Security 3.0.0.M2 to 3.0.0.RC1, I've
After upgrading to ReSharper5 it gives me even more useful tips on code improvements.
I got the Hello, Android program to work after reading the tutorials from Google's
After upgrading from Cake 1.3 to 2.0 I I'm getting missing table errors for
After upgrading from TFS 2008 to 2010 and running crazy having the build to
After upgrading a mysql from 4.1 to 5.6 (with no problems), the problems come
After upgrading to Ruby 1.9.3 (from 1.9.2 using system RVM) on Ubuntu 10.04.3, I
After upgrading from JBoss 4 to JBoss 5, I've noticed the most annoying regression.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.