Beispiel #1
0
 public void _sendSocial(SocialHitBuilder builder)
 {
     _buildCustomMetricsDictionary(builder);
     _buildCustomDimensionsDictionary(builder);
     _buildCampaignParametersDictionary(builder);
     sendSocial(builder.GetSocialNetwork(), builder.GetSocialAction(), builder.GetSocialTarget());
 }
    public void LogSocial(SocialHitBuilder builder)
    {
        AndroidJavaObject socialBuilder = new AndroidJavaObject("com.google.android.gms.analytics.HitBuilders$SocialBuilder");

        socialBuilder.Call <AndroidJavaObject>("setAction", new object[] { builder.GetSocialAction() });
        socialBuilder.Call <AndroidJavaObject>("setNetwork", new object[] { builder.GetSocialNetwork() });
        socialBuilder.Call <AndroidJavaObject>("setTarget", new object[] { builder.GetSocialTarget() });

        object[] builtSocial = new object[] { socialBuilder.Call <AndroidJavaObject>("build") };
        tracker.Call("send", builtSocial);
    }
    public void LogSocial(SocialHitBuilder builder)
    {
        object[] args = new object[3];
        args[0] = builder.GetSocialNetwork();
        args[1] = builder.GetSocialAction();
        args[2] = builder.GetSocialTarget();

        object map;
        Dictionary <AndroidJavaObject, string> parameters =
            AddCustomVariablesAndCampaignParameters(builder);

        if (parameters != null)
        {
            map = BuildMap(GoogleAnalyticsV3.SOCIAL_HIT, args, parameters);
        }
        else
        {
            map = BuildMap(GoogleAnalyticsV3.SOCIAL_HIT, args);
        }
        tracker.Call(GoogleAnalyticsV3.SEND, map);
    }
    public void LogSocial(SocialHitBuilder builder)
    {
        trackerValues[Fields.SOCIAL_NETWORK] = null;
        trackerValues[Fields.SOCIAL_ACTION]  = null;
        trackerValues[Fields.SOCIAL_TARGET]  = null;

        SendGaHitWithMeasurementProtocol(url
                                         + AddRequiredMPParameter(Fields.HIT_TYPE, "social")
                                         + AddRequiredMPParameter(Fields.SOCIAL_NETWORK, builder.GetSocialNetwork())
                                         + AddRequiredMPParameter(Fields.SOCIAL_ACTION, builder.GetSocialAction())
                                         + AddRequiredMPParameter(Fields.SOCIAL_TARGET, builder.GetSocialTarget())
                                         + AddCustomVariables(builder)
                                         + AddCampaignParameters(builder)
                                         + AddTrackerVals());
    }
    public void LogSocial(SocialHitBuilder builder)
    {
        trackerValues[Fields.SOCIAL_NETWORK] = null;
        trackerValues[Fields.SOCIAL_ACTION] = null;
        trackerValues[Fields.SOCIAL_TARGET] = null;

        SendGaHitWithMeasurementProtocol(url
        + AddRequiredMPParameter(Fields.HIT_TYPE,"social")
        + AddRequiredMPParameter(Fields.SOCIAL_NETWORK,builder.GetSocialNetwork())
        + AddRequiredMPParameter(Fields.SOCIAL_ACTION,builder.GetSocialAction())
        + AddRequiredMPParameter(Fields.SOCIAL_TARGET,builder.GetSocialTarget())
        + AddCustomVariables(builder)
        + AddCampaignParameters(builder)
        + AddTrackerVals());
    }
 public void _sendSocial(SocialHitBuilder builder)
 {
     _buildCustomMetricsDictionary(builder);
     _buildCustomDimensionsDictionary(builder);
     _buildCampaignParametersDictionary(builder);
     sendSocial(builder.GetSocialNetwork(), builder.GetSocialAction(), builder.GetSocialTarget());
 }
    public void LogSocial(SocialHitBuilder builder)
    {
        object[] args = new object[3];
        args[0] = builder.GetSocialNetwork();
        args[1] = builder.GetSocialAction();
        args[2] = builder.GetSocialTarget();

        object map;
        Dictionary<AndroidJavaObject, string> parameters = AddCustomVariablesAndCampaignParameters(builder);
        if (parameters != null) {
          map = BuildMap(GoogleAnalyticsV3.SOCIAL_HIT, args, parameters);
        } else {
          map = BuildMap(GoogleAnalyticsV3.SOCIAL_HIT, args);
        }
        tracker.Call(GoogleAnalyticsV3.SEND, map);
    }