google chrome 调试器在以下 GA 电子商务跟踪代码中显示 SyntaxError: Unexpected Identifier:
<?php
if($this->tx_id == true && $this->rd['total'] == true) {
?>
_gaq.push(['_addTrans',
<?=$this->tx_id ?>,
'',
<?=$this->rd['total']?>,
'',
'',
'',
'',
''
]);
<!------Items purchased------>
<?php
foreach($this->dd as $sku=>$val) {
$i++;
$product_title= $this->pp[$sku]['title'];
$qty = $val['pt']['qty'];
?>
_gaq.push(['_addItem',
<?= $this->tx_id ?>,
<?= $sku ?>,
<?= $this->pp[$sku]['title'] ?>,
'',
<?= $this->pp[$sku]['price']?>,
<?= $qty ?>
]);
<?php
}
?>
_gaq.push(['_trackTrans']);
<?php
}
?>
你能帮忙吗?