locked
Google Analytics in mvc ... RRS feed

  • Question

  • Hi All

    How to use Google Analytics for displaying page views every month for my website? 

    Any help is appreciated..

    Thanks in advance......

    • Moved by Eason_H Tuesday, December 3, 2013 3:06 AM
    Monday, December 2, 2013 3:02 PM

Answers

  • Hi swami123,

    This forum is to discuss problems of C# development. You'll need to post it in the dedicated ASP.Net Forum http://forums.asp.net for more efficient responses.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Proposed as answer by Just Karl Tuesday, December 3, 2013 4:36 AM
    • Marked as answer by Just Karl Tuesday, December 10, 2013 9:25 PM
    Tuesday, December 3, 2013 3:06 AM

All replies

  • What display technolgy?

    Can you use a Webbrowser Element to just show the page?

    Have you taken a look at the google API?


    Let's talk about MVVM: http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/b1a8bf14-4acd-4d77-9df8-bdb95b02dbe2 Please mark post as helpfull and answers respectively.

    Monday, December 2, 2013 3:31 PM
  • thanks
    • Edited by swami123 Tuesday, December 10, 2013 11:17 PM
    Monday, December 2, 2013 3:35 PM
  • Hi

    I wrote google analytics code. It is going to catch block. Following is the code - 

    DataQuery query = new DataQuery(DataFeedUrl);
    query.Ids = this.AccountId;
    query.Metrics = "ga:totalEvents";
    query.Dimensions = dimension;
    query.GAStartDate = startDate.Value.ToString("yyyy-MM-dd");
    query.GAEndDate = endDate.Value.ToString("yyyy-MM-dd");
    query.NumberToRetrieve = maxResults;
    query.Sort = "-ga:totalEvents";
    if (!string.IsNullOrEmpty(filter))
    {
    query.Filters = filter;
    }
    DataFeed actual = Connector.Query(query);

    Program is going to Catch block after the above line in bold. It is giving eror "Invalid CredentialException" Any idea why this is happening? 

    Thanks in advance 

    Monday, December 2, 2013 7:01 PM
  • Hi swami123,

    This forum is to discuss problems of C# development. You'll need to post it in the dedicated ASP.Net Forum http://forums.asp.net for more efficient responses.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Proposed as answer by Just Karl Tuesday, December 3, 2013 4:36 AM
    • Marked as answer by Just Karl Tuesday, December 10, 2013 9:25 PM
    Tuesday, December 3, 2013 3:06 AM