aawnu / php-ga4

PHP Wrapper for Google Analytics 4 with Server Side Tracking

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README _gid cookie question

8ctopus opened this issue · comments

I never get the _gid cookie, does it still exist? If not, we should remove it from the readme

$session = $_COOKIE['_ga'] ?? $_COOKIE['_gid'] ?? $_COOKIE['PHPSESSID'];

I just opened a random website with Analytics and it still sets tha _gid cookie in my browser. It is not officialy mentioned in the Google Cookie's list, but is should be a 24-hour representative cookie where the _ga cookie is a session representative. This way it notice if its a returning user; .