Search code examples
phpgoogle-analyticsmeasurement-protocol

Google Analtyics not registering transactions when using Measurment protocol


I try to send http request to track eCommerce.

I got response http_code=200 but, I can't see any event or transaction.

Code:

$fields_string = '';
    $fields = array(
        'v' => 1,
        'tid' => "UA-xxxxxx-1",
        'cid' => $userid,
        't' => 'transaction',
        'ti' => $transaction_id,
        'tr' => $Transaction_revenue,
        'ts' => $Transaction_shipping,
        'tt' => $tax,
        'cu' =>'EUR'
    );

Hit:

v=1&t=event&tid=UA-xxxxxx-1&cid=555&uid=123&ti=21&tr=20&tt=5&ts=2&pa=purchase&ec=Checkout&ea=Purchase

what could be the problem?

Thanks a lot.


Solution

  • Apparently I cloud not send transaction because my IP was blocked.