Google Ecommerce Tracking for Magento

Google Ecommerce Tracking for Magento

August 24, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Google Ecommerce Tracking for Magento

Solving Google Ecommerce Tracking Issues for Magento

If you’re facing persistent issues with Google’s eCommerce tracking not working consistently for your Magento store, don’t worry - you’re not alone! Let’s dive into some common problems and their solutions.

Ensuring the Basics are Covered

First things first - make sure you have enabled eCommerce tracking in Google Analytics. Go to Admin > View settings > E-commerce Settings. Ensure that it is switched on here.

Next, double-check that your Universal Analytics code (UA) has been correctly inserted into the Google API section of the Magento admin panel. A typo or incorrect format can easily lead to the script not firing as expected.

Debugging the Success Page

The success page is where Magento should be sending eCommerce data to Google Analytics. Use a tool like browser developer tools or Google Chrome’s Analytics debugger extension to check if the beacon is being fired here.

If the beacon appears but some orders aren’t being sent, let’s troubleshoot further:

Check for JavaScript Errors

Open your browser console (right-click on the page and select “Inspect” > Console) and look for any errors. Warnings can sometimes stop scripts from running fully.

Verify Order Data

Ensure that all necessary order data is present in the success page code. Magento should be sending details like transaction ID, revenue, tax, shipping costs, etc. Check if this information is being properly structured before it’s sent to Google Analytics.

Handling Third-Party Payment Gateways

If you’re using a third-party payment gateway (like SagePay), ensure that their integration with Magento is up-to-date and doesn’t interfere with the eCommerce tracking script.

You can temporarily switch to a built-in payment method like PayPal Standard or Cash on Delivery to see if the issue persists. This will help rule out any conflicts with your current payment provider.

Reviewing Magento’s Core Settings

Take a look at the following settings in System > Configuration > Sales > Google API:

  1. Google Analytics (Active): Ensure it is set to “Yes”.
  2. Profile ID: Check if this corresponds to your actual GA property ID.
  3. Enable Ecommerce Features: Set to “Yes”.

Testing with Alternative Tools

If you’re also using Jiraffe for real-time analytics, the issue might lie in their integration rather than Magento’s core mechanics.

Try temporarily disabling all third-party extensions and see if the problem occurs then. If not, re-enable them one by one while monitoring your console to identify any potential conflicts.

Conclusion: Persistent Issues Require Advanced Debugging

While the above steps should solve most basic eCommerce tracking issues, some problems require more advanced debugging techniques:

  1. Enable Magento’s error reporting in index.php.
  2. Check the system log and exception files for any relevant errors or warnings.
  3. Review your server configuration to ensure it supports all required PHP functions.

Remember, Magento is a complex platform with many moving parts. It’s not uncommon for seemingly unrelated factors (like CSS issues) to cause JavaScript scripts like Google Analytics to fail.

If you’re still having difficulties after trying these steps, consider reaching out to an experienced Magento developer or contacting official support channels. They have access to more advanced tools and knowledge bases that can help pinpoint stubborn problems.

For best practices in Magento development and troubleshooting techniques, check out our comprehensive guides on Laravel Company. We’ve helped countless businesses optimize their eCommerce sites for better analytics tracking!

API Extensions Admin Configuration

Our network