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;
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.