php-ga icon indicating copy to clipboard operation
php-ga copied to clipboard

unable to connect to www.google-analytics.com:80 (Connection timed out)

Open vishnukutti opened this issue 11 years ago • 4 comments

Hi,

I am using PHP-GA client to track my website page views, event and custom variable tracking. it's working good with out any issues for last three months.

but now, some times i got the following error, when i view my tracking url.

fsockopen(): unable to connect to www.google-analytics.com:80 (Connection timed out) (/php-ga-1.1.1/src/GoogleAnalytics/Internals/Request/HttpRequest.php:183)

vishnukutti avatar Oct 16 '13 05:10 vishnukutti

The same error appears with interval every 5-10 seconds: PHP Warning: fsockopen(): unable to connect to www.google-analytics.com:80 (Connection timed out) in /Symfony/vendor/unitedprototype/php-ga/src/UnitedPrototype/GoogleAnalytics/Internals/Request/HttpRequest.php on line 182

Any ideas why does it happen? How can I prevent it? Thanks and greets.

RoMay avatar Jul 31 '14 13:07 RoMay

@RoMay did u find any solution any way to prevent that ? thanks for share it.

maySaghira avatar Dec 10 '14 14:12 maySaghira

Same problem here, without a reproduction recipe unfortunately. Randomly I get this one:

PHP Warning: fsockopen(): unable to connect to www.google-analytics.com:80 (Ein Verbindungsversuch ist fehlgeschlagen, da die Gegenstelle nach einer bestimmten Zeitspanne nicht richtig reagiert hat, oder die hergestellte Verbindung war fehlerhaft, da der verbundene Host nicht reagiert hat.) in GoogleAnalytics/Internals/Request/HttpRequest.php on line 182

ansgarbecker avatar Feb 21 '17 18:02 ansgarbecker

Any news on this, it happens from time to time on our side.

ghost avatar Nov 24 '17 13:11 ghost