Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * The MIT License (MIT)
  * Copyright (c) 2015 Erik Beeson
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to deal
  * in the Software without restriction, including without limitation the rights
  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
package com.erikandcolleen.gacookieparser;
Session (__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 _setSessionCookieTimeout() method.

Erik Beeson
public class GASessionData extends GADataBase {
	public static final String COOKIE_NAME = "__utmb";
	private final Integer pageViews;
	private final Date currentSessionStart;
	public GASessionData(String value) {
		this. = getInteger(1);
		//getInteger(2) // outbound link countdown,!topic/analytics-help-basics/YhHkR9AJuGM
	public Integer getPageViews() {
		return ;
	public String toString() {
		final StringBuilder sb = new StringBuilder("GASessionData{");
		sb.append(", pageViews=").append();
		sb.append(", currentSessionStart=").append();
		return sb.toString();
New to GrepCode? Check out our FAQ X