Some PHP folk have solved this issue by creating a script that takes your Google Analytics details, builds the URL for the GIF and then sends an HTTP request to Google for the file. The problem with this is, search high and low, i couldn’t find anyone who was doing the same thing in .Net – This is what this library sets out to do: fill a void.
GoogleAnalyticsDotNet will take your page view request and do the same thing: request a GIF download from Google, download it (inturn firing the tracking event). That is all it does, simple and effective.
Using the library is dead easy – simply build a page view request, and call the tracking event class.
GooglePageView pageView = new GooglePageView("My page title", "www.mydomain.com", "/my-page-url.html"); TrackingRequest request = new RequestFactory().BuildRequest(pageView); GoogleTracking.FireTrackingEvent(request);
So download it today and let me know if you find any new and exciting uses for it!
Where from here?
Currently the library only supports Page views, however shortly i will be releasing version 1.5 that will support events and transaction logging, using Google Analytics’ transaction logging support.