-
Notifications
You must be signed in to change notification settings - Fork 23
Added asynchronous guzzle calls #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
… push your analytics to google without waiting for a response
Hi just to add some details about this pr, |
@krizon Actually after some tests, there is an issue, Google doesn't like this async mode :-/, I don't know why but I need to get the response to get a correct event. that's bad news :( |
@t0k4rt i've just added a test to this branch locally to perform some real async calls to a test GA property and they seem to be logged correctly. What problems where you encountering? |
Hi, |
Just to be sure, you test with --group=internet and you've set the correct tracking_id in the phpunit.xml(.dist)? I'll open a PR which includes test with real calls to GA. Would appreciate it if you would test that PR. |
Actually I tested the lib directly in a piece of code, not with phpunit. |
I launched the new tests, I think I should have two pageview (one without asyn, one with async) , I only get one hit. |
On your side do you see 2 hits ? |
I see: So you're on krizon/async-request and you see the method testAsyncRequestLive? And you are viewing the following report: Real-Time -> Content -> Pageviews (Last 30 min)? |
Yes I'm on the right analytics page, I only see this one : |
I updated my packages in case and restarted my webserver ... still nothing ... |
CentOs with Apache/2.2.15 cURL Information => 7.19.7 |
I'm on curl 7.22.0, I'm going to try with 7.19.7 version just in case. |
Actually this version of the package is not available on ubuntu, I can't try it :-/ |
Hi,
I just added an option to make async calls with guzzle. Should be interesting if you don't want to wait for google to respond !