Examples of VisitorInformation


Examples of com.eclipsesource.tabris.tracking.internal.piwik.model.VisitorInformation

      .withParam( "res", "1280x1024" ), giveEmptyResponse().withStatus( 200 ) );

    Piwik piwik = new Piwik( driver.getBaseUrl(), new PiwikConfiguration( "apiVersion", 2 ) );

    piwik.track( new Action( "actionUrl" ),
                 new VisitorInformation().setScreenResolution( "1280x1024" ),
                 new AdvancedConfiguration( FAKE_TOKEN ) );
  }
View Full Code Here

Examples of com.eclipsesource.tabris.tracking.internal.piwik.model.VisitorInformation

  @Override
  public void handleEvent( TrackingEvent event ) {
    TrackingInfo info = event.getInfo();
    AdvancedConfiguration advancedConfiguration = createAdvancedConfiguration( info );
    VisitorInformation visitorInformation = createVisitorInformation( info );
    Action action = createAction( event );
    piwik.track( action, visitorInformation, advancedConfiguration );
  }
View Full Code Here

Examples of com.eclipsesource.tabris.tracking.internal.piwik.model.VisitorInformation

  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;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.