バージョン選択

フォーラム

メニュー

オンライン状況

41 人のユーザが現在オンラインです。 (32 人のユーザが フォーラム を参照しています。)
登録ユーザ: 0
ゲスト: 41
もっと...

サイト内検索

質問 > その他 > 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

 



ログイン


EC-CUBE公式 Amazon Payプラグイン

統計情報

総メンバー数は88,801名です
総投稿数は109,972件です

投稿数ランキング

1
seasoft
7367
2
468
3217
3
AMUAMU
2712
4
nanasess
2313
5
umebius
2085
6
yuh
1819
7
h_tanaka
1644
8
red
1570
9
mcontact
1289
10
tsuji
958
11
fukap
907
12
shutta
835
13
tao_s
799
14 ramrun 789
15 karin 689
16 sumida 641
17
homan
633
18 DELIGHT 572
19
patapata
502
20
flealog
485


ネットショップの壺

EC-CUBEインテグレートパートナー

Copyright© EC-CUBE CO.,LTD. All Rights Reserved.