I have recently released a .net library that allows you to log page views from native .net code.
Its called GoogleAnalyticsDotNet and can be found here:
http://www.diaryofaninja.com/projects/details/ga-dot-net
Example API usage:
GooglePageView pageView = new GooglePageView("My page title",
"www.mydomain.com",
"/my-page-url.html");
TrackingRequest request = new RequestFactory().BuildRequest(pageView);
GoogleTracking.FireTrackingEvent(request);
API Usage for events:
int? eventValue = 100;
GoogleEvent googleEvent = new GoogleEvent("mydomain.com",
"Event Category",
"Event Action",
"Event Label",
eventValue);
TrackingRequest request =
new RequestFactory().BuildRequest(googleEvent, HttpContext.Current);
GoogleTracking.FireTrackingEvent(request);
I will be adding transaction support soon