# Live visitors counter against Real Time Analytics counter

**URL:** https://forum.mautic.org/t/live-visitors-counter-against-real-time-analytics-counter/2050
**Category:** Product Support
**Created:** [July 13, 2015, 4:47pm UTC](https://forum.mautic.org/t/live-visitors-counter-against-real-time-analytics-counter/2050 "2015-07-13T16:47:44Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![seti](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/seti/32/6477_2.png) [@seti](https://forum.mautic.org/u/seti)
#### Post date: [July 13, 2015, 4:47pm UTC](https://forum.mautic.org/t/live-visitors-counter-against-real-time-analytics-counter/2050/1 "2015-07-13T16:47:44Z")

</div>

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

---

<div class="post-metadata">

### Author: ![seti](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/seti/32/6477_2.png) [@seti](https://forum.mautic.org/u/seti)
#### Post date: [July 13, 2015, 4:47pm UTC](https://forum.mautic.org/t/live-visitors-counter-against-real-time-analytics-counter/2050/2 "2015-07-13T16:47:44Z")

</div>

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:

```auto
[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

---

<div class="post-metadata">

### Author: ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)
#### Post date: [July 15, 2015, 11:45am UTC](https://forum.mautic.org/t/live-visitors-counter-against-real-time-analytics-counter/2050/3 "2015-07-15T11:45:11Z")

</div>

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](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.

---

<div class="post-metadata">

### Author: ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)
#### Post date: [February 2, 2020, 10:59pm UTC](https://forum.mautic.org/t/live-visitors-counter-against-real-time-analytics-counter/2050/4 "2020-02-02T22:59:10Z")

</div>


