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

How to put the code from google analytics ecommerce between the <head> </ head>
 
mvleandro
Jr. Member
 
Total Posts:  5
Joined:  2010-03-17
 

Dear,

I have a problem. I am facing a huge gap between the number of conversions recorded by ecommerce analytics and final goal of my funnel.

The Value of the funnel is correct, but what happens is that the code is putting magento ecommerce analytics in a footnote, not the beginning, before being sent to the user, between the <head> </ head >, as Google itself indicates.

In short: My desire is to place the code between the <head> ecommerce </ head> only in the success page of my ecommerce.

Below is code that appears in the file googleanalytics.xml

==================
<layout version=\"0.1.0\">

<!--

Default layout, loads most of the pages

-->

<default>

<!-- Mage_GoogleAnalytics -->

<reference name=\"before_body_end\">

<block type=\"googleanalytics/ga\" name=\"google_analytics\" as=\"google_analytics\" />

</reference>

</default>

</layout>
=============================

Annex, I am sending the Ga.php, which is the file analytics.

Can anyone help me in this issue?

File Attachments
Ga.php  (File Size: 7KB - Downloads: 23)
 
Magento Community Magento Community
Magento Community
Magento Community
 
MagentoReady
Jr. Member
 
Avatar
Total Posts:  19
Joined:  2010-06-03
 

Hi

Just put that into the footer, within your magneto admin.

cheers

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