We are using Rudderstack currently on the server-s...
# support
a
We are using Rudderstack currently on the server-side, but we've recently added Google Analytics with server-side tagging. Trying to figure out how to best integrate Google Analytics and Rudderstack, looks like the Hybrid mode might be best for us, can someone confirm if we can do this with gtag.js and server-side tagging?
m
Hey There! 👋 Your message has been received by the RudderStack team. Our standard customer support hours are 9-6 PM EST, but 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.
a
Hmmm, we also trying to avoid external web requests or anything blocked by Brave / EasyList, is there a way to get the SDK to load gtag.js from a different URL?
m
Hi Lachlan for the first point, the gtag.js (for GA4) is for the client side so are you planning to add it to the browser? You can use gtag.js from client-side and continue to send your server-side events to the same destination, however if you have any conversion events on the server-side you should pass the clientId and sessionId from your nodeJS server to accurately capture attribution. You can use GA4 in either device mode (suggested) or Hybrid mode. For your second point the gtag.js is loaded by RudderStack from the url provided by Google so not sure we can control it.
a
@shy-kite-21035 it's slightly nuanced, gtag.js is indeed loaded on the client, but then the events are sent to a server-side container that we run (and on our domain) which then proxies them onto Google Analytics: https://developers.google.com/tag-platform/tag-manager/server-side/intro
We need to be able to configure gtag.js with:
```gtag('config', 'TAG_ID', {
'server_container_url': 'https://analytics.example.com',
});```
Is this possible with Hybrid mode?
m
Hi Lachlan, can we have a call on this to get a better idea? You can setup a call here
a
I booked a time
m
Hey you did not join the call?
a
Oh shoot, I totally blanked on it. Was 9:30 my time and my cal didn't remind me, I'm very sorry @shy-kite-21035
m
No problem. So I wanted the call because I am not too familiar with the Google Server side tag. Do you want to setup another call?