public async Task SendCommercePageView() { var product = MockConfig.MakeProduct(); var hit = HitBuilder.CreateScreenView(); hit.AddProduct(product); await SendHitAsync(hit); }
public async Task SendCommerceImpressionPageView() { var product = MockConfig.MakeProduct(); var hit = HitBuilder.CreateScreenView(); hit.AddImpression(product, "Impression List"); await SendHitAsync(hit); }
public async Task SendCommerceEvent() { var product = MockConfig.MakeProduct(); var hit = HitBuilder.CreateCustomEvent("commerce", "purchase", product.Name, 0); hit.AddProduct(product); hit.SetProductAction(MockConfig.MakePurchaseAction()); await SendHitAsync(hit); }