Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WinRT issue #29

Closed
pramodhegde88 opened this issue May 2, 2013 · 3 comments
Closed

WinRT issue #29

pramodhegde88 opened this issue May 2, 2013 · 3 comments

Comments

@pramodhegde88
Copy link

GoogleAnalyticsTracker does not track windows store apps.
I am using VS 2012. If I try to install it using nuGet, it fails there also.
So, I downloaded the project from GitHub, build the solution and referred the assembly in my windows store app.

I added the following code for tracking

private async Task TrackView(IView view)
{
using (Tracker tracker = new Tracker("UA-XXXXXXXX-2", "none", new WinRtAnalyticsSession()))
{
await tracker.TrackEventAsync("Analytics", "Test", "", default(int));
return await tracker.TrackPageViewAsync(view.ViewModel.ViewTitle, view.ViewModel.ViewTitle);
}
}
But this does not work.
Am I missing any other setting ?

@maartenba
Copy link
Owner

Have you configured GA to work as a site? (not as an application...)

@pramodhegde88
Copy link
Author

If I configure GA to work as a site this works fine.
But if I configure it to work as an application it fails. Why is it so?

@maartenba
Copy link
Owner

Because GATracker currently only works with GA in site mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants