// // You can purchase items not tied to a transaction, Google will create a blank transaction // public void Add(GAPurchaseItem gaPurchaseItem) { Hashtable eventSpecificParams = (Hashtable)LevelSpecificRequestParams().Clone(); eventSpecificParams["utmt"] = GoogleTrackTypeToString(GoogleTrackType.GAPurchaseItem); eventSpecificParams["utmcc"] = CookieData(); eventSpecificParams["utmn"] = Random.Range(1000000000, 2000000000).ToString(); // Purchase specific params Hashtable purchaseParams = gaPurchaseItem.ToParamHashtable(); foreach (DictionaryEntry item in purchaseParams) { eventSpecificParams[item.Key] = item.Value; } requestQueue.Enqueue(eventSpecificParams); }
// // You can purchase items not tied to a transaction, Google will create a blank transaction // public void Add(GAPurchaseItem gaPurchaseItem) { Hashtable eventSpecificParams = (Hashtable)LevelSpecificRequestParams().Clone(); eventSpecificParams["utmt"] = GoogleTrackTypeToString( GoogleTrackType.GAPurchaseItem ); eventSpecificParams["utmcc"] = CookieData(); eventSpecificParams["utmn"] = Random.Range(1000000000,2000000000).ToString(); // Purchase specific params Hashtable purchaseParams = gaPurchaseItem.ToParamHashtable(); foreach(DictionaryEntry item in purchaseParams) { eventSpecificParams[item.Key] = item.Value; } requestQueue.Enqueue(eventSpecificParams); }