PUM_GA::parse_cookie()
Handle the parsing of the _ga cookie or setting it to a unique identifier
Description Description
Source Source
File: classes/GA.php
public static function parse_cookie() { static $cookie = false; if ( ! $cookie && isset( $_COOKIE['_ga'] ) ) { list( $version, $domainDepth, $cid1, $cid2 ) = preg_split( '[\.]', $_COOKIE["_ga"], 4 ); $cookie = array( 'version' => $version, 'domainDepth' => $domainDepth, 'cid' => $cid1 . '.' . $cid2 ); } return $cookie; }
Expand full source code Collapse full source code View on Trac