From 8fcfa156765cb673327b40f42192189ed6792077 Mon Sep 17 00:00:00 2001 From: Tayyab Hayat Date: Fri, 28 Apr 2023 11:31:57 +0500 Subject: [PATCH] Analytics::performQuery() has been removed from v5 --- README.md | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/README.md b/README.md index 8167767..ae3b7f0 100644 --- a/README.md +++ b/README.md @@ -145,16 +145,6 @@ $analyticsData = Analytics::fetchVisitorsAndPageViews(Period::days(7)); //retrieve visitors and page views since the 6 months ago $analyticsData = Analytics::fetchVisitorsAndPageViews(Period::months(6)); - -//retrieve sessions and page views with yearMonth dimension since 1 year ago -$analyticsData = Analytics::performQuery( - Period::years(1), - 'ga:sessions', - [ - 'metrics' => 'ga:sessions, ga:pageviews', - 'dimensions' => 'ga:yearMonth' - ] -); ``` `$analyticsData` is a `Collection` in which each item is an array that holds keys `date`, `visitors` and `pageViews`