예제 #1
0
        public void TestPageviewToString()
        {
            Pageview pageview = new Pageview("/testing", "testing title");

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