Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Latest commit

 

History

History
75 lines (42 loc) · 3.09 KB

CHANGELOG.md

File metadata and controls

75 lines (42 loc) · 3.09 KB

CHANGELOG

Update: (2019-03-25)

  • Completely rewrote code to conform to PSR-4
  • Unit Tests
  • Rewrote Documentation
  • Lots of Optimizations

Update: (2018-11-26)

  1. Added better error detection when fetching metadata for ga_validator

  2. Removed a few redundant code

  3. Added options for performance/verbose/minimal fetch modes

  • performance: sets 'include-empty-rows' to FALSE, and simply return what was fetched. This is the default setting.
  • verbose: sets 'include-empty-rows' to TRUE, which means data for all possible dimension combinations will be returned, even if all metrics are 0. This ensures structural consistency across different but may take up lots of memory.
  • minimal: sets 'include-empty-rows' to FALSE, and then for each report cluster, it will trim metrics that have a value of 0. This ensures all data points in the report have a non-zero value, minimizing memory needed, but will take slightly longer to process.

Update: (2018-09-17)

  1. Changed all array_push() statements to a more conventional stack[] = needle; type

Update: (2018-08-09)

  1. Removed the assumption that the credential files (API key, etc) have to be within the repository for security reasons:
  • now the config is loaded from the directory specified in ga_config.php
  • the secrets directories in config have to now be specified as absolute directories

Update: (2018-08-07)

  1. Added format checks for dateRanges

Update: (2018-07-31)

  1. Fixed a bug where dateRange was not being processed correctly

Update: (2018-07-24)

  1. Fixed Styling for easier readability

Update: (2018-07-23)

  1. Added a few more checks for validator

  2. Google can actually return 100000 results per call, updated accordingly

  3. Added fetch_interval to the config.ini in case we make calls too frequently

  4. Added code for handling cases where there are more results than the 100000 limit.

  5. For the dateRange argument, added some flexibility. Now it can take in 2 types of arguments:

  • an array containing associative arrays with keys StartDate and EndDate
  • a single associative array with keys StartDate and EndDate

Update: (2018-07-16/2018-07-17)

  1. Added results maximum per call, Google defaults to 1000 but can theoretically be maxed at 10000.

  2. Changed naming style: shortened GoogleAnalytics to GA

Update: (2018-07-11)

  1. Changed the GA_ReportAssembler into a utility class with static methods (which means no instantiation necessary)

Update (2018-06-26)

  1. Added a GA_API.php that further abstracts the 4 stage process away from the end user. (Can be done now in 3 lines)

  2. Properly formatted comments for functions

  3. Moved several settings to a config.ini for easier update in the future if Google decides to change thing