Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3354358
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T02:15:48+00:00 2026-05-18T02:15:48+00:00

Coding in ASP.NET 4.0 / javascript/ jQuery/ WebServices The Scenario I have an analytics

  • 0

Coding in ASP.NET 4.0 / javascript/ jQuery/ WebServices

The Scenario

I have an analytics account i have set up at, say, some-name@gmail.com with password as pass123
I also know the table id,say ga:30037474

My question is can I pull data like

// Load the Google data JavaScript client library.
google.load('gdata', '2.x', { packages: ['analytics'] });

// Set the callback function when the library is ready.
google.setOnLoadCallback(init);

function init() {
    myService = new google.gdata.analytics.AnalyticsService('charts_sample');
//how do i securely  pull data without exposing my credentials if client login is a must
    getDataFeed();
}


/**
* Main method to get report data from the Export API.
*/
function getDataFeed() {

    myService = new google.gdata.analytics.AnalyticsService('charts_sample');
    var myFeedUri = ['https://www.google.com/analytics/feeds/data',
    '?start-date=2010-06-01',
    '&end-date=2010-06-10',
    '&dimensions=ga:day,ga:visitorType',
    '&metrics=ga:visits',
    '&sort=ga:day',
    '&max-results=20',
    '&ids=',
    'ga:30037474'].join('');

    myService.getDataFeed(myFeedUri, handleDataFeed, handleError);
}

Or shall i authenticate the client before this?

If I need to authenticate the client, it would be better if I get some pointers on how to proceed with these two requirements.
1. Cannot authenticate by exposing the user credentials on client side(Need a webservice like thing)
2. When my site loads, it should load up with the analytics data(should not ask for login then and there to pull the analytics data).

Are there any articles anywhere?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T02:15:48+00:00Added an answer on May 18, 2026 at 2:15 am

    Not sure if this answers your question. Based on the content of your question it seems you have a very good handle on the Google Analytics API. But somewhere along the line someone will need to grant access to the Google Analytics data. Using AuthSub this can be accomplished. Basically the user will need to do a one-time login to Google Analytics and “grant” your webservice a long-lived token to access their data. Once this is done you can store this token and associate it with their account, passing it when making data calls to the Google Analytics API.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Coding Platform: ASP.NET C# Controls Used: asp:Wizard and asp:Button I have a asp:Wizard and
Coding with ASP.NET 3.5 C#, jquery.1.4.2, jquery-ui-1.8.2 My textbox is in fourth asp:View of
Coding Platform: ASP.NET C# I have an XML like this. <Items> <Map id=35> <Terrains>
while coding in asp.net C# MVC 2.0, how to show error messages let say
The coding is in ASP.NET 3.5. Here is the scenario. I am modifying a
I'm coming from a Rails background and doing some work on a ASP.NET project
I'm coding a business layer for an ASP.NET application. I've created database methods in
We have a ASP.Net web application running in Visual Studio 2010 that is targeting
Coming from ASP.NET Webform and Classic ASP. I want to know what are the
I'm coming from the open source world, and interested in giving ASP.NET a spin.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.