private String createHost( TrackingEvent event ) {
return "http://" + event.getInfo().getAppId();
}
private VisitorInformation createVisitorInformation( TrackingInfo info ) {
VisitorInformation visitorInformation = new VisitorInformation();
String screenResolution = info.getScreenResolution().x + "x" + info.getScreenResolution().y;
visitorInformation.setScreenResolution( screenResolution );
visitorInformation.setUserAgentOverride( UserAgentUtil.getProvider( info.getPlatform() ).getUserAgent( info ) );
visitorInformation.setCustomVariables( createCustomVariables( info ) );
visitorInformation.setLanguageOverride( info.getClientLocale().getLanguage() );
visitorInformation.setId( info.getClientId() );
return visitorInformation;
}