Sep 29, 2010 at 2:52 PM
Edited Sep 29, 2010 at 2:54 PM
In silverlight, I can do something like:
var gat = (ScriptObject)HtmlPage.Window.GetProperty("_gat");
var tracker = (ScriptObject)gat.Invoke("_getTracker", accountCode);
var tracker.Invoke("_trackPageview", "mypage.xaml");
I would like to do the same in WP7 (Windows phone 7).
I do not have an HtmlPage and I prefer not to embed a WebBrowser object to achieve the same.
I want to do this in event handlers in code and avoid using google tags in the xaml.
Is there a simple "_gat" equivalent available for WP7 that I can simply start using ?