This project has moved and is read-only. For the latest updates, please go here.

How to track Custom Variables

Jan 10, 2014 at 1:00 AM
I've been using the Microsoft Silverlight Analytics Framework before moving to this SDK and I used to track custom variables with the MSAF but I can't figure out any APIs that do the same task in the GA API for Windows Phone.
Any insights on how one could track those custom variables?
Mar 24, 2014 at 1:17 AM
You can track custom events by calling SendEvent. For example:
GoogleAnalytics.EasyTracker.GetTracker().SendEvent("test", "userclick", null, 0);
public void SendEvent(string category, string action, string label, int value);

fyi: You can also create custom metrics via tracker.SetCustomMetric(...) however custom metrics and dimensions are intended to help group users, not track specific events. For example: This could help group trial vs. paid users.