protected void gatherStats(GoogleAnalyticsRequest<?> request) { String hitType = request.hitType(); if (Constants.HIT_PAGEVIEW.equalsIgnoreCase(hitType)) { stats.pageViewHit(); } else if (Constants.HIT_SCREENVIEW.equals(hitType)) { stats.screenViewHit(); } else if (Constants.HIT_EVENT.equals(hitType)) { stats.eventHit(); } else if (Constants.HIT_ITEM.equals(hitType)) { stats.itemHit(); } else if (Constants.HIT_TXN.equals(hitType)) { stats.transactionHit(); } else if (Constants.HIT_SOCIAL.equals(hitType)) { stats.socialHit(); } else if (Constants.HIT_TIMING.equals(hitType)) { stats.timingHit(); } else if (Constants.HIT_EXCEPTION.equals(hitType)) { stats.exceptionHit(); } }
protected void gatherStats(GoogleAnalyticsRequest<?> request) { String hitType = request.hitType(); if (Constants.HIT_PAGEVIEW.equalsIgnoreCase(hitType)) { stats.pageViewHit(); } else if (Constants.HIT_SCREENVIEW.equals(hitType)) { stats.screenViewHit(); } else if (Constants.HIT_EVENT.equals(hitType)) { stats.eventHit(); } else if (Constants.HIT_ITEM.equals(hitType)) { stats.itemHit(); } else if (Constants.HIT_TXN.equals(hitType)) { stats.transactionHit(); } else if (Constants.HIT_SOCIAL.equals(hitType)) { stats.socialHit(); } else if (Constants.HIT_TIMING.equals(hitType)) { stats.timingHit(); } else if (Constants.HIT_EXCEPTION.equals(hitType)) { stats.exceptionHit(); } }
public GoogleAnalyticsRequest(String hitType, String trackingId, String appName, String appVersion) { hitType(GaUtils.isBlank(hitType) ? Constants.HIT_PAGEVIEW : hitType); trackingId(trackingId); applicationName(appName); applicationVersion(appVersion); protocolVersion("1"); }
public GoogleAnalyticsRequest(String hitType, String trackingId, String appName, String appVersion) { hitType(GaUtils.isBlank(hitType) ? Constants.HIT_PAGEVIEW : hitType); trackingId(trackingId); applicationName(appName); applicationVersion(appVersion); protocolVersion("1"); }