質問 > その他 > EC-CUBE2.11.4 Google Analytics eコマースタグで注文情報の取得ができない |
その他
フラット表示 | 前のトピック | 次のトピック |
投稿者 | スレッド |
---|---|
physics |
投稿日時: 2013/1/15 19:54
対応状況: −−−
|
新米 登録日: 2012/12/13 居住地: 投稿: 7 |
EC-CUBE2.11.4 Google Analytics eコマースタグで注文情報の取得ができない お世話になります
http://xoops.ec-cube.net/modules/newbb/viewtopic.php?topic_id=8266&forum=10&post_id=40024#forumpost40024 http://blog.nakachi.me/2011/12/ec-cube2-11%E7%B3%BB%E3%81%A7google-analytics%E3%81%AEe%E3%82%B3%E3%83%9E%E3%83%BC%E3%82%B9%E3%83%88%E3%83%A9%E3%83%83%E3%82%AD%E3%83%B3%E3%82%B0%E3%82%92%E8%A1%8C%E3%81%86%E6%96%B9%E6%B3%95/ 等を参考に注文情報の抽出を試みてるのですが上手くいきません。 設定した内容は以下のとおりです。 eccube-2.11.4\data\class\pages\shopping\LC_Page_Shopping_Complete.phpのactionに $objPurchase = new SC_Helper_Purchase(); $arrOrder = $objPurchase->getOrder($_SESSION['order_id']); $arrOrderDetail = $objPurchase->getOrderDetail($_SESSION['order_id']); $this->arrGAOrder = $arrOrder; $this->arrGAOrderDetail = $arrOrderDetail; \data\Smarty\templates\default\site_frameに <!--{if $smarty.server.PHP_SELF == "`$smarty.const.ROOT_URLPATH`shopping/complete.php"}--> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-***']); _gaq.push(['_trackPageview']); _gaq.push(['_addTrans', '<!--{$arrGAOrder.order_id}-->', // order ID - Required!! '', // affiliation or store name '<!--{$arrGAOrder.total}-->', // total - Required!! '', // tax '', // shipping '<!--{$arrGAOrder.order_addr01}-->', // state or province '<!--{$arrPref[$arrGAOrder.order_pref]}-->', // city '', // country ]); <!--{section name=cnt loop=$arrGAOrderDetail}--> _gaq.push(['_addItem', '<!--{$arrGAOrder.order_id}-->', // order ID - Required!! '<!--{$arrGAOrderDetail[cnt].product_id}-->', // SKU/code - Required!! '<!--{$arrGAOrderDetail[cnt].product_name}-->', // product name '<!--{$arrGAOrderDetail[cnt].classcategory_name1}-->', // category or variation '<!--{$arrGAOrderDetail[cnt].price}-->', // unit price - Required!! '<!--{$arrGAOrderDetail[cnt].quantity}-->' // quantity - Required!! ]); <!--{/section}--> _gaq.push(['_trackTrans']); //submits transaction to the Analytics servers (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> <!--{else}--> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-***']); _gaq.push(['_trackPageview']); (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> <!--{/if}--> を入力しています。 またanalytics側のeコマースの設定もチェック済みですが上記の内容では抽出出来ませんでした ご教授頂ければと思います。 「UA-***」には個人のプロパティIDを入力してます。 |
フラット表示 | 前のトピック | 次のトピック |
題名 | 投稿者 | 日時 |
---|---|---|
» EC-CUBE2.11.4 Google Analytics eコマースタグで注文情報の取得ができない | physics | 2013/1/15 19:54 |
Re: EC-CUBE2.11.4 Google Analytics eコマースタグで注文情報の取得ができない | dkazuto | 2013/1/15 21:53 |
Re: EC-CUBE2.11.4 Google Analytics eコマースタグで注文情報の取得ができない | physics | 2013/1/19 13:27 |
Re: EC-CUBE2.11.4 Google Analytics eコマースタグで注文情報の取得ができない | dkazuto | 2013/1/22 0:08 |
Re: EC-CUBE2.11.4 Google Analytics eコマースタグで注文情報の取得ができない | physics | 2013/1/25 11:50 |
Re: EC-CUBE2.11.4 Google Analytics eコマースタグで注文情報の取得ができない | nanasess | 2013/1/25 13:15 |
Re: EC-CUBE2.11.4 Google Analytics eコマースタグで注文情報の取得ができない | physics | 2013/1/25 13:46 |
Re: EC-CUBE2.11.4 Google Analytics eコマースタグで注文情報の取得ができない | nanasess | 2013/1/25 14:43 |
Re: EC-CUBE2.11.4 Google Analytics eコマースタグで注文情報の取得ができない | physics | 2013/1/28 17:50 |