4

I've resolved all issues with sending data, but receive issue when trying to refund.

I've sent this array to measurement protocol :

        'v' => '1',
        'tid' => $tid,
        'cid' => $cid,
        'ti' => '12345', // this transaction exist in google
        't' => 'event',
        'ec'=> 'Ecommerce',
        'ea'=> 'Refund',
        'ni'=> '1',
        'pa'=> 'refund'

But without any result. So my question is what's wrong? Maybe I need some additional call to measurement system, please advice. BTW Google hit debugger return 'valid'.

4

2 回答 2

1

如需全额退款,您需要发送以下信息

'v'='1',
't'='pageview',
'tid'='UA-3333333-8', 
'cid'='382537459.1455511043',
'pa'='refund',
'ti'='000000038',
'dp'='admin/order/refund'

对于部分退款,您需要发送

'v'='1',
't'='pageview',
'tid'='UA-3333333-8', 
'cid'='382537459.1455511043',
'pa'='refund',
'ti'='000000038',
'dp'='admin/order/refund',
'pr1id' => '24-WB04',
'pr1qt' => 1

希望能帮助到你!

于 2016-02-29T20:51:10.113 回答
0

我以这种方式解决了它:

我已经发送了负值的新交易

            'v' => '1',
            'tid' => $tid,
            'cid' => $cid,
            'ti' => $order,
            't' => 'transaction',
            'tr' => '-'.$order_total

然后发送负值事件

            'v' => '1',
            'tid' => $tid,
            'cid' => $cid,
            'ti' => $order,
            't' => 'item',
            'in' => $product['name'],
            'ip' => '-'.$order_total,
            'ic' => $products['sku'],
            'iq' => -1

它有效,交易从谷歌报告中消失,顺便说一句,我还想注意我切换脚本以使用 GET(https://www.google-analytics.com/collect?payload_data&)而不是 POST。

于 2015-10-03T11:36:14.147 回答