Skip to content

Instantly share code, notes, and snippets.


Juan María Hernández jmhdez

View GitHub Profile
jmhdez / analytics.cs
Created Mar 19, 2012 — forked from gregoryyoung/analytics.cs
Usage Tracking with Google Analytics
View analytics.cs
public class TrackingService
// Sample usage:
// service.TrackEvent("customers/add");
// service.TrackEvent("order/discount-applied");
public void TrackEvent(string path)
ThreadPool.QueueUserWorkItem(x => TrackPageView("/events/" + path));
You can’t perform that action at this time.