-
Extract pure JSON data using Google Analytics Data API v1 runReport
I’m currently wrestling with GA4’s Google Analytics Data API v1 to fetch some json data. It’s a bit quirky though, the response I’m getting back isn’t pure json data. Instead it’s a pair of empty braces {} when I print it using PHP. Funny thing is, with predefined methods we can pick off the values. So I’m scratching my head a bit, wondering if there’s a way to net pure json data straight off the bat. Here’s my PHP gamesmanship, any thoughts?
(with PHP code)
Log in to reply.