Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125921 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id E124A1A00BD for ; Thu, 7 Nov 2024 15:42:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1730994313; bh=kmyR7fYGrSPB3d+tPQ3P1yPiXSotsteYZ6GB5F3xWMw=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=SJAwzPYbe7XeoSSp7mljXDtGmQvwIipZG+BiY3hZqdwS49Ij8gdjyfYN0AAf47H+L kH+8rjUf6/vEMyvk3kwAhMiomKsBAqe00MS6ppdiKNmhgdqn2GdOkBWqbd2fXWL/l8 rNHDVO+7pZjYrODYs9cyDZj5g1Dp+4RWaofre98wRm7RzgKb+y4TRgDYPcco3EDfst FvV3EDebEosa//W0jp/JUNtwvMfodty3nxnQ+5o6zewrAyKsDSwR1wBxgkPxkG0KUU HrVEjYT4N7DqVw4HITmGijFF/EgmUNEhy1HxhDB2AAULiVHBGw9ky7sBy/WIEiF/Vu xImOwrMiQJK1A== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 571E6180087 for ; Thu, 7 Nov 2024 15:45:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: *** X-Spam-Status: No, score=3.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_PASS, SPF_SOFTFAIL autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from xdebug.org (xdebug.org [82.113.146.227]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 7 Nov 2024 15:45:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1730994157; bh=kmyR7fYGrSPB3d+tPQ3P1yPiXSotsteYZ6GB5F3xWMw=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=EcSC4dRHaRXb83Txy/6DUShjvw7NqQUxuvJH0KJNnjVvADzj/hk4dcaGv5HDdyDvV b8B8WwKe0X9/kLLlQ20Qk8b94jHNL5C4KSjBEcqTi/NNuJJodFVHgkPichliPtgzG7 L7z6/qnAm03lUaPRpr7kXoBSd41gyT19rP6wY5tz8H5wAm4HS2a3v194KosI1jZM2v N4OzfbWxk+q6Xz/b57jBUK9bfl+PrCejLNGrmxN3TRgsL1mqI/FpxaYZoHmEgPWR+2 PqBgBpDaajx/tWbobIpHQ2xfCv2ln1FcVRQc5zY2XW9aD6Tc3pUUJuDwEXjmwwvAjP p6KOmqgditKiQ== Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id C6F7A10C03E; Thu, 07 Nov 2024 15:42:37 +0000 (GMT) Date: Thu, 7 Nov 2024 15:42:37 +0000 (GMT) To: Jonathan Vollebregt cc: internals@lists.php.net Subject: Re: [PHP-DEV] [RFC] PHP.net analytics In-Reply-To: <2011a2ec-e7e1-41b3-b429-8b39b5437355@jnvsor.net> Message-ID: <44469339-a7b9-3e7d-1b53-489c6de1b0c8@php.net> References: <55320aad-758a-4d06-b1bd-3eac2b5a5f71@app.fastmail.com> <2011a2ec-e7e1-41b3-b429-8b39b5437355@jnvsor.net> Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII From: derick@php.net (Derick Rethans) On Sat, 2 Nov 2024, Jonathan Vollebregt wrote: > 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. As the person that will end up having to maintain this, I wasn't aware that https://github.com/matomo-org/matomo-php-tracker is pretty much the same as the JS tracker. And as it does HTTPS requests from the PHP application to Matomo, instead of a JS tracker, this seems like a better solution, which is also more customisable. cheers, Derick -- https://derickrethans.nl | https://xdebug.org | https://dram.io Author of Xdebug. Like it? Consider supporting me: https://xdebug.org/support mastodon: @derickr@phpc.social @xdebug@phpc.social