Why isn't my ga.phtml file loading on the live site (but does load on my dev site)?
After upgrading from 1.6 to 1.9, my Magento site has stopped tracking in Google Analytics.
After doing some troubleshooting, I've gotten stuck.
I can prove that the ga.phtml template is not loading, but I cannot sort out why. To be complete, I will provide as much background as seems relevant:
The Analytics is configured properly in System => Configuration => Sales => Google API
The googleanalytics.xml file (located at app/design/frontend/[my_package]/[my_theme]/layout/googleanalytics.xml) is correct (from another answer here: https://magento.stackexchange.com/a/80566/3286)
<!-- Default layout, loads most of the pages --> <default> <!-- Mage_GoogleAnalytics --> <reference name="head" before="-"> <block type="googleanalytics/ga" name="google_analytics" as="google_analytics" template="googleanalytics/ga.phtml" /> </reference> </default>
The ga.phtml template is in the correct location, and I have added an HTML comment that should get rendered any time the template gets loaded. (The template is here: app/design/frontend/[my_package]/[my_theme]/template/ga.phtml)
I have confirmed that all of the theme templates include the relevant
<?php echo $this->getChildHtml('after_body_start') ?>
and<?php echo $this->getChildHtml('before_body_end') ?>
calls.The "Cookie Restriction Mode" is set to "No" (in System => Configuration => General => Web => Session Cookie Management)
Lastly - and this is the real twist - this is all working (and the ga.phtml is loading properly) on my local dev machine, but it does NOT load on the live site.
What am I missing? Is there a configuration or other setting that I need to check for?