RiTurban‘sサイト解析ブログ

GoogleAnalyticsとWebSiteOptimizerのCookieについて

2009年09月08日

特にGoogleウェブサイトオプティマイザーですが、クッキーを削除したいってことがあります。

なぜなら、A/Bスプリットテストなんかをやっている時に、もう一個のページを、自分のブラウザで普通にみたくなったりするからです。
(かなりマニアックなシーンですが、IEバージョンを複数テストしている人ならわかると思います^^;)


基本的に、WebSiteOptimizerもAnalyticsも、ga.jsファイルを共有して使っているので、
クッキーに関するエントリーは共通化しています。

で、その一覧がGoogleAnalyticsのヘルプページにあったのでシェアします。

GoogleWebsiteOptimizerが使用するエントリーは utm_xみたいです。
このエントリーを消せば、別のページが見れるようになります。



Name Description Expiration
__utma This cookie is typically written to the browser upon the first visit to your site from that web browser. If the cookie has been deleted by the browser operator, and the browser subsequently visits your site, a new __utma cookie is written with a different unique ID. This cookie is used to determine unique visitors to your site and it is updated with each page view. Additionally, this cookie is provided with a unique ID that Google Analytics uses to ensure both the validity and accessibility of the cookie as an extra security measure. 2 years from set/update.
__utmb This cookie is used to establish and continue a user session with your site. When a user views a page on your site, the Google Analytics code attempts to update this cookie. If it does not find the cookie, a new one is written and a new session is established. Each time a user visits a different page on your site, this cookie is updated to expire in 30 minutes, thus continuing a single session for as long as user activity continues within 30-minute intervals. This cookie expires when a user pauses on a page on your site for longer than 30 minutes. You can modify the default length of a user session with the _setSessionTimeout() method. 30 minutes from set/update.
__utmc This cookie operates in conjunction with the __utmb cookie to determine whether or not to establish a new session for the user. In particular, this cookie is not provided with an expiration date, so it expires when the user exits the browser. Should a user visit your site, exit the browser and then return to your website within 30 minutes, the absence of the __utmc cookie indicates that a new session needs to be established, despite the fact that the __utmb cookie has not yet expired. Not set.
__utmz This cookie stores the type of referral used by the visitor to reach your site, whether via a direct method, a referring link, a website search, or a campaign such as an ad or an email link. It is used to calculate search engine traffic, ad campaigns and page navigation within your own site. The cookie is updated with each page view to your site. 6 months from set/update.
__utmv This cookie is not normally present in a default configuration of the tracking code. The __utmv cookie passes the information provided via the _setVar() method, which you use to create a custom user segment. This string is then passed to the Analytics servers in the GIF request URL via the utmcc parameter. This cookie is only written if you have added the _setVar() method for the tracking code on your website page. 2 years from set/update.
__utmx This cookie is used by Website Optimizer and only set when the Website Optimizer tracking code is installed and correctly configured for your pages. When the optimizer script executes, this cookie stores the variation this visitor is assigned to for each experiment, so the visitor has a consistent experience on your site.  See the Website Optimizer Help Center for more information. 2 years from set/update.


▼※ソースはGoogle.com
http://code.google.com/intl/en/apis/analytics/docs/concepts/gaConceptsCookies.html#cookiesSet