Ejemplo n.º 1
0
    public void Add(GAEvent gaEvent)
    {
        Hashtable eventSpecificParams = (Hashtable)LevelSpecificRequestParams().Clone();

        eventSpecificParams["utmt"]  = GoogleTrackTypeToString(GoogleTrackType.GAEvent);
        eventSpecificParams["utmcc"] = CookieData();
        eventSpecificParams["utmn"]  = Random.Range(1000000000, 2000000000).ToString();
        eventSpecificParams["utme"]  = gaEvent.ToUrlParamString();

        if (gaEvent.NonInteraction)
        {
            eventSpecificParams["utmni"] = 1;
        }
        eventList.Add(eventSpecificParams);
    }
    public void Add(GAEvent gaEvent)
    {
        Hashtable eventSpecificParams = (Hashtable)LevelSpecificRequestParams().Clone();

        eventSpecificParams["utmt"]  = GoogleTrackTypeToString( GoogleTrackType.GAEvent );
        eventSpecificParams["utmcc"] = CookieData();
        eventSpecificParams["utmn"]  = Random.Range(1000000000,2000000000).ToString();
        eventSpecificParams["utme"]  = gaEvent.ToUrlParamString();

        if (gaEvent.NonInteraction)
        {
            eventSpecificParams["utmni"] = 1;
        }

        if (gaEvent.Level != null)
        {
            eventSpecificParams["utmp"]  = gaEvent.Level.ToUrlParamString();
        }

        requestQueue.Enqueue(eventSpecificParams);
    }