EC-CUBE2.13にてGoogle アナリティクスのEコマース設定を行っています
下記のサイトをみながらチャレンジしているのですが、どういった部分が間違っているのでしょうか?
http://al-lucky.hatenablog.com/entry/2015/08/21/163215赤の部分が追記部分です
<?php
/*
* This file is part of EC-CUBE
*
* Copyright(c) 2000-2013 LOCKON CO.,LTD. All Rights Reserved.
*
* http://www.lockon.co.jp/
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
require_once CLASS_EX_REALDIR . 'page_extends/LC_Page_Ex.php';
/**
* ご注文完了 のページクラス.
*
* @package Page
* @author LOCKON CO.,LTD.
* @version $Id:LC_Page_Shopping_Complete.php 15532 2007-08-31 14:39:46Z nanasess $
*/
class LC_Page_Shopping_Complete extends LC_Page_Ex
{
/**
* Page を初期化する.
*
* @return void
*/
public function init()
{
parent::init();
$this->tpl_title = 'ご注文完了';
}
/**
* Page のプロセス.
*
* @return void
*/
public function process()
{
parent::process();
$this->action();
$this->sendResponse();
// プラグインなどで order_id を取得する場合があるため, ここで unset する
unset($_SESSION['order_id']);
}
public function action()
{
$this->arrInfo = SC_Helper_DB_Ex::sfGetBasisData();
//コンバージョンタグ対応用
if (is_numeric($_SESSION['order_id'])) {
$objPurchase = new SC_Helper_Purchase_Ex();
$this->arrOrder = $objPurchase->getOrder($_SESSION['order_id']);
$this->arrOrderDetail = $objPurchase->getOrderDetail($_SESSION['order_id']);
}
/**
* Page のアクション.
*
* @return void
*/
public function action()
{
$this->arrInfo = SC_Helper_DB_Ex::sfGetBasisData();
// 注文IDを取得
$this->order_id = $_SESSION['order_id'];
// 小計価格(税抜)の取得
$objQuery = SC_Query::getSingletonInstance();
$col = 'subtotal, tax';
$table = 'dtb_order';
$where = 'order_id = ?';
$arrval = array($this->order_id);
$arrRet = $objQuery->select($col, $table, $where, $arrval);
$this->subtotal_exctax = $arrRet[0]['subtotal'] - $arrRet[0]['tax'];
unset($_SESSION['order_id']);
}
/**
* 決済モジュールから遷移する場合があるため, トークンチェックしない.
*/
public function doValidToken()
{
// nothing.
}
}
----------------