I have a web forms application.
I have integrated the App Insights SDK, I receive the notifications about the application like button click (through Custom Events, Track Event function) on my Azure portal.
How can I get user information like:
What regions/geography the user is logging from, which browser is he/she accessing through... things like that.
Right now, In Azure Portal under Usage--> Users
I get:
No data for 'users' with values of 'Country or region'.
Similarly, no data messages are there for sessions and page views even though for a Custom event (Button click), I am getting the metrics.
Please explain.
Thanks.
How can I get user information like:
What regions/geography the user is logging from, which browser is he/she accessing through... things like that.
According to your description, I do a test to configure the chart under Application Insights > Overview > Metrics Explorer, and select the metrics and group metrics by Browser version or Country or region.
I set Chart type to Grid, and select Users and group by Country or region, the chart looks like this.
In a same way, I configure the chart to display Unique count of Users by Browser version, the chart looks like this.
I get:
No data for 'users' with values of 'Country or region'.
For “No data for 'users'…” issue, please make sure if you add the scripts by hand. And you could check “No data on Page Views, Browsers, Usage” section to troubleshoot no data issue.
Related
I want to display the status of a user.If the user will be online then I have to show green icon on the user profile.If a user will be offline then I have to show grey icon and it might be possible that user will be logged in but not active in that case I have to display orange icon(for the idle user) on the profile.
I have to implement this feature in ASP.NET.
you can do that out of the box using Kentico, first you have to enable Online Users module, to track all the online users also you will have the ability to kick any user for limited amount of time (configurable)
after you do that you can use the code at kentico documentation
https://docs.kentico.com/api10/configuration/users#Users-Checkingifauserisonline
In Kentico 11, (and I presume older versions), there are three DateTime fields on the CMS_Session table, SessionLastActive, SessionLastLogon, and SessionExpires. You can use the API to get online users, (https://docs.kentico.com/api11/configuration/users#Users-Onlineusers), or just do the whole thing including both users and the pertinent DateTimes from a stored procedure, Kentico Query, or any other method used to query the database.
With the Facebook SDK it seems like they allow you to invite your friends to join the application through the AppRequest section of the SDK. However I don't see anywhere in the SDK where you can reward users for inviting friends. I know this is possible because it's been done so many times, so how it can be done?
For example, lets say:
1. User A invites User B to use the application.
2. User B downloads the application.
3. User A receives 100 coins for inviting User B.
I'm completely lost here, examples using any SDK, regardless of language, would be appreciated.
Since Facebook app invites are based on AppLinks, that is where you need to look for a solution. I will explain this by using an Android example scenario.
When constructing an app invite (using the dialog), you are specifying an AppLinks URL. This URL can be unique to each user that sends out invites, or even to each individual invite. E.g.: https://www.example.com/invite_applink?invite_id=12345. By creating one AppLink url for e.g. each user who invites others, you embed invite-sender attribution (which is what you are saying you want) into your AppLinks URL.
The way the Facebook app figures out how to open your app from the "app invites" section, is by following the AppLinks specification.
This specification states that in the <head> section of the HTML document that lives at https://www.example.com/invite_applink, there has to be appropriate <meta> data that describes how your app can be opened/deep-linked into. One part of that is the al:android:url property, which could be used like this: <meta property="al:android:url" content="example://invite_from_fb?invite_id=12345" />
Observe how the url contains a parameter invite_id=12345, where 12345 is the same value as the one used in the invite_id parameter of the AppLinks URL above.
When the invited user now opens the app from the deep-linking URI example://invite_from_fb?invite_id=12345, the app will be opened from an intent that contains this information.
When your app's Activity opens you can grab the Intent that opened the Activity, and get from it the Uri that was used to open the app: Intent.getData(). More on this on the Android docs on "Allowing other Apps to Start Your Activity"
At this point, the ID that attributes an app invite to a user has made from the sender into the running app of the recipient. Now the app on the recipient's device needs to call your server and let it know which invite_id was used to open it. To avoid that multiple such attributions originate from one user (who may have received invites from multiple people), you could hold off on sending this attribution data until the user has performed some sort of login (e.g. Facebook Login) and you are able to ignore e.g. all attributions after the first one.
Is it possible for an XNA game/app to obtain it's own store link url through code or would I have to submit an app, wait for it's store link to become available and release an update including the store link?
Basically I want the player to be able to post his or her score to any social networks set up along with a link to the store page.
-Short question I know but my Google-Fu failed me this time.
To get a store URL, you will need to get hold of the app id. This is done by calling GetManifestAttributeValue. Note that the actual app id (Product ID) is generated when the app is published, and is different than the temporary one that is in WMAppManifest.xml. This causes a chicken and egg scenario when it comes to testing this.
See this for detailed instructions:
http://code.msdn.microsoft.com/Generating-a-Windows-Phone-9d19f939/
If all you need is to link to store from within your app, then use MarketplaceDetailTask to launch to the store. Leave ContentIdentifier as null and it will attempt to bring up the detail page of the current app. If you need to bring up the detail page of a different app, then you will need to know the app id, which you can only get after that app has been published.
http://msdn.microsoft.com/en-us/library/hh394017%28v=vs.92%29.aspx
I have deployed the web application and customer accessing web application publically in between my databse down then I want show the custom message to the user. In my web application 50 pages, and I want to handle message commonly for all pages. Please help how to do this.
You can configure a section in web.config that tells ASP.NET/IIS to redirect users to a set of static or dynamic pages in case of common errors.
Check out this article - http://www.asp.net/hosting/tutorials/displaying-a-custom-error-page-cs
The scenario is pretty similar - something goes wrong with the SQL DB call and you dont want to display an ugly error.
Make sure to include some sort of logging somewhere so that you know these errors are happing, however. One plus side of ugly error messages are that you'll hear about them right away ;)
I'm using facebook sdk. After the user authenticates to my application, I have his 'Likes' permission.
Can I add "like" to a product page automatically?
I'm not 100% sure on what you're asking, but here is some information which may be relevant.
Requesting a 'user_likes' permission will give you access the items a user has previously liked.
In order to programatically like something, (I believe) that entity has to exist within facebook - taken from http://developers.facebook.com/docs/reference/api/
/OBJECT_ID/likes Like the given object (if it has a /likes connection)
To do this you'll have to request the 'publish_stream' permission and then do something like:
// untested!
var app = new FacebookApp();
app.Post("OBJECT_ID/likes");
Failing that you'll have to add a like button (http://developers.facebook.com/docs/reference/plugins/like/) where the user will have to click themselves
Hope that helps :)
If I understand your question correctly, you want to add like buttons to product pages on your site. You are looking for the open graph api.
http://developers.facebook.com/docs/opengraph/