You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But I cannot get. $response->getRows()->count() is 0.
If I change MatchType::EXACT to MatchType::BEGINS_WITH, I can get data other than the path path / (eg. /foo/), however I still cannot get the page path /.
How can I use google/analytics-data with GA4 to get page view counts for the page path /?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am trying to get page view counts for the page path
/
with GA4 usinggoogle/analytics-data
v0.9.0.Below is my code.
But I cannot get.
$response->getRows()->count()
is0
.If I change
MatchType::EXACT
toMatchType::BEGINS_WITH
, I can get data other than the path path/
(eg./foo/
), however I still cannot get the page path/
.How can I use
google/analytics-data
with GA4 to get page view counts for the page path/
?Beta Was this translation helpful? Give feedback.
All reactions