8ctopus / php-ga-measurement-protocol

Send data to Google Analytics from the server using PHP. Implements GA measurement protocol.
MIT License
3 stars 1 forks source link

Incompatible with guzzlehttp/promises ^2.0 #1

Open enrise-mbraam opened 1 year ago

enrise-mbraam commented 1 year ago

https://github.com/8ctopus/php-ga-measurement-protocol/blob/master/src/Network/HttpClient.php#L51

Line 51 in src/Network/HttpClient.php calls unwrap(). This method is removed in the PromiseInterface of guzzlehttp/promises v2.

There are two ways out:

  1. Requireguzzlehttp/promises ^1.5

  2. Apply this fix. https://github.com/theiconic/php-ga-measurement-protocol/issues/109#issuecomment-1590153733

8ctopus commented 11 months ago

I'm terribly sorry, I somehow missed the notification that you opened an issue. The library has become useless as universal analytics data collection has been stopped by google. Let me know if you still need the fix applied.