Skip to content

Sends only half Ecommerce transactions #4

Description

@poma

Doesn't seem to work properly and sends only half of data. In javascript everything works fine. I use it like this:

$t = new \Std\GATracker('UA-12345678-1', null, $tr->userId);
$t->send('transaction', array(
  'transactionId' => $tr->id,
  'transactionRevenue' => $tr->price
));

foreach($items as $item) {
    $t->send('item', array(
      'transactionId' => $tr->id,
      'itemName' => $item['name'],
      'itemCode' => $item['id'],
      'itemCategory' => $item['category'],
      'itemPrice' => $item['price'],
      'itemQuantity' => 1
    ));
}

tcpdump shows that all requests are actually sent to analytics server so I don't know what is happening. Any ideas?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions