Learn business growth with Google Analytics 4 › Forums › Google Analytics 4 › Retrieving Organic Search Data with Google Analytics 4 API › Reply To: Retrieving Organic Search Data with Google Analytics 4 API
-
Sure thing! I think you might have better luck using
sessionDefaultChannelGrouping
instead ofdefaultChannelGrouping
. This guidance comes from Google Analytics 4’s migration guides, which suggests the use ofsessionDefaultChannelGrouping
in GA4, much like how we usedga:channelGrouping
in Universal Analytics.Here’s the thing to note though:
defaultChannelGrouping
is an attribution dimension. Meaning, if your GA4 property’s event attribution model is set to Data-driven, you aren’t going to get any rows fromdefaultChannelGrouping
if your GA4 property hasn’t had a conversion during the date range you’ve selected.I know, it’s a little finicky, but swap it around and you should start seeing that Organic search data roll in. Fingers crossed!