Elxis CMS Forum

Support => Elxis 4.x/5.x DEV => Topic started by: seadhna on July 21, 2014, 14:46:24

Title: Elxis Site Statistics Vs. Google Analytics?
Post by: seadhna on July 21, 2014, 14:46:24
Hi there,
I notice a large difference in figures for unique visitors to my site if I look at the statistics in Elxis CMS vs. Google Analytics (CMS figures are much higher) - can you advise why this is?
Title: Re: Elxis Site Statistics Vs. Google Analytics?
Post by: datahell on July 21, 2014, 20:09:37
I believe you have placed the google integration code inside your template's index.php file. In this case google will count only those visiting an existing page. Also note that Google statistics use javascript. This means that you have to display the document to work and the visitor should have a javascript enabled browser. Google does not counts web robots/spiders and non-JavaScript browsers. Elxis work on core level, it counts all the visits even if you later see a fatal error.

If, for example, I make a request using CURL in your site, Elxis will detect and count the visit, while google will not.

Code: [Select]
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://www.example.com');
curl_setopt($ch, CURLOPT_USERAGENT, 'Elxis CURL');
$data = curl_exec($ch);

Elxis counter is much more accurate than google because it counts visits on core level before you see the page. This means that it also counts web robots, automated scripts, and requests to error 404 (not found), error 403 (forbidden), etc, pages.
Title: Re: Elxis Site Statistics Vs. Google Analytics?
Post by: seadhna on July 22, 2014, 13:38:48
Thanks very much for explaining!