Re: [RFC] PHP.net analytics

From: Date: Fri, 01 Nov 2024 23:54:50 +0000
Subject: Re: [RFC] PHP.net analytics
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-125894@lists.php.net to get a copy of this message
On 11/2/24 12:10 AM, Bob Weinand wrote:
     What percentage of users get to the docs through direct links vs the home page
That's something you can generally infer from server logs - was the home page accessed from that IP right before another page was opened? It's not as accurate, but for a general understanding of orders of magnitude it's good enough.
Even better: If we're talking about internal navigation you can check the referrer header and know for sure, since the docs don't add rel=noreferrer on links or anything. You shouldn't need server logs _or_ client side JS. A lot of this tracking stuff could be done by just putting down a proxy or shim that checks request headers. It looks like matomo offers exactly this via matomo/matomo-php-tracker. I second bob's general sentiment: There's no need for client side tracking.

« previous php.internals (#125894) next »