1.4.2から1.5.1へのアップグレード後、Googleアナリティクスの電子商取引のトラッキングが機能しません。 Googleはトラフィック、訪問者、さらには目標をトラッキングしますが、Googleアナリティクスの全体の電子商取引セクションは機能していません...Magento 1.5.1 CEのGoogle Analytics eコマーストラッキングエラー
私のテンプレートのgoogleanalytics.xmlが変更されました。
その後、私はこの記事によるとga.phpオーバーライドを作成しました:http://magentist.com/magento_help/magento-google-analytics-issues/
、まだ、分析をGoogleが動作しますが、doesntの仕事Analyticsのeコマースの追跡。
私が購入をするとき、私の成功のページのソースコードは、右のbodyタグを閉じる前に、この種のコードを与える:
<!-- 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>
あなたがそれに気付いた場合、スラッシュは、index.phpの前に欠けています
_gaq.push(["_setDomainName", "www.mydomain.comindex.php"]);
私は多分thats問題を知っている、誰かが私にそれを修正する方法を教えてくれますか?
私は任意の成功なしにグーグルで見つかったすべてのソリューションを試してみました:((
ここでは、関数が私のga.phpオーバーライドでどのように見えるかです:
<!-- 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 -->
私はのための解決策があると願っています。これは
事前にありがとうございます:))
ここに誰もいませんか? :(( –