Live visitors counter against Real Time Analytics counter

Hi folks,



Comparing with Google Analytics, the number of live visitors differs a lot.



While Mautic’s Dashboard shows 15 visitors online, Google Analitycs show 40 visitors online.



I’ve checked that the tracking pixel is properly configured and it’s working, but in the php error_log I get a lot of warnings like this about visitors:

Code:
[Mon Jul 13 19:26:32 2015] [warn] [client 2.48.45.72] mod_fcgid: can't apply process slot for /var/www/cgi-bin/cgi_wrapper/cgi_wrapper, referer: http://subdomain.domain.com/

Do you think that it has any relationship...?

Thanks

Hi folks,

Comparing with Google Analytics, the number of live visitors differs a lot.

While Mautic’s Dashboard shows 15 visitors online, Google Analitycs show 40 visitors online.

I’ve checked that the tracking pixel is properly configured and it’s working, but in the php error_log I get a lot of warnings like this about visitors:

[Mon Jul 13 19:26:32 2015] [warn] [client 2.48.45.72] mod_fcgid: can't apply process slot for /var/www/cgi-bin/cgi_wrapper/cgi_wrapper, referer: http://subdomain.domain.com/

Do you think that it has any relationship…?

Thanks

Hi Seti. Not sure if the error is related, but I can tell you how the “Online visitors” live count works in Mautic. There is AJAX request every 5 seconds which counts every page hits which are:

  1. created in the last 60 seconds
  2. doesn’t have date left value filled

The source code querying the database is here:
https://github.com/mautic/mautic/blob/staging/app/bundles/PageBundle/Entity/HitRepository.php#L225-258

Not sure how GA is getting their number. In both cases it is only an estimate.