Implementing Google Analytics on a Windows 8 Metro application - c#

I'd like to implement Google Analytics tracking on a Windows 8 / Metro app.
There's no Windows SDK.
What would be the best way to do it in your opinion ?
Thanks, best regards
Geoffroy

MarkedUp Analytics for Windows 8 is another option for Windows 8 - it supports both WinJS and WinRT, and even works offline. It's currently free. (Disclaimer: I work on MarkedUp)

Is this something you are looking for?
Here is an article in our team blog on how we solve that issue:
http://dreamteam-mobile.com/blog/2012/08/windows-8-metro-apps-google-analytics/

Here is a good one that with lots of features and activity:
https://github.com/AttackPattern/CSharpAnalytics

If you're creating a new app, you will probably want to use the new Google Analytics SDK for Windows 8 and Windows Phone. Google recently had a major update to GA and added all kinds of snazzy features specifically for apps (vs. websites). Along with this change they scrapped the older UTM protocol and now require the newer measurement protocol for all apps. AFAIK, this SDK is the only one out there that supports the new measurement protocol thereby being the only one that works with new GA mobile app properties. Note: you can still use these other SDKs with existing GA properties or by fooling GA into thinking you're app is a website by providing a verifiable domain name.
Full disclosure: I wrote this SDK and created it for this very reason. It supports Win8 JS, Win8 Xaml, WP7, & WP8.

Many folks do not know that Microsoft gives Telemetry SDK http://msdn.microsoft.com/library/windows/apps/hh967768 as a nuget extension.
You can try it if GA is not a strong requirement.

We ran into the same problem at Nascent, so we created an Open Source project for it.
Check out Google Analytics for WinRT: A pretty simple but powerful Google Analytics client library for Windows Store apps.

Disclaimer: I am the author for Gappalytics
You should try Gappalytics for code/UI event tracking, it is a very simple library which unlocks you a full potential of Google analytics.
It works better than mentioned before lib's because it can persist uniqueness of a user this way your data will not be skewed.

Related

Creating graphs for both WP7 & WP8

My question is really: Is there an easy way to create graphs in windows phone? (Either in-built or for free)
Could you tell me of any using statements I need to add
Links would be helpful (I couldn't find many myself)
And a basic how-to would be excellent!
The Telerik RadControls produce great graphs - http://www.telerik.com/products/windows-phone.aspx
They also have a WP App that showcases their controls - http://www.windowsphone.com/en-us/store/app/telerik-examples/fd55f526-d6f7-df11-9264-00237de2db9e
The Telerik RadControls are not free but they are by far, 100%, the best tools on the market. You can get them for free though if you have a couple apps published.
Go to http://www.Dvlup.com and sign up for a free Nokia Developer Account. Link in your developer account and it will import the apps you have made. Then you can submit apps you have made to the challenges they have on there.
As you can see here you can get a Nokia Premium Account Token for 1000pts which is VERY easy to get. With that token you get a free Windows PHone Developer account ($100 value) and a slew of other things like support tokens, Buddy API calls ect. I heard on the Windows Developer Show That you also get a free set of RadControls with this token right now also.
There are lot's of libraries that provide charts for Phone 7 and 8
http://www.infragistics.com/products/windows-phone/features/sparkline/ (Paid)
https://github.com/ailon/amCharts-Quick-Charts (free)
http://www.telerik.com/products/windows-phone/overview/all-controls/chart.aspx (Paid)
Also, other than those listed above, there is a Sparrow Toolkit.
Sparrow Toolkit a set of Data Visualization controls(Chart, Gauge,BulletGraph and Sparkline) with lot of flexibility, performance, faster and more efficient.
http://sparrowtoolkit.codeplex.com/

Silverlight replacement for Intranet Applications?

I currently develop a handful of Silverlight Applications that are hosted on the company intranet. It is my understanding that Silverlight is basically dead, so I was wondering if anyone knew of a good alternative to use for future applications. I have done some research, and I see that Microsoft is recommending to move to WinRT stuff for desktop applications , but I can't find anything about apps that are supposed to be hosted in a browser, like I am doing with Silverlight now. Should I just switch over to using ASP.NET / HTML / CSS ?
The recommended approach would be to use HTML5. The Metro version of IE 10 doesn't support plugins, so Silverlight will not work there. However, the desktop version of IE 10 still has plugin support, so your Silverlight apps are still supported in Windows 8 to a certain degree.
Silverlight is no longer being advanced by Microsoft, but will still be around for a while (i.e. all browsers will not drop support in the near future). Given that you are working on intranet apps, you probably have an opportunity to control the environment to a degree so that the Silverlight apps are still accessible. However, it is probably wise to move to HTML5 for new development and also think about a long-term migration strategy for existing apps if needed.
I've talked to some folks around the office, and it seems that their approach is to just convert their Silverlight apps into WPF apps and use ClickOnce for the deployment. The advantage here is a relatively easy and clean port (compared to HTML/CSS/javaScript) and we still get the benefit of existing code / look / feel.
These apps are all internal as well, so we don't have platform problems or browser issues to worry about.

Facebook C# ASP.net

I am working on a ASP.net application and as extension I need it to be ported to facebook . I have searched for various documentation , including Stackoverflow ..But there is not much available to work through . I am good with ASP.net but , is there anywhere a good documentation to read like Course 101 for developing Facebook application using ASP.net.
The best is thing is to read the official Facebook documentation, and implement a solution using REST. The APIs are constantly in flux, so reading about which APIs are deprecated and which aren't is a realy good idea.
I'm not a fan of Facebook SDKs as they frequently break or are abandoned. It's beter to build on a technology based library like Hammock or HttpClient. I wrote an article about this approach here which might be useful.
Besides from the given ones, here is two good conference session videos for Facebook Development with.Net :
Facebook Development in .NET :
http://channel9.msdn.com/Events/MIX/MIX11/OPN06
Building Facebook Apps with Microsoft .NET and Deploying to Windows Azure :
http://channel9.msdn.com/Events/MIX/MIX10/EX23
The official Facebook C# SDK is at Codeplex
http://facebooksdk.codeplex.com/
Is stable and well maintain , currenty at version 5.2.1 (Aug 23 2011)
The documentation is also great!
I would strongly suggest that you take a look at the MIX 11 video from Jim Zimmerman (creator of the Facebook C# SDK) at Channel9
Facebook Development in .NET
Regarding Facebook itself, you really need to start searching because it always varies from what do you really want to do and what information are you taken / adding into Facebook.
Make your aplication in asp.net.Make a canvas applcation in facebook and give the url of your application in he setings.
Link to make app: https://developers.facebook.com/apps
I would suggest becoming familiar with Facebook's Graph API and taking a look at Facebook's C# SDK (comes with a sample program) which was announced by a Facebook Engineer at https://developers.facebook.com/blog/post/395/.
Keep in mind that, last I heard, the SDK is an Alpha release so there may be issues. Be sure to report them.

Google Maps Control for .NET Smart Device Application

I am developing a GPS smart device application with VS 2008 and .NET compact framework 3.5 on windows 6.1 mobile, I wanna to show the current location to the user on windows mobile Form using an interactive google Map control. But I searched a lot for such a control through many sites uselessly can anyone tell me how to find this control or how to do it please ?
GMaps.NET is the best in my opinion:
http://greatmaps.codeplex.com/
Here is a project in codeplex you may try. Download the source code there is no binary for download.
I'm also developing in the same environment and looking at adding navigation to our app. In our case the device will be in a vehicle so we want "Tom Tom" style nav rather than "top down" Google Maps.
We are using Resco controls which are excellent. They have recently released a navigation control that you can just drag on to a form. I'm hoping to evaluate this soon. This stuff isn't cheap but you might want to check out the demo if your project has the budget. Resco are an excellent company to deal with (no affiliation - just that they have made my app look cool and saved me a LOT of work).
http://www.resco.net/developer/mapnavigation/overview.aspx
Cheers
Mark

How do I implement the Facebook SDK for .NET into a Windows Mobile 6.5 application?

Basically what I want to do is use the SDK available here, to post specific status-updates to a profile which has been logged into.
Now it seems to me that the project has been on a standstill for some days and the documentation is REALLY lacking.
My current setup is as stated below:
Visual Studio 2008
Windows Mobile 6 Classic Emulator
.Net 3.5 (Compact I believe)
So far I've been able to get the emulator running and get some GPS stats from a fake GSP generator.
What I've not been able to do however is figuring out the Facebook SDK. It seems that most of the examples (or atleast the ones I actually need, such as Authentication) are based on .Net 4.0 and I can't find any .Net 3.5 examples on authentication or how to log-in using the SDK.
There are examples that point out how to post updates etc. for 3.5 but there aren't any for authentication/login etc.
So does anyone know how to use the SDK with the setup I described above? When I figure it all out I'll make a blog post on my blig explaining all the steps I took to get it all working together and will post a link here for others.
But until I know how to get the SDK working for 3.5 I can do nothing.
So please help me find the answer. I'll try looking through the source some more. However since I don't have VS2010 I can't look at the .sln files they used for the source... So will try, but can't promise anything
Thanks in advance.
The SDK isn't supported on WinMo 6.5 with the compact framework. However, interacting with facebook is really easy, provided the framework provide you with some required capabilities:
1) You must be able to leverage a WebBrowser control to manage user authentification, as demonstrated here .
2) You then will be able to interact with Facebook through simple POST and GET request. Demonstrated here for a Wall post request.

Categories

Resources