Exemplo n.º 1
0
        public void TestPageviewToString()
        {
            Pageview pageview = new Pageview("/testing", "testing title");

            Assert.Equal("ga('send','pageview',{'Page':'/testing','Title':'testing title'});", pageview.ToString());
        }
Exemplo n.º 2
0
 private string Send(Pageview pageview)
 {
     return(string.Format("ga('send','pageview'{0});", (pageview == null) ? "" : "," + pageview.ToString()));
 }