Skip to end of metadata
Go to start of metadata

Zend Framework: Zend_Gdata_Analytics Component Proposal

Proposed Component Name Zend_Gdata_Analytics
Developer Notes http://framework.zend.com/wiki/display/ZFDEV/Zend_Gdata_Analytics
Proposers Daniel Hartmann
Zend Liaison TBD
Revision 1.0 - 13. December 2009: Initial Draft. (wiki revision: 6)

Table of Contents

1. Overview

Zend_Gdata_Analytics is an extension to Zend_Gdata to allow interaction with Google's Analytics Data Export API. This extension does not encompass any major changes in the overall operation of Zend_Gdata components.

2. References

3. Component Requirements, Constraints, and Acceptance Criteria

  • This component will query the analytics accounts using dimensions and metrics.
  • This component will not add statistic data to an analytics profile.

4. Dependencies on Other Framework Components

  • Zend_Gdata

5. Theory of Operation

The usage of this component should follow the same patterns as other Zend_Gdata components do.

6. Milestones / Tasks

  • Milestone 1: [DONE]Create Proposal
  • Milestone 2: [DONE]Create Class Skeletons
  • Milestone 3: [DONE]Code working prototype
  • Milestone 4: Working prototype checked into the incubator
  • Milestone 5: Write unit tests
  • Milestone 6: Create documentation

7. Class Index

  • Zend_Gdata_Analytics
  • Zend_Gdata_Analytics_DataQuery
  • Zend_Gdata_Analytics_DataFeed
  • Zend_Gdata_Analytics_DataEntry
  • Zend_Gdata_Analytics_AccountFeed
  • Zend_Gdata_Analytics_AccountEntry
  • Zend_Gdata_Analytics_Extension_Dimension
  • Zend_Gdata_Analytics_Extension_Metric
  • Zend_Gdata_Analytics_Extension_Poperty
  • Zend_Gdata_Analytics_Extension_TableId

8. Use Cases

UC-01: simple account feed request
UC-02: data feed request using data query

9. Class Skeletons

Zend_Gdata_Analytics
Zend_Gdata_Analytics_DataQuery
Zend_Gdata_Analytics_DataFeed
Zend_Gdata_Analytics_DataEntry
Zend_Gdata_Analytics_AccountFeed
Zend_Gdata_Analytics_AccountEntry

Labels:
proposal proposal Delete
zend_gdata zend_gdata Delete
google google Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Jan 13, 2010

    I like this proposal a lot, but my primary concern at this point is not to retrieve Google Analytics data, but providing it.

    I have made a small model that receives a link (e.g. http://www.example.com) and turns it into a traceable link (e.g. http://www.example.com?utm_source=PHPUnit+Test&utm_medium=cpc&utm_term=testing+code&utm_content=testlink&utm_campaign=Test)

    I also made a skeleton to create conversion goals and fixed paths, but it's still a work in progress.

    A simple view helper generates both urchin or the new analytics script to implement in your web pages.

    If you'd like, I would like to share this code here as well.

    1. Jan 14, 2010

      Correct me if I'm wrong, but you're talking about view helpers which generate tracking links/JavaScript code?

      This has nothing to do with Zend_Gdata but should indeed be added as Zend_View_Helper_X components.
      Be sure to write proposals for them if you have code ready!

      The proposal in question would encapsulate the (not so) new Data Export API which is described here: http://code.google.com/intl/en-US/apis/analytics/docs/gdata/gdataDeveloperGuide.html

      Certainly a +1 from me!

      1. Feb 14, 2010

        You're right Sam. This is not used to generate GA links for a website. Zend_Gdata_Analytics requests GA for data, instead of "pushing" new data to the service.

  2. Feb 23, 2010

    Please let me know if I can be of any assistance with this proposal it's something I've been meaning to do myself - I've an application thats dying to test this component when it's ready too.

    1. Feb 25, 2010

      Actually the classes are quite ready. I just wanted to get some feedback about the usage of Zend_Gdata_Analytics.

      e.g. there should be a better way to add the filter to the query.

      I'll provide a svn-repo url over the weekend, so you can take a look at it.

  3. Sep 13, 2010

    Assuming there hasn't been any feedback from the community? Is this proposal being submitted for recommendation to the ZF team now?

  4. Sep 16, 2010

    This looks great, I've played with the demo classes and it works well. I hope to see this component approved soon.

  5. Dec 13, 2010

    Working very well, very happy, I found no problem and I was using quite complex queries (Data Feed Query Explorer) was very helpful. Definitely should be added to Zend_Gdata!

    1. Dec 14, 2010

      Can you give me some more hints in this "complex query"?

  6. Feb 05, 2012

    This is a great component. I'm already using it for some time. It's about time it gets into the Framework!