hi. we've been using rudderstack js -> google a...
# support
s
hi. we've been using rudderstack js -> google analytics exclusively for the last 2 weeks and we are noticing that most sessions dont have an assigned channel group (i.e. source of traffic e.g. organic search) and most of the traffic has no geo location data (i.e. no country assigned to it). we call the js sdk from the client (ie. events are not sent from the server). any thoughts on why this may be?
m
Hey There! đź‘‹ Your message has been received by the RudderStack team. We will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
s
for context, here is a screenshot of what im referring to
as you can see here, despite there being almost 2000 sessions, only 4 users have been assigned a geo location.
h
Hey @straight-electrician-16877 it sounds like you are sending events to GA4 via “cloud mode” - these limitations are unfortunately imposed by Google. You can see more info in our docs here. In order to properly set those fields, we recommend configuring GA4 using hybrid or device mode.
s
@handsome-park-9396 Sounds good and really appreciate the quick response. What would be better? hybrid or device?
and im curious how device / hybrid mode works. do you guys load the GA script and use that to push the events from the client?
Would you make the same recommendation for something like MixPanel as well, which we just enabled yesterday.
h
@straight-electrician-16877 hybrid mode works by loading the gtag SDK in the client and letting the default page view tag fire. However, all subsequent track calls are sent via “cloud mode” with the same client and session ID, and use the GA4 measurement protocol
So we’re able to set campaign, device, geolocation etc in that native SDK call, and then stitch everything else to the same user/session
For mixpanel you should be totally fine with full cloud mode - these limitations are specific to GA4
s
@handsome-park-9396 ok it sounds like the safest option is to start with device only for GA4 and then once all the data looks good in GA, i can consider moving to hybrid.
âś… 1