GithubHelp home page GithubHelp logo

rushellphoto / analytics-api-samples Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 996 KB

Automatically exported from code.google.com/p/analytics-api-samples

HTML 40.95% CSS 2.60% JavaScript 30.56% Java 17.75% Objective-C 8.14%

analytics-api-samples's People

Watchers

 avatar  avatar

analytics-api-samples's Issues

'defaultOnError' JS undefined error when no data is returned. onError callback does not fire.

What steps will reproduce the problem?
1. Create a gadash.Chart (tested types: Table and ColumnChart)
2. Use a TableID for an account with no data.
3. Use the following metrics: 'ga:visitors' 
4. Use the following dimensions: 'ga:visitorType'

What is the expected output? What do you see instead?

I am trying to catch when no data is displayed, and show a message. However it 
seems the callback for onError cannot fire, and instead a JS error displays: 
Uncaught TypeError: Object #<Object> has no method 'defaultOnError' on line 347 
of ga-dash-1.0.js

I tested the same function on a GA account with no data, and a GA account with 
data, the one with data successfully rendered, the one without threw an error 
and would not let me catch the empty rows to provide feedback to the dashboard.

What version of the product are you using? On what operating system?
ga-dash-1.0.js, Google Chrome on Debian Lenny 

Please provide any additional information below.

I tested this with the "Table" and the "ColumnChart" object, and both rendered 
the same.

Here's the function:

    var adWordsTable = new gadash.Chart({
      'type': 'ColumnChart',
      'divContainer': 'chart-visitors',
      'last-n-days':30,
      'query': {
        'ids': 'ga:60406207', //<-- no visitors, returns js console error
        //'ids': 'ga:60052829', //<-- has visitors, renders fine
        'metrics': 'ga:visitors',
        'dimensions': 'ga:visitorType'
      },
      'chartOptions': {
          chartArea: {left:10,top:10,width:"100%",height:"75%"}
        },
      'onError': function(){
        // This is what I would like to do when there's no data:
        $('#adwords-impressions').html('No Data to Display.');
      }
    }).render();

Original issue reported on code.google.com by [email protected] on 9 Jun 2012 at 2:44

Work with MapActivity

I am using libGoogleAnalytics and EasyTracker for Android.
I see TrackedActivity and TrackedListActivity, so how to work with MapActivity

Please help me. Thanks!

Original issue reported on code.google.com by [email protected] on 18 Jan 2012 at 5:48

Twitter button not working in Internet Explorer

What steps will reproduce the problem?
1. _ga.trackTwitter(opt_pageUrl, opt_trackerName);
2. Click on the Tweet button
3. Internet Explorer Block the popup saying "Internet Explorer has modified 
this page to help prevent cross-site scripting" (XSS protection fire...)

Supposed to see the twitter login windows...

Social media analitycs (february 2012)

Original issue reported on code.google.com by [email protected] on 23 Feb 2012 at 8:21

Causes app to crash when coming back to foreground

What steps will reproduce the problem?
1. Add the EasyTracker library
2. Add code to didFinishLaunchingWithOptions

    [EasyTracker launchWithOptions:launchOptions
                    withParameters:nil
                         withError:nil];

3. Press home key
4. Open app quickly after closing

What is the expected output? 

The expected output is a the app running as usual.

What do you see instead?

The app opens to a black screen, sometimes it crashes, sometimes it runs.
When it crashes it says “failed to resume in time"

What version of the product are you using? On what operating system?

EasyTracker 1.0 for iOS

iPhone 3GS running 5.1.1
iPod Touch 4th Generation running iOS6 beta

Original issue reported on code.google.com by [email protected] on 27 Aug 2012 at 2:49

Allow to disable EasyTracker at runtime

What steps will reproduce the problem?
1. Integrate EasyTracker in my app
2. My app offers an option to disable analytics
3. The only way I know to disable the tracker is to use ga_dryRun but it is 
packaged in XML with the application : cannot change it at runtime

What is the expected output? What do you see instead?
Expected is a way to disable the tracker at runtime, like allowing to set the 
EasyTracker#gaEnabled field to false.


What version of the product are you using? On what operating system?
lib Google Analytics 1.4.2

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 24 Apr 2012 at 8:21

Web site stats and matrix not showing on remote staging server

google analytics api doesn't have problem when I test my web app on my 
localhost 

What steps will reproduce the problem?
1. Deploy the code to staging server which is located in United State 
2.
3.

What is the expected output? What do you see instead?
web site stats and matrix should display, nothings appearing

What version of the product are you using? On what operating system?
Google analytics api v3, centos 6

Please provide any additional information below.
- I used client login when call the API
- My current location in Philippines and my localhost as well 
- The Staging server is located in United State having IP 
2001:4800:7811:513:be76:4eff:fe05:a5cf
- When I i go to my "https://security.google.com/settings/security/activity" I 
see a bunch of notices
   4:09 PM  Application/device sign-in attempt (prevented)  United States   

Original issue reported on code.google.com by [email protected] on 13 Aug 2014 at 9:04

Attachments:

Param « filters » don't work

Hi All,

I want to use the filters param for my chart 
(https://developers.google.com/analytics/devguides/reporting/core/v3/reference?h
l=en#filters).
But I can't...

The Ajax request to googleapis.com return always :

[{"error":{"code":400,"message":"Invalid 
Value","data":[{"domain":"global","reason":"invalid","message":"Invalid 
Value"}]},"id":"gapiRpc"}]

And this is the code I Use : 
var chart1 = new gadash.Chart({
      'type': 'LineChart',
      'divContainer': 'line-chart-example',
      'last-n-days':30,
      'query': {
        'ids': TABLE_ID,
        'metrics': 'ga:visitors',
        'dimensions': 'ga:date',
        'filters':'ga:city%3D~%5EPa.*'
      },
      'chartOptions': {
        height:600,
        title: 'Visites des 30 derniers jours',
        hAxis: {title:'Date'},
        vAxis: {title:'Visites'},
        curveType: 'function'
      }
    }).render();

Thanks in advance for your help.

Original issue reported on code.google.com by [email protected] on 15 May 2012 at 6:48

Customize TrackedActivity's trackPageView

Well this is not really a bug but a feature request. The default behavior for 
the TrackedActivity is calling a trackPageView with the title obtained on the 
getActivityName method.

Often, when i receive an analytics spreadsheet, the names and labels for 
tracking are already defined, so the page title im supposed to track is never 
the class name of the activity. So either i change the activities names or i 
have to override the tracking method.

Also, sometimes when the back button is pressed, i need to change the name of 
the tracking, so it would be nice if i could dynamically set a name for my page 
instead of getting the class name.

Original issue reported on code.google.com by [email protected] on 24 Oct 2012 at 4:50

Code License Conflict with Project License

At the top of the source code it states "// Copyright 2011 Google Inc. All 
Rights Reserved." However, at the project home of analytics-api-samples, it 
states the Code license is Apache License 2.0. My assumption is this code can 
be copied and used freely since it is given as a sample. Is this correct? If 
so, should the source code be updated to clarify this? Thanks!



Original issue reported on code.google.com by [email protected] on 9 Jul 2011 at 3:19

EasyTracker for Android doesn't allow for manual (non-scheduled) dispatch()

What steps will reproduce the problem?
1. set ga_dispatchPeriod to 0

What is the expected output? What do you see instead?

No automatich dispatches - but ga_dispatchPeriod=0 seems to mean "dispatch 
immediately" (because that's the behaviour I get

What version of the product are you using? On what operating system?
EasyTracker 1.0, google analytics api 1.4.2

Please provide any additional information below.

To disable the auto-dispatch, EasyTracker should call 
GoogleAnalyticsTracker.startNewSession(String,Context), instead of 
.startNewSession(String,int,Context)

I've patched EasyTracker (and 
GoogleAnalyticsTrackerDelegate/GoogleAnalyticsTrackerDelegateImpl) to call this 
mth when ga_dispatchPeriod=-1 (so 'immediate dispatch' also remains possible 
with  ga_dispatchPeriod=0)

Original issue reported on code.google.com by [email protected] on 21 Mar 2012 at 4:49

_ga.extractParamFromUri_ not working correctly

What steps will reproduce the problem?
1. Change/update the _ga.extractParamFromUri_
2.
3.

What is the expected output? What do you see instead?
The expected output is a clean uri. The output currently is: undefined

What version of the product are you using? On what operating system?
v5, Google Chrome, Mozilla Firefox, Safari and IE.

Please provide any additional information below.

In order to get the function working and return the uri: the function needs to 
be replaced with:
/**
 * Extracts a query parameter value from a URI.
 * @param {string} uri The URI from which to extract the parameter.
 * @param {string} paramName The name of the query paramater to extract.
 * @return {string} The un-encoded value of the query paramater. underfined
 *     if there is no URI parameter.
 * @private
 */
_ga.extractParamFromUri_ = function(uri, paramName) {
  if (!uri) {
    return;
  }
  var uri = uri.split('#')[1];  // Remove anchor.
  var parts = uri.split('?');  // Check for query params.
  if (parts.length != 1) {
    return;
  }
  var query = decodeURI(parts[0]);
  // Find url param.
  paramName += '=';
  var params = query.split('&');
  for (var i = 0, param; param = params[i]; ++i) {
    if (param.indexOf(paramName) === 0) {

      return unescape(param.split('=')[1]);
    }
  }

  return;
};

Original issue reported on code.google.com by [email protected] on 6 Oct 2011 at 7:12

google demo code - Javascript analytics chart - Not working

What steps will reproduce the problem?
1.Run the HTML file in Browser


What is the expected output? What do you see instead?
Google analytics chart should display in the browser.
Instead:Some text messages. 

What version of the product are you using? On what operating system?
Google analytics 3.0(gadash-1.0.js). Windows 7

Please provide any additional information below.
I have used the code as given in the link: 
https://code.google.com/p/analytics-api-samples/source/browse/trunk/src/reportin
g/javascript/ez-ga-dash/demos/set-demo.html?r=41

Please use the following values, if you want to check  

Api Key=1e80c5beec301dd956e1bde47f30924c65e9223c
ClientID=409093151061.apps.googleusercontent.com
TableID='ga:79551489'

I have also attached the HTML File(which i have used).

Please check it.



Original issue reported on code.google.com by [email protected] on 10 Dec 2013 at 2:47

Attachments:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.