Yes today I released the Google Analytics NuGet package that supports Windows Phone 8. It’s part of the same NuGet package of the version for Windows Phone 7. I’ve heard that creating an app account doesn’t work any longer with Windows Phone apps, though you can fake it into a website. But for the detailed three steps I recommend reading my previous post. The fast track?
Open the NuGet Package Manager Console and type:
Install-Package MSAF.GoogleAnalytics




PM> Install-Package MSAF.GoogleAnalytics
Successfully installed 'MSAF.GoogleAnalytics 1.5.4.2'.
Successfully added 'MSAF.GoogleAnalytics 1.5.4.2' to Win8App1AnalyticsTest.
You cannot call a method on a null-valued expression.
At C:\Users\Michael\Documents\Visual Studio 2012\Projects\Win8App1AnalyticsTest\packages\MSAF.GoogleAnalytics.1.5.4.2\tools\Install.ps1:20 char:3
+ $lto.AppendChild($gas)
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
Only Windows Phone 7 and Windows Phone 8 are supported. There's currently no support for Windows 8.
HTH,
Mark Monster
o a project that targets 'WindowsPhone,Version=v8.0', but the package does not contain any assembly references that ar
e compatible with that framework. For more information, contact the package author.
At line:1 char:1
+ Install-Package MSAF.GoogleAnalytics
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
I added your package and instantiate the tracker with new AnalyticsTracker(); On WP 7 everything is fine, but when i do this on WP8 I always get a System.ComponentModel.Composition.ChangeRejectedException. Do you know how to fix that?