Skip to content

googleAnalytics 0.5.0

Compare
Choose a tag to compare
@MarkEdmondson1234 MarkEdmondson1234 released this 16 Feb 12:36

Breaking changes!

If you were using google_analytics() before to fetch the v3 API, this is now available via google_analytics_3() - replace all instances and it should work as before. Fetching the v4 API is now done via google_analytics() (and for a while, also at google_analytics_4() but with a deprecation warning)

Major changes

  • Add support for resource based quotas if you are on GA360 (#127)
  • Improve support for using different auth cache files with ga_auth()
  • Export of functions for use with ganalytics segment syntax
  • Changed google_analytics to be the v4 API, add google_analytics_3 that now supports v3
  • Change default cache token name from .httr-oauth to ga.oauth to avoid clashes with other API libraries
  • You can now change the rows fetched per API page in v4 up to 100k (default 10k)
  • Add unsampled report downloads (#44 - many thanks to @j450h1 for this work on this)
  • Add management of View and account filters (#108 - many thanks to @zselinger for the work on this)
  • If a google_analytics() batch API call fails, it will automatically retry with a slower request rate
  • v4 API requests will report how long it took to help with configurations

Bug fixes

  • Fix bug where anti-sampling with no dimensions broke (#149 - thanks @smach)
  • Let v3 API calls use batching when also using other googleAuthR batching functions