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 Analytics com erro
 
Mari.amado
Jr. Member
 
Avatar
Total Posts:  9
Joined:  2009-03-05
 

Quando habilito o google analytics em meu site dá erro, e as páginas nãoabrem. Alguém já teve este problema e conseguiu resolver?
Uso a Versão do Magento: 1.3.2.1

 
Magento Community Magento Community
Magento Community
Magento Community
 
Mari.amado
Jr. Member
 
Avatar
Total Posts:  9
Joined:  2009-03-05
 

Resolvido!

No arquivo Ga.php troquei o código

<!-- BEGIN GOOGLE ANALYTICS CODE -->
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol)
? “https://ssl.” : “http://www.");
[removed]("\<script src=\’” + gaJsHost
+ “google-analytics.com/ga.js\’ type=\’text/javascript\’>\<\/script>” );
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker(”’ . $this->getAccount() . ‘“);
pageTracker._initData();
pageTracker._trackPageview(”’ . $this->getPageName() . ‘“);
</script>
<!-- END GOOGLE ANALYTICS CODE -->

Por este:

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? “https://ssl.” : “http://www.");
[removed](unescape("&#x3C;script src=\’” + gaJsHost + “google-analytics.com/ga.js\’ type=\’text/javascript\’&#x3E;&#x3C;/script&#x3E;"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-xxxxx-x");
pageTracker._trackPageview();
} catch(err) {}</script>

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