How to track if browser is Silverlight enabled - silverlight

I'm trying to get some stats on how many of the visitors to our website have Silverlight enabled browsers.
We currently use Google Analytics for the rest of our stats so ideally we'd like to just add 'Silverlight enabled' tracking in with the rest of our Google Analytics stats. But if it has to get written out to a DB etc then so be it.
Nikhil has some javascript to Silverlight tracking to Google Analytics. I have tried this code but Google Analytics doesn't pick it up.
Does anyone have any other ideas/techniques?

In case you missed it, there's a link to a more detailed article as well in the comments: http://blogs.msdn.com/jeffwilcox/archive/2007/10/01/using-google-analytics-with-rich-managed-web-applications-in-silverlight.aspx
Edit: As David pointed out, this article covers the reverse scenario more (how to write your silverlight app so that it plays well with Analytics).

I think you answered it yourself. The page you are linking to does just that: detect which version of Silverlight the user has (not if s/he installs it). From the page:
After a little poking around, I found that Google Analytics has support for reporting a user-defined field.
...
Basically this detects the presence of Silverlight, and if its available, it records the version as the value of the user-defined field. Now your analytics reports will have one of three values: "(not set)", "Silverlight/1.0" or "Silverlight/2.0".

#Vaibhav
The Using Google Analytics with rich (managed) web applications in Silverlight article is very interesing but is more focused on how to get your Silverlight app to send messages to Google Analytics.
#Cd-MaN
Yeah, I thought that too but I have tried running my page with Nikhil's javascript and Google Analytics didn't pick it up. But I could have screwed something up somewhere.
I'm just interested to know if anyone else has managed to do this (track Silverlight-ness) successfully.

I've written a lightweight Silverlight library that helps make it easy to integrate Google Analytics in your silverlight app. You can grab download the code or binaries here.

I think the code posted on Nikhil's blog is out of date if you are using ga.js and not urchin.js.
The use of the global function __utmSetVar() is replaced by the tracker method _setCustomVar()
http://code.google.com/apis/analytics/docs/gaJS/gaJSApiBasicConfiguration.html#_gat.GA_Tracker_._setCustomVar

Related

Why is Google Analytics providing data when the tracking code is not yet even in place?

I think some other website is using the Google Analytics ID of one of our websites. I recently set up a new Analytics property for a new site but have not yet put the tracking codes in place. Then when I checked our Analytics earlier today, the new property is already reporting visits. How come?
Probably someone hacked our Google Analytics ID. But then we haven't even placed the codes on site so I'm not sure if this is the case. Am I missing something (probably due to a filter set up)?
And if some other website is indeed using our Google Analytics ID, is there a way for me to trace these sites?
I just configured our Analytics to monitor visits that only involve our hostname so hopefully this will solve the issue onwards. But still, are there other possible reasons?

Android Google analytics Campaign tracking not in Report

I really cant make this work tried hours. Android google analytics seems not a well discussed subject in stackoverflow yet. similar post(also no solution):
Google Analytic campaign tracking not showing up in report
i did everything exactly like described here: https://developers.google.com/analytics/devguides/collection/android/v4/campaigns
also i get the message in adb Terminal: Thread[GAThread,5,main]: Campaign found: utm_source=testSource&utm_medium=testMedium&utm_term=testTerm&utm_content=testContent&utm_campaign=testCampaign
But when i look into google analytics (http://www.google.com/intl/de/analytics/)
there is just no data arriving from my First installation of the APP.
please help, since this seems to be not covered at all nowhere...
guess solved it, the google documentation is very bad.
what made my day is GoogleAnalytics.getInstance(this).reportActivityStart(this); in the onStart(); class in the activity. which sends the whole campaign to the analytics report. it's not mentioned in the google manual.
excellent tutorial(still rare for google analytics):
http://benwilcock.wordpress.com/2014/04/11/working-with-google-analytics-api-v4-for-android/

Can you import Selenium Web driver into the Google App Engin

I am sort of new to app development, so this may sound like a stupid question. The company I am working with is trying to get ride of most of there IT infrastructure, so that they don't need any more servers. I have been asked to develop a program that takes information from a google spreadsheet and then with this information puts it into a web browser. I am Planning on using Phyton and selenium web driver. Will I be able to install selenium if i host the application as a Google app engine?
The Reason I want/need to use selenium web driver is because I need to put the information from google into a legacy system. The only way to put information in the system is to mimic a user putting the information in manual in a web browser.
Thank you,
Kai
I don't understand what you think Selenium will be doing here. It seems a very strange way to want to get information from one Google property into another.
Google spreadsheets have a perfectly good API that allows you to read the data from your app and display it to users.
Edit after question update Well, now I don't see what you need GAE for. That is for hosting and running websites, and you only seem to want to enter data into an existing website. That's not what it does at all.

Using Google Analytics from a .NET desktop application

Is it possible to send "PageViews" and record activity using the official Google API for C#? for instance, if i want to track page views for my wpf/winforms desktop app. ?
Where can i find some oficial examples?
I've just downloaded "Garlic" and tried the sample app and it works a treat!
https://github.com/dustyburwell/garlic
Disclaimer: I am the author for Gappalytics
I think one missing here is 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.
Google just released the Windows SDK for Google Analytics. It works with UWP, Xamarin, Windows Forms, and WPF.
The official announcement was made at the most recent Windows Developer Day on Feb 8th, 2017.
Here are some options, none perfect though. Google has an iOS and android SDK. Why not a Windows SDK???
Garlic
Ga.net
Server Side Google Analytics

Silverlight Google Analytics Integration

We have a Silverlight LOB that we need to integrate Google analytics. I have been exploring the Microsoft Silverlight Analytics Framework (MSAF) for the past few days. Unfortunately, I don’t get any response to many of my questions in the MSAF discussion forum. Now I'm forced to find a decent alternative to MSAF. I gave up MSAF due to the following reasons:
Not getting any answers to many of my questions
Not sure if MSAF support Google’s E-commerce tracking. If so how
Do you have any experience integrating Google analytics with Silverlight? Especially the e-commerce tracking part of it? Any inputs/links/resources in this regard will be very helpful. Sincerely appreciate your help.
I have created a widget for blogengine.net to show total visits on the blog from Google Analytics. You need to use GData - Google Data API for this. Have a look at this widget. May be it is not of lot of help but at least it can get you started.
http://midnightprogrammer.net/post/Blog-Analytics-Widget-For-BlogEngineNET-Powered-By-Google-Analytics.aspx

Resources